diff options
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 c84d80a77..a27470eeb 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -21,7 +21,9 @@ SET = '/opt/vyatta/sbin/my_set' DELETE = '/opt/vyatta/sbin/my_delete' COMMENT = '/opt/vyatta/sbin/my_comment' COMMIT = '/opt/vyatta/sbin/my_commit' +DISCARD = '/opt/vyatta/sbin/my_discard' +# Default "commit via" string APP = "vyos-api" @@ -95,3 +97,6 @@ class ConfigSession(object): def commit(self): self.__run_command([COMMIT]) + + def discard(self): + self.__run_command([DISCARD]) |