summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-03 16:03:08 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-02-03 16:03:08 +0000
commit6a487c62e1076d05d3be96159bfd79add59cde3c (patch)
treea0b3865b6b645fc65c9ab14a80965920acb45c77 /op-mode-definitions
parentc50dc1217d0dcddaf50caec346e209158e8cabb7 (diff)
downloadvyos-1x-6a487c62e1076d05d3be96159bfd79add59cde3c.tar.gz
vyos-1x-6a487c62e1076d05d3be96159bfd79add59cde3c.zip
firewall-bridge: T4193: Add op-mode for firewall policy
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>