diff options
author | Sander Klein <github@roedie.nl> | 2022-11-16 20:25:19 +0100 |
---|---|---|
committer | Sander Klein <github@roedie.nl> | 2022-11-16 20:25:19 +0100 |
commit | 9faa60a78d8fae85798a7219a5de82dd0af0e3c2 (patch) | |
tree | 0a1bf4751ddd05f8b92588e5c5274275c18da389 /src/op_mode/firewall.py | |
parent | a679b2da9543ad1d071a43caf9f646fbb2857c49 (diff) | |
download | vyos-1x-9faa60a78d8fae85798a7219a5de82dd0af0e3c2.tar.gz vyos-1x-9faa60a78d8fae85798a7219a5de82dd0af0e3c2.zip |
T4794: Fix show show firewall name
show firewall name <name> will output an error as explained in
https://phabricator.vyos.net/T4794
Diffstat (limited to 'src/op_mode/firewall.py')
-rwxr-xr-x | src/op_mode/firewall.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(): |