diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2024-01-10 12:02:30 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2024-01-10 12:02:30 +0000 |
commit | 62f10e0ec8075634e1515d6cecc822d87053bccb (patch) | |
tree | e021f4b485684286777457f394402e7ae15e3860 /op-mode-definitions | |
parent | 8523cfbc1e9f02ddd90794ce5ded4be2a55e7c4a (diff) | |
download | vyos-1x-62f10e0ec8075634e1515d6cecc822d87053bccb.tar.gz vyos-1x-62f10e0ec8075634e1515d6cecc822d87053bccb.zip |
T5915:firewall: re-add opmode command for zone based firewall
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/firewall.xml.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/firewall.xml.in b/op-mode-definitions/firewall.xml.in index 4a7ffbb66..a4a987aa6 100644 --- a/op-mode-definitions/firewall.xml.in +++ b/op-mode-definitions/firewall.xml.in @@ -396,6 +396,23 @@ </properties> <command>sudo ${vyos_op_scripts_dir}/firewall.py --action show_summary</command> </leafNode> + <node name="zone-policy"> + <properties> + <help>Show zone policy information</help> + </properties> + <children> + <tagNode name="zone"> + <properties> + <help>Show summary of zone policy for a specific zone</help> + <completionHelp> + <path>firewall zone</path> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/zone.py show --zone $5</command> + </tagNode> + </children> + <command>sudo ${vyos_op_scripts_dir}/zone.py show</command> + </node> </children> <command>sudo ${vyos_op_scripts_dir}/firewall.py --action show_all</command> </node> |