diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-09-25 21:02:06 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-09-25 21:02:06 +0200 |
| commit | 9b5110a868ef413fdc1303f834220d99af8ceead (patch) | |
| tree | 82917993a91c7cce8f84d46792913e388ea8dabb /python | |
| parent | ce4f4c98f13dc039875bd23c51e081a5381917e0 (diff) | |
| download | vyos-1x-9b5110a868ef413fdc1303f834220d99af8ceead.tar.gz vyos-1x-9b5110a868ef413fdc1303f834220d99af8ceead.zip | |
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 <ifname>", 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.
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/configsession.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
