forked from alagalah/gbpsfc-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfrastructure_config.py
67 lines (63 loc) · 1.87 KB
/
infrastructure_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Config for switches, tunnelIP is the local IP address.
switches = [
{'name': 'sw1',
'type': 'gbp',
'dpid': '1'},
{'name': 'sw2',
'type': 'gbp',
'dpid': '2'},
{'name': 'sw3',
'type': 'gbp',
'dpid': '3'},
{'name': 'sw4',
'type': 'none',
'dpid': '4'},
{'name': 'sw5',
'type': 'none',
'dpid': '5'},
{'name': 'sw6',
'type': 'none',
'dpid': '6'},
{'name': 'sw7',
'type': 'none',
'dpid': '7'},
{'name': 'sw8',
'type': 'none',
'dpid': '8'}
]
defaultContainerImage='alagalah/odlpoc_ovs230'
#defaultContainerImage='ubuntu:14.04'
#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': 'sw1'},
{'name': 'h35_3',
'ip': '10.0.35.3/24',
'mac': '00:00:00:00:35:03',
'switch': 'sw2'},
{'name': 'h35_4',
'ip': '10.0.35.4/24',
'mac': '00:00:00:00:35:04',
'switch': 'sw3'},
{'name': 'h35_5',
'ip': '10.0.35.5/24',
'mac': '00:00:00:00:35:05',
'switch': 'sw1'},
{'name': 'h36_2',
'ip': '10.0.36.2/24',
'mac': '00:00:00:00:36:02',
'switch': 'sw2'},
{'name': 'h36_3',
'ip': '10.0.36.3/24',
'mac': '00:00:00:00:36:03',
'switch': 'sw3'},
{'name': 'h36_4',
'ip': '10.0.36.4/24',
'mac': '00:00:00:00:36:04',
'switch': 'sw1'},
{'name': 'h36_5',
'ip': '10.0.36.5/24',
'mac': '00:00:00:00:36:05',
'switch': 'sw2'}
]