Merge "Adds more nic config templates[1]"

This commit is contained in:
Zuul 2020-09-25 16:24:54 +00:00 committed by Gerrit Code Review
commit ac8baa947d
8 changed files with 100 additions and 6 deletions

View File

@ -0,0 +1,17 @@
---
network_config:
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
use_dhcp: true
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
members:
- type: ovs_bond
name: bond1
use_dhcp: true
ovs_options: {{ bond_interface_ovs_options }}
members:
- type: interface
name: nic1
- type: interface
name: nic2

View File

@ -0,0 +1,12 @@
---
network_config:
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
use_dhcp: true
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
members:
- type: interface
name: {{ neutron_public_interface_name }}
# force the MAC address of the bridge to this interface
primary: true

View File

@ -0,0 +1,17 @@
---
network_config:
- type: linux_bridge
name: {{ neutron_physical_bridge_name }}
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
members:
- type: interface
name: {{ neutron_public_interface_name }}
# force the MAC address of the bridge to this interface
primary: true
routes:
- ip_netmask: 0.0.0.0/0
next_hop: {{ ctlplane_gateway_ip }}
default: true

View File

@ -0,0 +1,12 @@
---
network_config:
- type: interface
name: {{ neutron_public_interface_name }}
use_dhcp: false
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
routes:
- default: true
next_hop: {{ ctlplane_gateway_ip }}

View File

@ -0,0 +1,17 @@
---
network_config:
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
use_dhcp: false
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
routes:
- default: true
next_hop: {{ ctlplane_gateway_ip }}
members:
- type: interface
name: {{ neutron_public_interface_name }}
# force the MAC address of the bridge to this interface
primary: true

View File

@ -0,0 +1,19 @@
---
network_config:
- type: ovs_bridge
name: {{ neutron_physical_bridge_name }}
use_dhcp: true
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
members:
- type: interface
name: {{ neutron_public_interface_name }}
# force the MAC address of the bridge to this interface
primary: true
- type: interface
name: br-ex:0
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
routes:
- default: true
next_hop: {{ ctlplane_gateway_ip }}

View File

@ -22,11 +22,11 @@ network_config:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }} - ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
- ip_netmask: {{ control_virtual_ip}}/{{ control_virtual_cidr }} - ip_netmask: {{ control_virtual_ip}}/{{ control_virtual_cidr }}
- ip_netmask: {{ public_virtual_ip}}/{{ public_virtual_cidr }} - ip_netmask: {{ public_virtual_ip}}/{{ public_virtual_cidr }}
routes: {{ ctlplane_static_routes }} routes: {{ ctlplane_host_routes }}
dns_servers: {{ dns_nameservers }} dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }} domain: {{ dns_search_domains }}
members: members:
- type: interface - type: interface
name: {{ neutron_public_interface }} name: {{ neutron_public_interface_name }}
primary: true primary: true
mtu: {{ local_mtu }} mtu: {{ local_mtu }}

View File

@ -21,11 +21,11 @@ network_config:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }} - ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
- ip_netmask: {{ control_virtual_ip}}/{{ control_virtual_cidr }} - ip_netmask: {{ control_virtual_ip}}/{{ control_virtual_cidr }}
- ip_netmask: {{ public_virtual_ip}}/{{ public_virtual_cidr }} - ip_netmask: {{ public_virtual_ip}}/{{ public_virtual_cidr }}
routes: {{ ctlplane_static_routes }} routes: {{ ctlplane_host_routes }}
dns_servers: {{ dns_nameservers }} dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }} domain: {{ dns_search_domains }}
members: members:
- type: interface - type: interface
name: {{ neutron_public_interface }} name: {{ neutron_public_interface_name }}
primary: true primary: true
mtu: {{ local_mtu }} mtu: {{ local_mtu }}