summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-01-11 15:17:51 +0000
committerGitHub <noreply@github.com>2024-01-11 15:17:51 +0000
commitaa90d124d772efee6c4c5f3a9ccc734fe20ae03b (patch)
tree780254215a134bf791bcadddb26e226161bf61a2 /op-mode-definitions
parentd0145bfc824099cb17ad6dc2cc2f81cace4f430d (diff)
parent1ea4288a91b22df12fcf7094e55c128cca875004 (diff)
downloadvyos-1x-aa90d124d772efee6c4c5f3a9ccc734fe20ae03b.tar.gz
vyos-1x-aa90d124d772efee6c4c5f3a9ccc734fe20ae03b.zip
Merge pull request #2800 from vyos/mergify/bp/sagitta/pr-2784
T5915: firewall: re-add opmode command for zone based firewall (backport #2784)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/firewall.xml.in17
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>