summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-09 11:30:33 +0200
committerGitHub <noreply@github.com>2022-07-09 11:30:33 +0200
commitb9660824c013b3f222fe7c9ce86df4cbc31b686a (patch)
tree80d4a2a148adf0c7abdadacd87e1e1bc36c2e4b6 /op-mode-definitions
parent44b1bdd3273dce4e74a5474c401ac7107950635b (diff)
parent0cbe4cd087aeeb435e2d34820aa34fb7af1add21 (diff)
downloadvyos-1x-b9660824c013b3f222fe7c9ce86df4cbc31b686a.tar.gz
vyos-1x-b9660824c013b3f222fe7c9ce86df4cbc31b686a.zip
Merge pull request #1404 from sever-sever/T4145
conntrack: T4145: Add show conntrack table ipv4
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-conntrack.xml.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/op-mode-definitions/show-conntrack.xml.in b/op-mode-definitions/show-conntrack.xml.in
new file mode 100644
index 000000000..792623d7d
--- /dev/null
+++ b/op-mode-definitions/show-conntrack.xml.in
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="conntrack">
+ <properties>
+ <help>Show conntrack tables entries</help>
+ </properties>
+ <children>
+ <node name="table">
+ <properties>
+ <help>Show conntrack entries for table</help>
+ </properties>
+ <children>
+ <node name="ipv4">
+ <properties>
+ <help>Show conntrack entries for IPv4 protocol</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/show_conntrack.py</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>