summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-05 23:19:42 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-05 23:21:40 +0100
commit31e0ace5d2bac8240c7d3b88c7486f6ce4c22367 (patch)
tree0fe7ca50be2b69dd81f03f3547ce5dd3c1fd0c2a /python
parent9854913e23cf21363a931640cc9994c169969c88 (diff)
downloadvyos-1x-31e0ace5d2bac8240c7d3b88c7486f6ce4c22367.tar.gz
vyos-1x-31e0ace5d2bac8240c7d3b88c7486f6ce4c22367.zip
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.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/interface.py3
1 files changed, 2 insertions, 1 deletions
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 '\