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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py
index 9864aa5c5..df44fd8d6 100644
--- a/python/vyos/configsession.py
+++ b/python/vyos/configsession.py
@@ -34,8 +34,8 @@ REMOVE_IMAGE = ['/opt/vyatta/bin/vyatta-boot-image.pl', '--del']
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']
-ADD = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'add']
-DELETE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'delete']
+OP_CMD_ADD = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'add']
+OP_CMD_DELETE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'delete']
# Default "commit via" string
APP = "vyos-http-api"
@@ -208,11 +208,11 @@ class ConfigSession(object):
return out
def add_container_image(self, name):
- out = self.__run_command(ADD + ['container', 'image'] + [name])
+ out = self.__run_command(OP_CMD_ADD + ['container', 'image'] + [name])
return out
def delete_container_image(self, name):
- out = self.__run_command(DELETE + ['container', 'image'] + [name])
+ out = self.__run_command(OP_CMD_DELETE + ['container', 'image'] + [name])
return out
def show_container_image(self):