summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-02 18:56:43 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-02 18:56:43 +0100
commitaf5c4c519b6a9fc0d4978ca3e3a3ec4cac579874 (patch)
treed03d4a8f2026287615cf9835b2abfe073fd358d3
parentfaabb3e0f5dd80fcce381f35be9064f52cceb5e3 (diff)
downloadvyos-1x-af5c4c519b6a9fc0d4978ca3e3a3ec4cac579874.tar.gz
vyos-1x-af5c4c519b6a9fc0d4978ca3e3a3ec4cac579874.zip
op-mode: T3178: add "clear ip(v6)" commands
-rw-r--r--op-mode-definitions/clear-ip.xml40
-rw-r--r--op-mode-definitions/clear-ipv6.xml40
2 files changed, 80 insertions, 0 deletions
diff --git a/op-mode-definitions/clear-ip.xml b/op-mode-definitions/clear-ip.xml
new file mode 100644
index 000000000..3c75ed11b
--- /dev/null
+++ b/op-mode-definitions/clear-ip.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="clear">
+ <children>
+ <node name="ip">
+ <properties>
+ <help>Clear Internet Protocol (IP) statistics or status</help>
+ </properties>
+ <children>
+ <node name="prefix-list">
+ <properties>
+ <help>Clear prefix-list statistics or status</help>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ </node>
+ <tagNode name="prefix-list">
+ <properties>
+ <help>Clear prefix-list statistics or status for specified word</help>
+ <completionHelp>
+ <list>&lt;WORD&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ <children>
+ <leafNode name="node.tag">
+ <properties>
+ <help>Clear prefix-list statistics or status for given word|network</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/clear-ipv6.xml b/op-mode-definitions/clear-ipv6.xml
new file mode 100644
index 000000000..f26ab4046
--- /dev/null
+++ b/op-mode-definitions/clear-ipv6.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="clear">
+ <children>
+ <node name="ipv6">
+ <properties>
+ <help>Clear Internet Protocol (IPv6) statistics or status</help>
+ </properties>
+ <children>
+ <node name="prefix-list">
+ <properties>
+ <help>Clear prefix-list statistics or status</help>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ </node>
+ <tagNode name="prefix-list">
+ <properties>
+ <help>Clear prefix-list statistics or status for specified word</help>
+ <completionHelp>
+ <list>&lt;WORD&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ <children>
+ <leafNode name="node.tag">
+ <properties>
+ <help>Clear prefix-list statistics or status for given word|network</help>
+ <completionHelp>
+ <list>&lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "$*"</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>