summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-02 13:10:21 +0100
committerGitHub <noreply@github.com>2024-02-02 13:10:21 +0100
commit84b17f0e666b7fb48e2e9cde12ce2e84b59dd5b2 (patch)
tree9252515ae240a03a3eeb696b6736a86114835519
parenteb41a9a96f5284d49156df9120316f46a6ad2f97 (diff)
parent762be96f45bb1d9705e45ff554ad483c9d4e10ff (diff)
downloadvyos-1x-84b17f0e666b7fb48e2e9cde12ce2e84b59dd5b2.tar.gz
vyos-1x-84b17f0e666b7fb48e2e9cde12ce2e84b59dd5b2.zip
Merge pull request #2748 from MattKobayashi/t5848
qos: T5848: Add triple-isolate option to CAKE policy config
-rw-r--r--interface-definitions/qos.xml.in10
-rw-r--r--python/vyos/qos/cake.py2
2 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/qos.xml.in b/interface-definitions/qos.xml.in
index c7bd8606a..31b9a7d21 100644
--- a/interface-definitions/qos.xml.in
+++ b/interface-definitions/qos.xml.in
@@ -122,13 +122,19 @@
</leafNode>
<leafNode name="dual-src-host">
<properties>
- <help>Flows are defined by the 5-tuple, and fairness is applied first over source addresses, then over individual flows</help>
+ <help>Flows are defined by the 5-tuple, fairness is applied first over source addresses, then over individual flows</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="dual-dst-host">
<properties>
- <help>Flows are defined by the 5-tuple, and fairness is applied first over destination addresses, then over individual flows</help>
+ <help>Flows are defined by the 5-tuple, fairness is applied first over destination addresses, then over individual flows</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <leafNode name="triple-isolate">
+ <properties>
+ <help>Flows are defined by the 5-tuple, fairness is applied over source and destination addresses and also over individual flows (default)</help>
<valueless/>
</properties>
</leafNode>
diff --git a/python/vyos/qos/cake.py b/python/vyos/qos/cake.py
index a89b1de1e..1ee7d0fc3 100644
--- a/python/vyos/qos/cake.py
+++ b/python/vyos/qos/cake.py
@@ -38,6 +38,8 @@ class CAKE(QoSBase):
tmp += f' dual-dsthost'
if 'dual_src_host' in config['flow_isolation']:
tmp += f' dual-srchost'
+ if 'triple_isolate' in config['flow_isolation']:
+ tmp += f' triple-isolate'
if 'flow' in config['flow_isolation']:
tmp += f' flows'
if 'host' in config['flow_isolation']: