From 615c47f7f5d089c1b6c004509c6cab870a73aa90 Mon Sep 17 00:00:00 2001 From: Juan Pablo Suazo Date: Tue, 20 Jun 2023 17:20:02 -0400 Subject: [PATCH] Replaces Deprecated Bridge-utils Command Removes the deprecated bridge-utils command and replaces it with an equivalent ipruote2 command. Closes-Bug: #2024498 Signed off-by: Juan Pablo Suazo Change-Id: I7b48770709bd0fb9ea5072ce6c8673074c39ab2b --- neutron_taas/services/taas/drivers/linux/ovs_taas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron_taas/services/taas/drivers/linux/ovs_taas.py b/neutron_taas/services/taas/drivers/linux/ovs_taas.py index 3d6804c4..a084194d 100644 --- a/neutron_taas/services/taas/drivers/linux/ovs_taas.py +++ b/neutron_taas/services/taas/drivers/linux/ovs_taas.py @@ -278,7 +278,8 @@ class OvsTaasDriver(taas_base.TaasAgentDriver): if is_hybrid_plug: ovs_port_name = ovs_port.port_name linux_br_name = ovs_port_name.replace('qvo', 'qbr') - utils.execute(['brctl', 'setageing', linux_br_name, 0], + utils.execute(['ip', 'link', 'set', linux_br_name, + 'type', 'bridge', 'ageing_time', 0], run_as_root=True, privsep_exec=True) @log_helpers.log_method_call