-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnet_config_multiple_nics.j2
60 lines (60 loc) · 1.51 KB
/
net_config_multiple_nics.j2
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
---
network_config:
- type: interface
name: nic2
mtu: {{ ctlplane_mtu }}
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
routes: {{ ctlplane_host_routes }}
use_dhcp: false
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
- type: interface
name: nic3
mtu: {{ storage_mtu }}
use_dhcp: false
addresses:
- ip_netmask: {{ storage_ip }}/{{ storage_cidr }}
routes: {{ storage_host_routes }}
- type: interface
name: nic4
mtu: {{ storage_mgmt_mtu }}
use_dhcp: false
addresses:
- ip_netmask: {{ storage_mgmt_ip }}/{{ storage_mgmt_cidr }}
routes: {{ storage_mgmt_host_routes }}
- type: interface
name: nic5
mtu: {{ internal_api_mtu }}
use_dhcp: false
addresses:
- ip_netmask: {{ internal_api_ip }}/{{ internal_api_cidr }}
routes: {{ internal_api_host_routes }}
- type: ovs_bridge
name: br-tenant
mtu: {{ tenant_mtu }}
dns_servers: {{ tenant_dns_nameservers }}
use_dhcp: false
addresses:
- ip_netmask: {{ tenant_ip }}/{{ tenant_cidr }}
routes: {{ tenant_host_routes }}
members:
- type: interface
name: nic6
mtu: {{ tenant_mtu }}
use_dhcp: false
primary: true
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
mtu: {{ external_mtu }}
dns_servers: {{ external_dns_nameservers }}
use_dhcp: false
addresses:
- ip_netmask: {{ external_ip }}/{{ external_cidr }}
routes: {{ external_host_routes }}
members:
- type: interface
name: nic7
mtu: {{ external_mtu }}
use_dhcp: false
primary: true