diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-29 19:31:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 19:31:17 +0100 |
commit | d679e9517657a760a54656e03fff2dc49d0120b5 (patch) | |
tree | 31f6d19b7c1f66d070785725622d55d4e689c78d /python/vyos | |
parent | 8aa7ea8f6c841e606b7f0cf49c5249cd4ff087ce (diff) | |
parent | 1c828cc5a1dcbad6c8d94142de64ba9a529c14a7 (diff) | |
download | vyos-1x-d679e9517657a760a54656e03fff2dc49d0120b5.tar.gz vyos-1x-d679e9517657a760a54656e03fff2dc49d0120b5.zip |
Merge pull request #1197 from sarthurdev/T4178_1
firewall: T4178: Fix dict_keys issue with tcp flags
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/firewall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index 4993d855e..a2e133217 100644 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -190,7 +190,7 @@ def parse_rule(rule_conf, fw_name, rule_id, ip_name): def parse_tcp_flags(flags): include = [flag for flag in flags if flag != 'not'] - exclude = flags['not'].keys() if 'not' in flags else [] + exclude = list(flags['not']) if 'not' in flags else [] return f'tcp flags & ({"|".join(include + exclude)}) == {"|".join(include)}' def parse_time(time): |