From 8df6cf481404c0751970e9683c2b2e40f78d4657 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 24 Nov 2021 17:14:05 +0100 Subject: [PATCH] openvswitch: move from docker exec to openvswitch_db Change-Id: Ifee8af246312cad5b68ff1bf2793963bf7028dc8 --- ansible/roles/openvswitch/tasks/post-config.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ansible/roles/openvswitch/tasks/post-config.yml b/ansible/roles/openvswitch/tasks/post-config.yml index ce412b8842..74995b1274 100644 --- a/ansible/roles/openvswitch/tasks/post-config.yml +++ b/ansible/roles/openvswitch/tasks/post-config.yml @@ -2,7 +2,16 @@ # NOTE(mnasiadka): external_ids:system-id uniquely identifies a physical system, used by OVN and other controllers - name: Set system-id become: true - command: docker exec openvswitch_vswitchd ovs-vsctl set Open_vSwitch . external_ids:system-id={{ openvswitch_system_id }} + kolla_toolbox: + user: root + module_name: openvswitch_db + module_args: + table: Open_vSwitch + record: . + col: external_ids + key: system-id + value: "{{ openvswitch_system_id }}" + state: present - name: Ensuring OVS bridge is properly setup become: true