summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-10 19:42:05 +0100
committerGitHub <noreply@github.com>2022-01-10 19:42:05 +0100
commit436805a69df324767c3efdf8d72127bef42fd720 (patch)
tree87aa749d7a4cb427d5b0b1d02a5c75474328f1c4 /python
parent4ade92549616aa122f228ed5a3f95ea89c5aa356 (diff)
parent67ab8154685638b373b139aaf9a936cbcb83a84f (diff)
downloadvyos-1x-436805a69df324767c3efdf8d72127bef42fd720.tar.gz
vyos-1x-436805a69df324767c3efdf8d72127bef42fd720.zip
Merge pull request #1151 from sarthurdev/firewall
firewall: policy: T4149: T4155: Fix incorrect table variable, fix handling of deleted base firewall node
Diffstat (limited to 'python')
-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']