summaryrefslogtreecommitdiff
path: root/op-mode-definitions/conntrack-sync.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-15 10:32:50 +0200
committerGitHub <noreply@github.com>2021-05-15 10:32:50 +0200
commite2978bb452c4ad3c3caf532c8f2204d7615c881e (patch)
tree06bbf47d590425224c27594cdc50b5af5628e428 /op-mode-definitions/conntrack-sync.xml.in
parentd96336a808e500934fc4fd9423345d0b965d35ac (diff)
parent3fc9b2fb79fd3e27a5034804e5243fe2e4ec40c3 (diff)
downloadvyos-1x-e2978bb452c4ad3c3caf532c8f2204d7615c881e.tar.gz
vyos-1x-e2978bb452c4ad3c3caf532c8f2204d7615c881e.zip
Merge pull request #841 from c-po/conntrack-sync
conntrack-sync: T3535: migrate to XML and Python
Diffstat (limited to 'op-mode-definitions/conntrack-sync.xml.in')
-rw-r--r--op-mode-definitions/conntrack-sync.xml.in36
1 files changed, 36 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..cd0ec5cc8
--- /dev/null
+++ b/op-mode-definitions/conntrack-sync.xml.in
@@ -0,0 +1,36 @@
+<?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>${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>${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>${vyos_op_scripts_dir}/conntrack_sync.py --restart</command>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>