diff options
author | John Estabrook <jestabro@vyos.io> | 2025-05-28 17:12:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-28 17:12:03 -0500 |
commit | e604e68a5a77718a25b60737dcb9699b84c8e34b (patch) | |
tree | 29dd08d4d3b65c0338b3183c79c42632670b5893 /python | |
parent | a81ab0c6808080f521bfb673c61f90a744c625ff (diff) | |
parent | 7b3ce52e3babdf3a17910ce5322e571d5c91bb38 (diff) | |
download | vyos-1x-e604e68a5a77718a25b60737dcb9699b84c8e34b.tar.gz vyos-1x-e604e68a5a77718a25b60737dcb9699b84c8e34b.zip |
Merge pull request #4529 from IDerr/current
T7395: Add support for renew in REST Server
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 1b19c68b4..b6394d139 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -68,6 +68,7 @@ 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'] 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'] OP_CMD_ADD = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'add'] OP_CMD_DELETE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'delete'] @@ -384,6 +385,10 @@ class ConfigSession(object): out = self.__run_command(RESET + path) return out + def renew(self, path): + out = self.__run_command(RENEW + path) + return out + def poweroff(self, path): out = self.__run_command(POWEROFF + path) return out |