diff options
Diffstat (limited to 'mgr')
-rw-r--r-- | mgr/mgr/pub/config/config.py | 1 | ||||
-rw-r--r-- | mgr/mgr/urls.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mgr/mgr/pub/config/config.py b/mgr/mgr/pub/config/config.py index 9bdb193..3eb285e 100644 --- a/mgr/mgr/pub/config/config.py +++ b/mgr/mgr/pub/config/config.py @@ -48,3 +48,4 @@ REG_TO_MSB_REG_PARAM = { "ttl": 0 }] } +MSB_SVC_URL = "/api/microservices/v1/services/vnfmgr/version/v1" diff --git a/mgr/mgr/urls.py b/mgr/mgr/urls.py index ecd5d20..976857a 100644 --- a/mgr/mgr/urls.py +++ b/mgr/mgr/urls.py @@ -14,7 +14,7 @@ from django.conf.urls import include, url -from mgr.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM +from mgr.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM, MSB_SVC_URL urlpatterns = [ url(r'^', include('mgr.vnfreg.urls')), @@ -26,4 +26,5 @@ urlpatterns = [ if REG_TO_MSB_WHEN_START: import json from mgr.pub.utils.restcall import req_by_msb + req_by_msb(MSB_SVC_URL, "DELETE") req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) |