From: Shankaranarayanan Puzhavakath Narayanan Date: Mon, 13 Aug 2018 14:10:16 +0000 (+0000) Subject: Merge "Add the /route rest api in the osdf" X-Git-Tag: 1.2.1~13 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=25ce2953eccc6acae7c232112f61d950c16e24f7;hp=be84b41f0eb2c390bf220b0f6f007190642449bd;p=optf%2Fosdf.git Merge "Add the /route rest api in the osdf" --- 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"""