/** Yang capabilities of the selected network elements. */
public async infoNetworkElement(nodeId: string): Promise<TopologyNode | null> {
- const path = '/rests/operational/network-topology:network-topology/topology=topology-netconf/node=' + nodeId;
+ const path = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=' + nodeId;
const topologyRequestPomise = requestRest<Topology>(path, { method: "GET" });
return topologyRequestPomise && topologyRequestPomise.then(result => {
- return result && result.node && result.node[0] || null;
+ return result && result["network-topology:node"] && result["network-topology:node"][0] || null;
});
}
})) || null;
}
- public async getWebUriExtensionForNetworkElementAsync(ne: string) {
- const path = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=' + ne + '/yang-ext:mount/core-model:network-element';
- try {
- const result = await requestRest<any>(path, { method: "GET" });
-
- if (result['network-element'].extension) {
- const webUri = result['network-element'].extension.find((item: any) => item['value-name'] === "webUri")
- if (webUri) {
- return webUri.value as string;
- }
- }
- } catch (error) {
- console.log(ne + ' unrechable: ' + error)
- }
-
- return undefined;
-
- }
-
public getAllWebUriExtensionsForNetworkElementListAsync(ne: string[]) {
let promises: any[] = [];
// add search request to array
promises.push(requestRest<any>(path, { method: "GET" })
.then(result => {
-
- if (result != null && result['network-element'] && result['network-element'].extension) {
- const webUri = result['network-element'].extension.find((item: any) => item['value-name'] === "webUri")
+ if (result != null && result['core-model:network-element'] && result['core-model:network-element'].extension) {
+ const webUri = result['core-model:network-element'].extension.find((item: any) => item['value-name'] === "webUri")
if (webUri) {
webUris.push({ webUri: webUri.value, nodeId: nodeId });
} else {
<properties>
<buildtime>${maven.build.timestamp}</buildtime>
<distversion>ONAP Frankfurt (Neon, mdsal ${odl.mdsal.version})</distversion>
- <buildno>66.be51a7d(20/09/03)</buildno>
+ <buildno>68.d7886ce(20/09/04)</buildno>
<odlux.version>ONAP SDN-R | ONF Wireless for ${distversion} - Build: ${buildtime} ${buildno} ${project.version}</odlux.version>
</properties>
const { icon, primary: Primary, secondary: Secondary, classes, to, exact = false } = props;\r
const renderLink = (itemProps: any): JSX.Element => (<NavLink exact={ exact } to={ to } activeClassName={ classes.active } { ...itemProps } />);\r
\r
+ const ariaLabel = typeof Primary === 'string' ? "link-to-"+Primary.toLowerCase().replace(/\s/g, "-") : "link-to-"+Primary.displayName?.toLowerCase();\r
return (\r
<>\r
- <ListItem button component={ renderLink }>\r
+ <ListItem button component={ renderLink } aria-label={ariaLabel}>\r
{ icon\r
? <ListItemIcon>{ icon }</ListItemIcon>\r
: null\r
}\r
{ typeof Primary === 'string'\r
- ? <ListItemText aria-label={"link-to-"+Primary.toLowerCase()} primary={ Primary } style={{ padding: 0 }} /> \r
+ ? <ListItemText primary={ Primary } style={{ padding: 0 }} /> \r
: <Primary />\r
}\r
</ListItem>\r