summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-07-02 13:43:27 +0000
committerViacheslav <v.gletenko@vyos.io>2021-07-02 13:43:27 +0000
commit4e1a5c7cf4213fd5617e387a2d4a6d1e9a475c54 (patch)
tree59219bc423e0b53e5c39f697c5696d18d676e60b /op-mode-definitions
parentcef8147afd1d031c91cc90b7642aad8ae372c81b (diff)
downloadvyos-1x-4e1a5c7cf4213fd5617e387a2d4a6d1e9a475c54.tar.gz
vyos-1x-4e1a5c7cf4213fd5617e387a2d4a6d1e9a475c54.zip
conntrack-sync: T3535: Rewrite conf and op modes to XML python style
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/conntrack-sync.xml.in94
1 files changed, 94 insertions, 0 deletions
diff --git a/op-mode-definitions/conntrack-sync.xml.in b/op-mode-definitions/conntrack-sync.xml.in
new file mode 100644
index 000000000..41a71b04a
--- /dev/null
+++ b/op-mode-definitions/conntrack-sync.xml.in
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="reset">
+ <children>
+ <node name="conntrack-sync">
+ <properties>
+ <help>Reset connection syncing parameters</help>
+ </properties>
+ <children>
+ <leafNode name="external-cache">
+ <properties>
+ <help>Reset external cache and request resync with other systems</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py --reset-cache-external</command>
+ </leafNode>
+ <leafNode name="internal-cache">
+ <properties>
+ <help>Reset internal cache and request resync with other systems</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py --reset-cache-internal</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="restart">
+ <children>
+ <leafNode name="conntrack-sync">
+ <properties>
+ <help>Restart connection tracking synchronization service</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py --restart</command>
+ </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>sudo ${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>sudo ${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>sudo ${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>sudo ${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>sudo ${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>sudo ${vyos_op_scripts_dir}/conntrack_sync.py --show-internal-expect</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>