summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-05-06 12:13:52 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-05-06 19:12:32 -0500
commit3a24bd72f6eb10f5d38d053f0b234793865f6821 (patch)
treec9e9ac41b4e9bda69966324114c35206d119c12d /src/services
parented22334321d3b6f27b5d695a4f984257b909f78b (diff)
downloadvyos-1x-3a24bd72f6eb10f5d38d053f0b234793865f6821.tar.gz
vyos-1x-3a24bd72f6eb10f5d38d053f0b234793865f6821.zip
http api: function names should be consistent
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-http-api-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index c36cbd640..14cdd8437 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -77,7 +77,7 @@ def auth_required(f):
@app.route('/configure', method='POST')
@auth_required
-def configure():
+def configure_op():
session = app.config['vyos_session']
env = session.get_session_env()
config = vyos.config.Config(session_env=env)
@@ -188,7 +188,7 @@ def configure():
@app.route('/retrieve', method='POST')
@auth_required
-def get_value():
+def retrieve_op():
session = app.config['vyos_session']
env = session.get_session_env()
config = vyos.config.Config(session_env=env)
@@ -274,7 +274,7 @@ def config_file_op():
@app.route('/image', method='POST')
@auth_required
-def config_file_op():
+def image_op():
session = app.config['vyos_session']
command = bottle.request.forms.get("data")