From c73538876daf286fb8616355a800909ef3b71a1b Mon Sep 17 00:00:00 2001 From: elajkat Date: Tue, 8 Feb 2022 18:02:50 +0100 Subject: [PATCH] Remove ovs-vsctl direct calls OvsTaasDriver _create_tunnel_flood_flow_action used osv-vsctl call, change that to get_port_name_list. Change-Id: Ib8e160115564316991112a3a32034c645a427b31 --- neutron_taas/services/taas/drivers/linux/ovs_taas.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/neutron_taas/services/taas/drivers/linux/ovs_taas.py b/neutron_taas/services/taas/drivers/linux/ovs_taas.py index 52b8cdd2..55f6e454 100644 --- a/neutron_taas/services/taas/drivers/linux/ovs_taas.py +++ b/neutron_taas/services/taas/drivers/linux/ovs_taas.py @@ -429,11 +429,7 @@ class OvsTaasDriver(taas_base.TaasAgentDriver): actions=flow_action) def _create_tunnel_flood_flow_action(self): - - args = ["ovs-vsctl", "list-ports", "br-tun"] - res = utils.execute(args, run_as_root=True, privsep_exec=True) - - port_name_list = res.splitlines() + port_name_list = self.tun_br.get_port_name_list() flow_action = ("move:NXM_OF_VLAN_TCI[0..11]->NXM_NX_TUN_ID[0..11]," "mod_vlan_vid:1")