Add the /route rest api in the osdf 99/59799/4
authorseshukm <seshu.kumar.m@huawei.com>
Thu, 9 Aug 2018 07:50:04 +0000 (15:50 +0800)
committerSeshu Kumar M <seshu.kumar.m@huawei.com>
Thu, 9 Aug 2018 10:53:19 +0000 (10:53 +0000)
placeholder for the /route as a start piont
Issue-ID: OPTFRA-310

Change-Id: I3e9befda318a2c69426c50084cc8fb111480d653
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
osdfapp.py

index 698d922..b1dde44 100755 (executable)
@@ -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"""