summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reset-conntrack.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/reset-conntrack.xml.in')
-rw-r--r--op-mode-definitions/reset-conntrack.xml.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/op-mode-definitions/reset-conntrack.xml.in b/op-mode-definitions/reset-conntrack.xml.in
new file mode 100644
index 000000000..827ba4af4
--- /dev/null
+++ b/op-mode-definitions/reset-conntrack.xml.in
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="reset">
+ <properties>
+ <help>Reset a service</help>
+ </properties>
+ <children>
+ <node name="conntrack">
+ <properties>
+ <help>Reset all currently tracked connections</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/clear_conntrack.py</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>