summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-08-12 01:00:59 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-12-06 21:20:49 +0100
commit3ebb08893b4bbd016bd0eb04374be5f691ad4abb (patch)
tree387e9bf6a13c904c967a2a8e32c9691fd56895e7 /op-mode-definitions
parentc7cf7b941445c9280ac1ed7bbbd68159654560a6 (diff)
downloadvyos-1x-3ebb08893b4bbd016bd0eb04374be5f691ad4abb.tar.gz
vyos-1x-3ebb08893b4bbd016bd0eb04374be5f691ad4abb.zip
zone-policy: T2199: Migrate zone-policy op-mode to XML/Python
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/zone-policy.xml.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/op-mode-definitions/zone-policy.xml.in b/op-mode-definitions/zone-policy.xml.in
new file mode 100644
index 000000000..c4b02bcee
--- /dev/null
+++ b/op-mode-definitions/zone-policy.xml.in
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <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>zone-policy zone</path>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/zone_policy.py --action show --name $4</command>
+ </tagNode>
+ </children>
+ <command>sudo ${vyos_op_scripts_dir}/zone_policy.py --action show</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>