summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2025-06-11 15:12:19 +0100
committerDaniil Baturin <daniil@baturin.org>2025-06-11 15:12:19 +0100
commit9b014af283234d04eef134599bf5cbc62194d72b (patch)
tree7ea5b1e512d7f09e24ed631644aebae0d3c4ebd4
parent09f63fb975daaefe843641c5ffbec34ddf6b18de (diff)
downloadvyos-1x-9b014af283234d04eef134599bf5cbc62194d72b.tar.gz
vyos-1x-9b014af283234d04eef134599bf5cbc62194d72b.zip
op-mode: T7540: move "clear interface connection" to "reset connection"
-rw-r--r--op-mode-definitions/clear-interfaces.xml.in11
-rw-r--r--op-mode-definitions/reset-connection.xml.in18
2 files changed, 18 insertions, 11 deletions
diff --git a/op-mode-definitions/clear-interfaces.xml.in b/op-mode-definitions/clear-interfaces.xml.in
index 3090aa771..31348808a 100644
--- a/op-mode-definitions/clear-interfaces.xml.in
+++ b/op-mode-definitions/clear-interfaces.xml.in
@@ -16,17 +16,6 @@
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters</command>
</node>
- <tagNode name="connection">
- <properties>
- <help>Bring connection-oriented network interface down and up</help>
- <completionHelp>
- <path>interfaces pppoe</path>
- <path>interfaces sstpc</path>
- <path>interfaces wwan</path>
- </completionHelp>
- </properties>
- <command>${vyos_op_scripts_dir}/connect_disconnect.py --connect --disconnect --interface "$3"</command>
- </tagNode>
<node name="bonding">
<properties>
<help>Clear Bonding interface information</help>
diff --git a/op-mode-definitions/reset-connection.xml.in b/op-mode-definitions/reset-connection.xml.in
new file mode 100644
index 000000000..e41d8ed20
--- /dev/null
+++ b/op-mode-definitions/reset-connection.xml.in
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="reset">
+ <children>
+ <tagNode name="connection">
+ <properties>
+ <help>Bring connection-oriented network interface down and up</help>
+ <completionHelp>
+ <path>interfaces pppoe</path>
+ <path>interfaces sstpc</path>
+ <path>interfaces wwan</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/connect_disconnect.py --connect --disconnect --interface "$3"</command>
+ </tagNode>
+ </children>
+ </node>
+</interfaceDefinition>