summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js')
-rw-r--r--vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js b/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
index 16ce20402..5bd2c955e 100644
--- a/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
+++ b/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
@@ -16,6 +16,7 @@ var modules = [
'app/vpp/services/bdm.bridgedomain.service',
'app/vpp/services/bdm.interface.service',
'app/vpp/services/bdm.vpp.service',
+ 'app/vpp/services/bdm.tunnel.service',
//controllers
'app/vpp/controllers/inventory.controller',
'app/vpp/controllers/bdm.controller',
@@ -47,12 +48,12 @@ define(modules, function(vpp) {
// filter used in inventory to filter interfaceList of vxlan_tunnel interfaces
$scope.filterRemoveVxlanIf = function (item) {
- return item.name.indexOf('vxlan') !== 0;
+ return (item.name && item.name.indexOf('vxlan') !== 0) || (item['tp-id'] && item['tp-id'].indexOf('vxlan') !== 0);
};
// filter used in inventory to return vxlan_tunnel interfaces
$scope.filterGetVxlanIf = function (item) {
- return item.name.indexOf('vxlan') === 0;
+ return (item.name && item.name.indexOf('vxlan') === 0) || (item['tp-id'] && item['tp-id'].indexOf('vxlan') === 0);
};
}]);