aboutsummaryrefslogtreecommitdiffstats
path: root/osdfapp.py
diff options
context:
space:
mode:
authorMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>2020-06-30 16:49:05 +0000
committerkrishna moorthy <krishna.moorthy6@wipro.com>2020-08-14 09:31:38 +0000
commit6e8e8fef1cf7dda685cbe6f1f67d759847e62782 (patch)
tree61d5346e1c793eae2c31bd20cca6f830a457a07a /osdfapp.py
parentf16a36e97aae114d9168eff7a4d273891e00d387 (diff)
Inter Domain Route Calculation for
the MDONS use case Change-Id: Ic831fd92028ef3c1ac86f5067d68c19a7af3e8d6 Issue-ID: OPTFRA-753 Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Diffstat (limited to 'osdfapp.py')
-rwxr-xr-xosdfapp.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/osdfapp.py b/osdfapp.py
index 1099e55..b455292 100755
--- a/osdfapp.py
+++ b/osdfapp.py
@@ -33,6 +33,7 @@ from apps.nst.optimizers.nst_select_processor import process_nst_selection
from apps.pci.optimizers.pci_opt_processor import process_pci_optimation
from apps.placement.models.api.placementRequest import PlacementAPI
from apps.placement.optimizers.conductor.remote_opt_processor import process_placement_opt
+from apps.route.optimizers.inter_domain_route_opt import InterDomainRouteOpt
from apps.route.optimizers.simple_route_opt import RouteOpt
from apps.slice_selection.models.api.nsi_selection_request import NSISelectionAPI
from apps.slice_selection.optimizers.conductor.remote_opt_processor import process_nsi_selection_opt
@@ -104,6 +105,16 @@ def do_route_calc():
response = RouteOpt().get_route(request_json, osdf_config)
return response
+@app.route("/api/oof/mdons/route/v1", methods=["POST"])
+def do_mdons_route_calc():
+ """
+ Perform the inter domain route calculation
+ """
+ request_json = request.get_json()
+ audit_log.info("Inter Domain Calculation Route request received!")
+ response = InterDomainRouteOpt().get_route(request_json, osdf_config)
+ return response
+
@app.route("/api/oof/v1/selection/nst", methods=["POST"])
def do_nst_selection():
request_json = request.get_json()