Slawek Kaplonski | f31e3ee | 2018-06-15 19:48:07 +0200 | [diff] [blame] | 1 | - 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 }} |