summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-01-09 23:35:30 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-01-09 23:35:30 +0100
commitdeb9bfa02863ea28104f36558ed4e90caba792e3 (patch)
treea116b9089421696bea2d41e2e85f65f0cc29861d
parent79f6f7061c0c0a00ce480d93c71fc4bcd06eb3a0 (diff)
downloadvyos-1x-deb9bfa02863ea28104f36558ed4e90caba792e3.tar.gz
vyos-1x-deb9bfa02863ea28104f36558ed4e90caba792e3.zip
policy: T4155: Fix using incorrect table variable
-rw-r--r--python/vyos/firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py
index 8b7402b7e..414ec89c1 100644
--- a/python/vyos/firewall.py
+++ b/python/vyos/firewall.py
@@ -209,7 +209,7 @@ def parse_policy_set(set_conf, def_suffix):
table = set_conf['table']
if table == 'main':
table = '254'
- mark = 0x7FFFFFFF - int(set_conf['table'])
+ mark = 0x7FFFFFFF - int(table)
out.append(f'meta mark set {mark}')
if 'tcp_mss' in set_conf:
mss = set_conf['tcp_mss']