summaryrefslogtreecommitdiff
path: root/op-mode-definitions/conntrack-sync.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-15 15:53:40 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-15 15:54:20 +0200
commitf931d316a6360e8b0e760d60a0c8fcc01e3ded13 (patch)
treec3abcbc7b625dc58f8555ed2b69c1023b9d5901b /op-mode-definitions/conntrack-sync.xml.in
parentc3c9d8da767161bca8d6e1e01f6223141376cdd6 (diff)
downloadvyos-1x-f931d316a6360e8b0e760d60a0c8fcc01e3ded13.tar.gz
vyos-1x-f931d316a6360e8b0e760d60a0c8fcc01e3ded13.zip
conntrack: T3535: add op-mode commands for tracked connections"
Diffstat (limited to 'op-mode-definitions/conntrack-sync.xml.in')
-rw-r--r--op-mode-definitions/conntrack-sync.xml.in58
1 files changed, 58 insertions, 0 deletions
diff --git a/op-mode-definitions/conntrack-sync.xml.in b/op-mode-definitions/conntrack-sync.xml.in
index cd0ec5cc8..d1d3bf744 100644
--- a/op-mode-definitions/conntrack-sync.xml.in
+++ b/op-mode-definitions/conntrack-sync.xml.in
@@ -33,4 +33,62 @@
</leafNode>
</children>
</node>
+ <node name="show">
+ <children>
+ <node name="conntrack-sync">
+ <properties>
+ <help>Show connection tracking synchronization information</help>
+ </properties>
+ <children>
+ <node name="cache">
+ <properties>
+ <help>Show connection tracking cache entries</help>
+ </properties>
+ <children>
+ <node name="external">
+ <properties>
+ <help>Show external connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-external; ${vyos_op_scripts_dir}/conntrack_sync.py --show-external-expect</command>
+ <children>
+ <leafNode name="main">
+ <properties>
+ <help>Show external main connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-external</command>
+ </leafNode>
+ <leafNode name="expect">
+ <properties>
+ <help>Show external expect connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-external-expect</command>
+ </leafNode>
+ </children>
+ </node>
+ <node name="internal">
+ <properties>
+ <help>Show internal connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-internal; ${vyos_op_scripts_dir}/conntrack_sync.py --show-internal-expect</command>
+ <children>
+ <leafNode name="main">
+ <properties>
+ <help>Show internal main connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-internal</command>
+ </leafNode>
+ <leafNode name="expect">
+ <properties>
+ <help>Show internal expect connection tracking cache entries</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/conntrack_sync.py --show-internal-expect</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
</interfaceDefinition>