- Bug https://bugs.opendaylight.org/show_bug.cgi?id=6440
Change-Id: Ib9e9783b6be5853196749ea6bd4418f9c048a7ba
Signed-off-by: Stanislav Jamrich <sjamrich@cisco.com>
changed = false;
if (node && module) {
changed = false;
if (node && module) {
- usesNode.parent.children.splice(usesNode.parent.children.indexOf(usesNode), 1); // delete uses node
+ if (usesNode.parent.children) { // if parent is node
+ usesNode.parent.children.splice(usesNode.parent.children.indexOf(usesNode), 1); // delete uses node
+ }
+ else if (usesNode.parent._roots) { // if parent is module
+ usesNode.parent._roots.splice(usesNode.parent._roots.indexOf(usesNode), 1);
+ }
for (var i = 0; i < node.children.length; i++) {
applyLinks(node.children[i], module, modules);
}
for (var i = 0; i < node.children.length; i++) {
applyLinks(node.children[i], module, modules);
}
// TODO: add service's description
function isRootNode(type) {
// TODO: add service's description
function isRootNode(type) {
- return type === 'container' || type === 'list' || type === 'rpc';
+ return type === 'container' || type === 'list' || type === 'uses' || type === 'rpc';
}
// TODO: add service's description
}
// TODO: add service's description