diff options
author | seshukm <seshu.kumar.m@huawei.com> | 2018-08-09 15:50:04 +0800 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-08-09 10:53:19 +0000 |
commit | d470f197d72132947e285b4e5abcbd03f3d226a4 (patch) | |
tree | b2a5cba9ef96112c4215ef189ad1b864f714aad3 | |
parent | 604d385c7678bc7abd1ebbd85218484910e70e8a (diff) |
Add the /route rest api in the osdf
placeholder for the /route as a start piont
Issue-ID: OPTFRA-310
Change-Id: I3e9befda318a2c69426c50084cc8fb111480d653
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
-rwxr-xr-x | osdfapp.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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""" |