kolla-ansible/roles/veth/tasks/main.yml
Michał Nasiadka 337771143b CI: Configure IP on a linux bridge instead of OVS br-ex
OVS upgrade jobs failed due to assigning an IP on the br-ex interface
(which is recycled during OVS upgrade). This change introduces a bridge
and veth pair for Neutron to use.

Change-Id: Ib3bee6e810fb8d31552d4c72c2a1ccae382c51f0
2021-05-24 14:40:30 +00:00

13 lines
369 B
YAML

---
- name: Create veth pair
become: true
command: ip link add {{ veth_pair.0 }} type veth peer name {{ veth_pair.1 }}
- name: Bring veth pair up
become: true
shell: ip link set {{ veth_pair.0 }} up && ip link set {{ veth_pair.1 }} up
- name: Add first veth pair port to bridge
become: true
command: ip link set {{ veth_pair.0 }} master {{ bridge_name }}