summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kobayashi <matthew@kobayashi.au>2023-12-22 11:50:29 +1000
committerMatthew Kobayashi <matthew@kobayashi.au>2024-01-04 00:15:49 +1000
commit61342083d7db8c30d015474fae5cb71f480487d8 (patch)
treecaa57934ba238f31b63f6b995a7fa268aa97d6cb
parentc08fea7a5d98e1626788280ac51f7131f3f29308 (diff)
downloadvyos-1x-61342083d7db8c30d015474fae5cb71f480487d8.tar.gz
vyos-1x-61342083d7db8c30d015474fae5cb71f480487d8.zip
qos: T5848: Add triple-isolate option to CAKE policy config
-rw-r--r--interface-definitions/qos.xml.in6
-rw-r--r--python/vyos/qos/cake.py2
2 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/qos.xml.in b/interface-definitions/qos.xml.in
index c7bd8606a..ccc2dc039 100644
--- a/interface-definitions/qos.xml.in
+++ b/interface-definitions/qos.xml.in
@@ -132,6 +132,12 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="triple-isolate">
+ <properties>
+ <help>Flows are defined by the 5-tuple, and fairness is applied over source and destination addresses intelligently (ie. not merely by host-pairs), and also over individual flows (default)</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<leafNode name="nat">
<properties>
<help>Perform NAT lookup before applying flow-isolation rules</help>
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']: