summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-10 15:29:23 +0200
committerGitHub <noreply@github.com>2023-09-10 15:29:23 +0200
commitaf0a4667326b74c6bdd2166a1b5f6fdc19b7344c (patch)
treeabf63b0fc6addbe4d96afd7d5e368f4aed9719b7
parent3f4c320cbcd3f7a6e49249e8fbf5596326162b97 (diff)
parent9daac1632df96b6d2089244e3c7a7b42ae682eb9 (diff)
downloadvyos-1x-af0a4667326b74c6bdd2166a1b5f6fdc19b7344c.tar.gz
vyos-1x-af0a4667326b74c6bdd2166a1b5f6fdc19b7344c.zip
Merge pull request #2235 from sever-sever/T5564
T5564: Fix show firewall group and show firewall summary
-rwxr-xr-xsrc/op_mode/firewall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py
index 23b4b8459..11cbd977d 100755
--- a/src/op_mode/firewall.py
+++ b/src/op_mode/firewall.py
@@ -300,6 +300,8 @@ def show_firewall_group(name=None):
for priority, priority_conf in firewall[item][name_type].items():
if priority not in firewall[item][name_type]:
continue
+ if 'rule' not in priority_conf:
+ continue
for rule_id, rule_conf in priority_conf['rule'].items():
source_group = dict_search_args(rule_conf, 'source', 'group', group_type)
dest_group = dict_search_args(rule_conf, 'destination', 'group', group_type)