From d9b70a77b07e916ae39893c91c40f13a6e3cc5b6 Mon Sep 17 00:00:00 2001 From: Dominik Vrbovsky Date: Wed, 5 Jan 2022 10:19:17 +0100 Subject: [PATCH] Fix the showing up mounted devices in apidocs Swagger Currently all mounted devices show up in the drop down list as "topology-netconfnode". If there are many mounted devices there is no way to find the mounted node you are looking for without clicking on each selection on the list. Fix this to show up particular node ID instead of "topology-netconfnode". JIRA: NETCONF-843 Change-Id: Iecbc2e27f66719d2a9a7024ab9813077ff7cfdb3 Signed-off-by: Dominik Vrbovsky (cherry picked from commit b67affb6c2694fffa9f99ca3abc6a657068002c1) --- restconf/sal-rest-docgen/src/main/resources/explorer/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restconf/sal-rest-docgen/src/main/resources/explorer/index.html b/restconf/sal-rest-docgen/src/main/resources/explorer/index.html index b1e4300a9f..954a17bc87 100644 --- a/restconf/sal-rest-docgen/src/main/resources/explorer/index.html +++ b/restconf/sal-rest-docgen/src/main/resources/explorer/index.html @@ -51,7 +51,7 @@ {url: document.URL.split('/apidoc')[0] + "/apidoc/openapi3/apis/single", name: "Controller resources - RestConf draft02"}]; var devices = JSON.parse(xmlHttp.responseText); for (var i =0; i < devices.length; i++) { - var device_name = devices[i]['instance'].split('=')[1].replace('/', ''); + var device_name = devices[i]['instance'].split('=')[2].replace('/', ''); var dveice_id = devices[i]['id']; var dict = { url: base_url_rfc + dveice_id, -- 2.36.6