From 31e0ace5d2bac8240c7d3b88c7486f6ce4c22367 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 5 Nov 2026 23:19:42 +0100 Subject: qos: T6393: keep redirect filter when applying an ingress policy An interface with both an ingress QoS policy and "redirect" lost its redirect filter on every QoS commit, including boot. QoS re-applied the interface redirect first and then re-created the ingress qdisc for its own policy, dropping the redirect filter again. Mirror and redirect are now re-applied after the QoS policies, and the redirect re-uses an existing ingress qdisc instead of failing to add it. --- python/vyos/ifconfig/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 35f4a8ee4..bc59d099a 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1825,7 +1825,8 @@ class Interface(Control): ) return None - _, err = self._popen(f'tc qdisc add dev {source_if} handle ffff: ingress') + # replace keeps an ingress qdisc of a QoS policy in place + _, err = self._popen(f'tc qdisc replace dev {source_if} handle ffff: ingress') if err: print(f'tc qdisc add for redirect failed!') _, err = self._popen(f'tc filter add dev {source_if} parent ffff: protocol '\ -- cgit v1.2.3