summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-firewall-policy.xml.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/show-firewall-policy.xml.in b/op-mode-definitions/show-firewall-policy.xml.in
new file mode 100644
index 000000000..82793736e
--- /dev/null
+++ b/op-mode-definitions/show-firewall-policy.xml.in
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="firewall">
+ <children>
+ <leafNode name="policy">
+ <properties>
+ <help>Show firewall policy</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/show_firewall_policy.py --summary</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>