summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reset-conntrack.xml
diff options
context:
space:
mode:
authorDmytro Aleksandrov <alkersan@gmail.com>2019-08-22 17:26:30 +0300
committerDmytro Aleksandrov <alkersan@gmail.com>2019-08-23 22:36:27 +0300
commitca1caa6c6effb82b22dad0db4c4f47247c3722ad (patch)
tree2a2bf3c7293897cbb23da07cc617463cd8111888 /op-mode-definitions/reset-conntrack.xml
parent2f3aa28f259ee7f23ef8a4a091db8ced2202bbd8 (diff)
downloadvyos-1x-ca1caa6c6effb82b22dad0db4c4f47247c3722ad.tar.gz
vyos-1x-ca1caa6c6effb82b22dad0db4c4f47247c3722ad.zip
[op-mode] T1607 rewrite 'reset conntrack', 'reset & show ip[v6]' to python/xml syntax
Diffstat (limited to 'op-mode-definitions/reset-conntrack.xml')
-rw-r--r--op-mode-definitions/reset-conntrack.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/op-mode-definitions/reset-conntrack.xml b/op-mode-definitions/reset-conntrack.xml
new file mode 100644
index 000000000..827ba4af4
--- /dev/null
+++ b/op-mode-definitions/reset-conntrack.xml
@@ -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>