diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-06-11 17:49:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-11 17:49:11 +0300 |
commit | 5a96b6654b48cd994f3a40172c84b876f4284924 (patch) | |
tree | 85d6ddb0870ff7483423dd466a616836f98213a8 | |
parent | b40e7a2de9daa866b6423391ba7fe5b1bfa7e67c (diff) | |
parent | 9b014af283234d04eef134599bf5cbc62194d72b (diff) | |
download | vyos-1x-5a96b6654b48cd994f3a40172c84b876f4284924.tar.gz vyos-1x-5a96b6654b48cd994f3a40172c84b876f4284924.zip |
Merge pull request #4553 from dmbaturin/T7540-reset-connection
op-mode: T7540: move "clear interface connection" to "reset connection"
-rw-r--r-- | op-mode-definitions/clear-interfaces.xml.in | 11 | ||||
-rw-r--r-- | op-mode-definitions/reset-connection.xml.in | 18 |
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> |