aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/container-engine-migration/tasks/ovs-cleanup.yml
blob: 0187185701c2597733a88acf00cb4f0f3c4061b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Remove OVS bridges from neutron
  become: true
  changed_when: true
  command: >
    {{ current_engine }} exec -u root neutron_openvswitch_agent neutron-ovs-cleanup
    --config-file /etc/neutron/neutron.conf
    --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini
    --ovs_all_ports

- name: Remove OVS bridges
  become: true
  changed_when: true
  command: >
    {{ current_engine }} exec openvswitch_vswitchd
    bash -c 'for br in `ovs-vsctl list-br`;do ovs-vsctl --if-exists del-br $br;done'