summaryrefslogtreecommitdiffstats
path: root/scripts/cap2
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2017-01-10 16:01:27 +0200
committerIdo Barnea <ibarnea@cisco.com>2017-01-10 16:01:27 +0200
commitb3c544bd3d3e150660774d4588419e75058bdf97 (patch)
tree9e5061c190375ef1e7866bb3d40f80a3b03c6484 /scripts/cap2
parentabc0a23c4be1bc516c5815d64d757be39bb736f1 (diff)
Add client config unit test + fixes to unit tests infra
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'scripts/cap2')
-rw-r--r--scripts/cap2/cluster_example.yaml65
1 files changed, 65 insertions, 0 deletions
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"
+