summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com>2018-08-13 14:10:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-13 14:10:16 +0000
commit25ce2953eccc6acae7c232112f61d950c16e24f7 (patch)
tree154cccae70df50381648d1e8d26ec64ada09ed93
parentbe84b41f0eb2c390bf220b0f6f007190642449bd (diff)
parentd470f197d72132947e285b4e5abcbd03f3d226a4 (diff)
Merge "Add the /route rest api in the osdf"
-rwxr-xr-xosdfapp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/osdfapp.py b/osdfapp.py
index 698d922..b1dde44 100755
--- a/osdfapp.py
+++ b/osdfapp.py
@@ -122,6 +122,16 @@ def do_placement_opt():
transaction_id=request_json['requestInfo']['transactionId'],
request_status="accepted", status_message="")
+
+@app.route("/api/oof/v1/route", methods=["POST"])
+@auth_basic.login_required
+def do_route_calc():
+ """Perform the basic route calculations and returnn the vpn-bindings
+ TODO:Need to add the new class for the route in the API and model to provide this function
+ """
+ return "OK"
+
+
@app.errorhandler(500)
def internal_failure(error):
"""Returned when unexpected coding errors occur during initial synchronous processing"""