Remove ONOSes from service chain
diff --git a/views/ngXosViews/diagnostic/src/js/diagnostic.js b/views/ngXosViews/diagnostic/src/js/diagnostic.js
index 6638a95..419dd7c 100644
--- a/views/ngXosViews/diagnostic/src/js/diagnostic.js
+++ b/views/ngXosViews/diagnostic/src/js/diagnostic.js
@@ -17,6 +17,8 @@
})
.then((serviceChain) => {
this.serviceChain = serviceChain;
+ // debug helper
+ loadSubscriber(this.subscribers[0]);
})
.catch(e => {
throw new Error(e);
@@ -26,7 +28,7 @@
this.loader = false;
});
- $rootScope.$on('subscriber.selected', (evt, subscriber) => {
+ const loadSubscriber = (subscriber) => {
ServiceRelation.getBySubscriber(subscriber)
.then((serviceChain) => {
this.serviceChain = serviceChain;
@@ -37,8 +39,13 @@
this.selectedSubscriber = subscriber;
ChartData.currentSubscriber = subscriber;
});
+ };
+
+ $rootScope.$on('subscriber.selected', (evt, subscriber) => {
+ loadSubscriber(subscriber);
});
+
}
}
});
-})();
\ No newline at end of file
+})();
diff --git a/views/ngXosViews/diagnostic/src/js/rest_services.js b/views/ngXosViews/diagnostic/src/js/rest_services.js
index 5677f30..91242b3 100644
--- a/views/ngXosViews/diagnostic/src/js/rest_services.js
+++ b/views/ngXosViews/diagnostic/src/js/rest_services.js
@@ -313,6 +313,10 @@
};
lodash.forEach(levelServices, (service) => {
+ if(service.humanReadableName === 'service_ONOS_vBNG' || service.humanReadableName === 'service_ONOS_vOLT'){
+ // remove ONOSes from service chart
+ return;
+ }
let tenant = lodash.find(tenants, {subscriber_tenant: rootTenant.id, provider_service: service.id});
tree.children.push(buildLevel(tenants, unlinkedServices, service, tenant, rootService.humanReadableName));
});