From: Xiuchao Wu Date: Mon, 24 Oct 2016 16:24:08 +0000 (+0100) Subject: Remove unnecessary URL prefix "org.openo.sdno.brs" when portal calls BRS X-Git-Tag: release/sun~82^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f833c8b9010fcc60cb28d7c8a74319b99a6cb3ce;p=vnfsdk%2Frefrepo.git Remove unnecessary URL prefix "org.openo.sdno.brs" when portal calls BRS that is running in a docker [ SDNO-750 ] Change-Id: I1dda47c089098c8039a306ef30da376a54a8c3d8 Signed-off-by: Xiuchao Wu --- diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/brs.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/brs.js index 1c07026d..3dbc7ebd 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/brs.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/brs.js @@ -15,7 +15,7 @@ var url = ""; $.getJSON("./conf/dataconfig.json", function (jsonData){ - url = jsonData.url +":"+ jsonData.port + "/org.openo.sdno.brs"; + url = jsonData.url +":"+ jsonData.port; console.log("URL = " + url); }); @@ -346,4 +346,4 @@ $(function () { }); }); -}) \ No newline at end of file +}) diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js index 8fce8c64..ae8a0474 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js @@ -91,7 +91,7 @@ $(function () { var jsonobj = JSON.parse(formData); var newJson = {"managedElement": jsonobj}; formData = JSON.stringify(newJson); - var requestUrl = url + "/org.openo.sdno.brs/openoapi/sdnobrs/v1/managed-elements"; + var requestUrl = url + "/openoapi/sdnobrs/v1/managed-elements"; $ .ajax({ type : "POST", diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/vpn.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/vpn.js index f12ec533..f898e3de 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/vpn.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/vpn.js @@ -15,7 +15,7 @@ var url = ""; $.getJSON("./conf/dataconfig.json", function (jsonData){ - url = jsonData.url +":"+ jsonData.port + "/org.openo.sdno.brs"; + url = jsonData.url +":"+ jsonData.port; console.log("URL = " + url); }); @@ -309,4 +309,4 @@ $(function () { }); }); -}) \ No newline at end of file +}) diff --git a/openo-portal/portal-resmgr/src/main/webapp/resmgr-sdn/js/brs.js b/openo-portal/portal-resmgr/src/main/webapp/resmgr-sdn/js/brs.js index df28de3f..b9cace8a 100644 --- a/openo-portal/portal-resmgr/src/main/webapp/resmgr-sdn/js/brs.js +++ b/openo-portal/portal-resmgr/src/main/webapp/resmgr-sdn/js/brs.js @@ -14,7 +14,7 @@ */ var url = ""; $.getJSON("./conf/dataconfig.json", function (jsonData){ - url = jsonData.url +":"+ jsonData.port + "/org.openo.sdno.brs"; + url = jsonData.url +":"+ jsonData.port; console.log("URL = " + url); }); @@ -344,4 +344,4 @@ $(function () { }); }); -}) \ No newline at end of file +})