diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-29 01:46:50 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-29 01:46:50 +0100 |
commit | 1c828cc5a1dcbad6c8d94142de64ba9a529c14a7 (patch) | |
tree | 98fe58942f9e8bd6f6b752937d63ff7278696ad9 | |
parent | 78b247b724f74bdabab0706aaa7f5b00e5809bc1 (diff) | |
download | vyos-1x-1c828cc5a1dcbad6c8d94142de64ba9a529c14a7.tar.gz vyos-1x-1c828cc5a1dcbad6c8d94142de64ba9a529c14a7.zip |
firewall: T4178: Fix dict_keys issue with tcp flags
-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): |