summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-05 19:58:07 +0100
committerGitHub <noreply@github.com>2022-02-05 19:58:07 +0100
commit703e98ef74ad995d98bae051e494312864aab04e (patch)
tree1b74eb5b5762c4c8ebe50322c87e71410ceb3ac8 /op-mode-definitions
parentbff42192796c4c29baf10a41a251903d26f512b0 (diff)
parent6a487c62e1076d05d3be96159bfd79add59cde3c (diff)
downloadvyos-1x-703e98ef74ad995d98bae051e494312864aab04e.tar.gz
vyos-1x-703e98ef74ad995d98bae051e494312864aab04e.zip
Merge pull request #1204 from sever-sever/T4193-equ
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>