diff options
Diffstat (limited to 'lcm/ns/urls.py')
-rw-r--r-- | lcm/ns/urls.py | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/lcm/ns/urls.py b/lcm/ns/urls.py index d9efa614..0a12ed7e 100644 --- a/lcm/ns/urls.py +++ b/lcm/ns/urls.py @@ -14,20 +14,21 @@ from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns -from lcm.ns.views.create_ns_view import CreateNSView -from lcm.ns.views.inst_ns_view import NSInstView -from lcm.ns.views.term_ns_view import TerminateNSView +from lcm.ns.views.deprecated.create_ns_view import CreateNSView +from lcm.ns.views.deprecated.get_del_ns_view import NSDetailView +from lcm.ns.views.deprecated.inst_ns_view import NSInstView +from lcm.ns.views.deprecated.term_ns_view import TerminateNSView +from lcm.ns.views.sol.ns_instances_views import NSInstancesView, IndividualNsInstanceView +from lcm.ns.views.sol.nslcm_op_views import InstantiateNsView, TerminateNsView from lcm.ns.views.heal_ns_view import NSHealView -from lcm.ns.views.update_ns_view import NSUpdateView -from lcm.ns.views.get_del_ns_view import NSDetailView from lcm.ns.views.inst_ns_post_deal_view import NSInstPostDealView +from lcm.ns.views.lcm_op_occs_view import QueryMultiNsLcmOpOccs, QuerySingleNsLcmOpOcc from lcm.ns.views.scale_ns_views import NSManualScaleView from lcm.ns.views.subscriptions_view import SubscriptionsView -from lcm.ns.views.lcm_op_occs_view import QueryMultiNsLcmOpOccs, QuerySingleNsLcmOpOcc +from lcm.ns.views.update_ns_view import NSUpdateView urlpatterns = [ # API will be deprecated in the future release - url(r'^api/nslcm/v1/subscriptions$', SubscriptionsView.as_view()), url(r'^api/nslcm/v1/ns$', CreateNSView.as_view()), url(r'^api/nslcm/v1/ns/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/instantiate$', NSInstView.as_view()), url(r'^api/nslcm/v1/ns/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/terminate$', TerminateNSView.as_view()), @@ -37,10 +38,15 @@ urlpatterns = [ url(r'^api/nslcm/v1/ns/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/heal$', NSHealView.as_view()), url(r'^api/nslcm/v1/ns_lcm_op_occs$', QueryMultiNsLcmOpOccs.as_view()), url(r'^api/nslcm/v1/ns_lcm_op_occs/(?P<lcmopoccid>[0-9a-zA-Z_-]+)$', QuerySingleNsLcmOpOcc.as_view()), + url(r'^api/nslcm/v1/ns/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/update$', NSUpdateView.as_view()), + + # SOL005 URL API definition + url(r'^api/nslcm/v1/ns_instances$', NSInstancesView.as_view()), + url(r'^api/nslcm/v1/ns_instances$/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/instantiate$', InstantiateNsView.as_view()), + url(r'^api/nslcm/v1/ns_instances$/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/terminate$', TerminateNsView.as_view()), + url(r'^api/nslcm/v1/ns_instances$/(?P<ns_instance_id>[0-9a-zA-Z_-]+)$', IndividualNsInstanceView.as_view()), + url(r'^api/nslcm/v1/subscriptions$', SubscriptionsView.as_view()), - # SOL005 URL API definition TODO - url(r'^api/nslcm/v1/ns/(?P<ns_instance_id>[0-9a-zA-Z_-]+)/update$', - NSUpdateView.as_view()) ] urlpatterns = format_suffix_patterns(urlpatterns) |