summaryrefslogtreecommitdiff
path: root/python/vyos/configsession.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/configsession.py')
-rw-r--r--python/vyos/configsession.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py
index acbdd3d5f..09fae78a1 100644
--- a/python/vyos/configsession.py
+++ b/python/vyos/configsession.py
@@ -145,7 +145,8 @@ class ConfigSession(object):
self.__run_command([COMMENT] + path + value)
def commit(self):
- self.__run_command([COMMIT])
+ out = self.__run_command([COMMIT])
+ return out
def discard(self):
self.__run_command([DISCARD])
@@ -157,4 +158,5 @@ class ConfigSession(object):
return config_data
def load_config(self, file_path):
- self.__run_command(LOAD_CONFIG + [file_path])
+ out = self.__run_command(LOAD_CONFIG + [file_path])
+ return out