From b3c544bd3d3e150660774d4588419e75058bdf97 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Tue, 10 Jan 2017 16:01:27 +0200 Subject: Add client config unit test + fixes to unit tests infra Signed-off-by: Ido Barnea --- scripts/cap2/cluster_example.yaml | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 scripts/cap2/cluster_example.yaml (limited to 'scripts/cap2') diff --git a/scripts/cap2/cluster_example.yaml b/scripts/cap2/cluster_example.yaml new file mode 100644 index 00000000..6168d131 --- /dev/null +++ b/scripts/cap2/cluster_example.yaml @@ -0,0 +1,65 @@ +# +# Cluster configuration example file +# The file must contain the following fields +# +# 'vlan' - Set to true, if the entire configuration is under VLAN. False otherwise. +# if set to true, each client group must include vlan configuration +# +# 'groups' - Each client group must contain range of IPs +# and initiator and responder maps +# 'count' is the number of devices on the group. +# +# initiator and responder can contain 'vlan', 'src_mac', 'dst_mac', 'next_hop'. +# + +vlan: true + +groups: + +- ip_start : 16.0.0.1 + ip_end : 16.0.0.4 + initiator : + vlan : 100 + dst_mac : "00:00:00:01:00:00" + responder : + vlan : 200 + dst_mac : "00:00:00:01:00:00" + + count : 2 + +- ip_start : 16.0.0.5 + ip_end : 16.0.0.12 + initiator : + vlan : 101 + dst_mac : "01:00:00:00:01:01" + + responder : + vlan : 201 + dst_mac : "01:00:00:00:02:01" + + count : 4 + +- ip_start : 16.0.0.13 + ip_end : 16.0.0.30 + + initiator : + vlan : 103 + dst_mac : "02:00:00:00:01:01" + responder : + + vlan : 203 + dst_mac : "02:00:00:00:02:01" + + count : 8 + +- ip_start : 16.0.0.31 + ip_end : 16.0.1.255 + + initiator : + vlan : 104 + dst_mac : "04:00:00:00:01:01" + responder : + + vlan : 204 + dst_mac : "04:00:00:00:02:01" + -- cgit 1.2.3-korg