openstack-ansible/etc/netplan/01-static.yml
Dmitriy Rabotyagov 21dd4e6c5d Add ability to define bridge type for containers
This change allows to define `container_bridge_type` among provider_networks to
provide type of bridge being used (ie ovs).

Documentaion on usage will be provided in following patch.

Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-lxc_container_create/+/837734
Change-Id: I4f65c13a7dd16a66b2b14ae545516533f5ec69e1
2022-06-08 08:10:36 +00:00

67 lines
1.5 KiB
YAML

network:
version: 2
ethernets:
eno1:
mtu: 9000
eno2:
mtu: 9000
bonds:
bond0:
interfaces:
- eno1
- eno2
mtu: 9000
parameters:
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
vlans:
bond0.10:
id: 10
link: bond0
bond0.20:
id: 20
link: bond0
bond0.30:
id: 30
link: bond0
bond0.40:
id: 40
link: bond0
bridges:
br-mgmt:
addresses:
- 172.29.236.10/22
interfaces:
- bond0.10
mtu: 9000
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
search:
- example.com
br-storage:
addresses:
- 172.21.244.10/22
interfaces:
- bond0.20
mtu: 9000
openvswitch: {}
br-vxlan:
addresses:
- 172.29.240.10/22
interfaces:
- bond0.30
mtu: 9000
br-ext:
addresses:
- 192.1.1.10/22
interfaces:
- bond0.40
gateway4: 192.1.1.1
br-vlan:
interfaces: bond0
mtu: 9000