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 <jsuazo@whitestack.com>

Change-Id: I7b48770709bd0fb9ea5072ce6c8673074c39ab2b
This commit is contained in:
Juan Pablo Suazo 2023-06-20 17:20:02 -04:00
parent bdc5f4b951
commit 615c47f7f5
1 changed files with 2 additions and 1 deletions

View File

@ -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