summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-12 10:43:07 +0300
committerGitHub <noreply@github.com>2023-09-12 10:43:07 +0300
commitb47a866c2fdfd7f479342f9e89148f19a04b5903 (patch)
treec402c54ba4b126244b81f80130c843a3fcabdfdc
parent2103b5522d21970f0a48cb41351fdd8dbd349987 (diff)
parentb0a9782a4a611c375fb3313887a8144fdacbd18c (diff)
downloadvyos-1x-b47a866c2fdfd7f479342f9e89148f19a04b5903.tar.gz
vyos-1x-b47a866c2fdfd7f479342f9e89148f19a04b5903.zip
Merge pull request #2244 from vyos/mergify/bp/sagitta/pr-2235
T5564: Fix show firewall group and show firewall summary (backport #2235)
-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 581710b31..c5d5848c2 100755
--- a/src/op_mode/firewall.py
+++ b/src/op_mode/firewall.py
@@ -267,6 +267,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)