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.js64
1 files changed, 0 insertions, 64 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
deleted file mode 100644
index 5bd2c955e..000000000
--- a/vbd/gui/module/src/main/resources/vpp/controllers/vpp.controller.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-var modules = [
- // module
- 'app/vpp/vpp.module',
- // services
- 'app/vpp/services/vpp.services',
- 'app/vpp/services/inventory.service',
- 'app/vpp/services/bdm.service',
- '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',
- 'app/vpp/controllers/bdm.bridgedomain.controller',
- 'app/vpp/controllers/bdm.vpp.controller',
- 'app/vpp/controllers/bdm.interface.controller'
-];
-
-
-define(modules, function(vpp) {
-
- vpp.controller('vppCtrl', ['$scope', '$rootScope', '$timeout', 'toastService', '$mdSidenav', '$mdDialog',
- function ($scope, $rootScope, $timeout, toastService, $mdSidenav, $mdDialog) {
-
- $rootScope['section_logo'] = 'src/app/vpp/assets/images/vpp.gif';
- $scope.view_path = 'src/app/vpp/views/';
-
- $scope.mainView = "inventory";
- $scope.selectedVpp = null;
-
- $scope.setMainView = function(viewName) {
- $scope.mainView = viewName;
- };
-
- $scope.selectVpp = function(vpp) {
- $scope.selectedVpp = vpp;
- $scope.$broadcast('RELOAD_SELECTED_VPP');
- };
-
- // filter used in inventory to filter interfaceList of vxlan_tunnel interfaces
- $scope.filterRemoveVxlanIf = function (item) {
- 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 && item.name.indexOf('vxlan') === 0) || (item['tp-id'] && item['tp-id'].indexOf('vxlan') === 0);
- };
-
- }]);
-
-
-});
-
-