From 9faa60a78d8fae85798a7219a5de82dd0af0e3c2 Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Wed, 16 Nov 2022 20:25:19 +0100 Subject: T4794: Fix show show firewall name show firewall name will output an error as explained in https://phabricator.vyos.net/T4794 --- src/op_mode/firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py index 950feb625..46bda5f7e 100755 --- a/src/op_mode/firewall.py +++ b/src/op_mode/firewall.py @@ -63,7 +63,7 @@ def get_config_firewall(conf, name=None, ipv6=False, interfaces=True): get_first_key=True, no_tag_node_value_mangle=True) if firewall and interfaces: if name: - firewall['interface'] = [] + firewall['interface'] = {} else: if 'name' in firewall: for fw_name, name_conf in firewall['name'].items(): -- cgit v1.2.3