summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kobayashi <matthew@kobayashi.au>2023-12-22 11:50:29 +1000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-02 12:12:02 +0000
commit628877a46a049142cffd5d98de74f652d4a9dde7 (patch)
tree725dacb29656aef4536781b7ac347d1b4c942076
parent38a46e1bffd209ae3b91872d4dfb423aff87c10c (diff)
downloadvyos-1x-628877a46a049142cffd5d98de74f652d4a9dde7.tar.gz
vyos-1x-628877a46a049142cffd5d98de74f652d4a9dde7.zip
qos: T5848: Add triple-isolate option to CAKE policy config
(cherry picked from commit 61342083d7db8c30d015474fae5cb71f480487d8)
-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']: