Bug 3948: Add docker POC scripts.
[groupbasedpolicy.git] / util / dockerTestOfOverlay / infrastructure_config.py
diff --git a/util/dockerTestOfOverlay/infrastructure_config.py b/util/dockerTestOfOverlay/infrastructure_config.py
new file mode 100644 (file)
index 0000000..b4c3ede
--- /dev/null
@@ -0,0 +1,61 @@
+# Config for switches, tunnelIP is the local IP address.
+switches = [{'name': 's1',
+             'tunnelIp': '192.168.56.30',
+             'dpid': '1'},
+            {'name': 's2',
+             'tunnelIp': '192.168.56.32',
+             'dpid': '2'}]
+
+defaultContainerImage='alagalah/odlpoc_ovs230'
+
+#Note that tenant name and endpointGroup name come from policy_config.py
+
+hosts = [{'name': 'h35_2',
+          'mac': '00:00:00:00:35:02',
+          'ip': '10.0.35.2/24',
+          'switch': 's1',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'client'},
+         {'name': 'h35_3',
+          'ip': '10.0.35.3/24',
+          'mac': '00:00:00:00:35:03',
+          'switch': 's1',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'client'},
+         {'name': 'h35_4',
+          'ip': '10.0.35.4/24',
+          'mac': '00:00:00:00:35:04',
+          'switch': 's2',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'client'},
+         {'name': 'h35_5',
+          'ip': '10.0.35.5/24',
+          'mac': '00:00:00:00:35:05',
+          'switch': 's2',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'client'},
+         {'name': 'h36_2',
+          'ip': '10.0.36.2/24',
+          'mac': '00:00:00:00:36:02',
+          'switch': 's1',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'webserver'},
+         {'name': 'h36_3',
+          'ip': '10.0.36.3/24',
+          'mac': '00:00:00:00:36:03',
+          'switch': 's1',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'webserver'},
+         {'name': 'h36_4',
+          'ip': '10.0.36.4/24',
+          'mac': '00:00:00:00:36:04',
+          'switch': 's2',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'webserver'},
+         {'name': 'h36_5',
+          'ip': '10.0.36.5/24',
+          'mac': '00:00:00:00:36:05',
+          'switch': 's2',
+          'tenant': 'GBPPOC',
+          'endpointGroup': 'webserver'}]
+