blob: 043e70faaba937d030ec3d5fb199e0ce01df913d [file] [log] [blame]
Slawek Kaplonskif31e3ee2018-06-15 19:48:07 +02001- name: Ensure the infra bridge exists
2 become: yes
3 openvswitch_bridge:
4 bridge: "{{ infra_bridge_name }}"
5
6- name: Ensure the Neutron external bridge exists
7 become: yes
8 openvswitch_bridge:
9 bridge: "{{ neutron_external_bridge_name }}"
10
11- name: Create patch port between bridges
12 become: yes
13 command: >-
14 ovs-vsctl --may-exist add-port {{ infra_bridge_name }} patch-{{ neutron_external_bridge_name }}
15 -- set interface patch-{{ neutron_external_bridge_name }} type=patch options:peer=patch-{{ infra_bridge_name }}
16 -- --may-exist add-port {{ neutron_external_bridge_name }} patch-{{ infra_bridge_name }}
17 -- set interface patch-{{ infra_bridge_name }} type=patch options:peer=patch-{{ neutron_external_bridge_name }}