From ca1caa6c6effb82b22dad0db4c4f47247c3722ad Mon Sep 17 00:00:00 2001
From: Dmytro Aleksandrov <alkersan@gmail.com>
Date: Thu, 22 Aug 2019 17:26:30 +0300
Subject: [op-mode] T1607 rewrite 'reset conntrack', 'reset & show ip[v6]' to
 python/xml syntax

---
 op-mode-definitions/reset-conntrack.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 op-mode-definitions/reset-conntrack.xml

(limited to 'op-mode-definitions/reset-conntrack.xml')

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>
-- 
cgit v1.2.3