From 9b5110a868ef413fdc1303f834220d99af8ceead Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 25 Sep 2026 21:02:06 +0200 Subject: op-mode: T9354: replace "reset connection" with "reconnect interface" "connect interface" and "disconnect interface" cannot be combined to restart a dialer interface when the CLI session runs over that very interface, yet the command which does cover it was filed under an unrelated top-level node and was hard to find. It is now "reconnect interface ", mirroring the existing connect and disconnect commands. "reset connection" is removed, no alias is kept. The removed command was reachable through the REST API as a "reset" path. A dedicated "/reconnect" endpoint takes its place, so the operation stays available to API consumers. --- python/vyos/configsession.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py index 545b5abbc..6c9cd39ac 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -83,6 +83,7 @@ SET_DEFAULT_IMAGE = [ GENERATE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'generate'] SHOW = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'show'] RESET = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'reset'] +RECONNECT = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'reconnect'] REBOOT = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'reboot'] RENEW = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'renew'] POWEROFF = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'poweroff'] @@ -467,6 +468,10 @@ class ConfigSession(object): out = self.__run_command(RESET + path) return out + def reconnect(self, path): + out = self.__run_command(RECONNECT + path) + return out + def renew(self, path): out = self.__run_command(RENEW + path) return out -- cgit v1.2.3