summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/services/vpp.services.js
diff options
context:
space:
mode:
Diffstat (limited to 'vbd/gui/module/src/main/resources/vpp/services/vpp.services.js')
-rw-r--r--vbd/gui/module/src/main/resources/vpp/services/vpp.services.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/vbd/gui/module/src/main/resources/vpp/services/vpp.services.js b/vbd/gui/module/src/main/resources/vpp/services/vpp.services.js
deleted file mode 100644
index 19cee135b..000000000
--- a/vbd/gui/module/src/main/resources/vpp/services/vpp.services.js
+++ /dev/null
@@ -1,48 +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
- */
-define(['app/vpp/vpp.module', 'next'], function(vpp) {
-
- vpp.register.factory('VPPRestangular', function(Restangular, ENV) {
- return Restangular.withConfig(function(RestangularConfig) {
- RestangularConfig.setBaseUrl(ENV.getBaseURL("MD_SAL"));
- });
- });
-
- vpp.register.factory('VPPRestangularXml', function(Restangular, ENV) {
- return Restangular.withConfig(function(RestangularConfig) {
- RestangularConfig.setBaseUrl(ENV.getBaseURL("MD_SAL"));
- RestangularConfig.setDefaultHeaders({ "Content-Type": "application/xml" }, { "Accept": "application/xml" });
- });
- });
-
- vpp.register.service('toastService', function($mdToast) {
- this.showToast = function(content) {
- var toast = $mdToast.simple()
- .content(content)
- .action('OK')
- .position('bottom right');
- $mdToast.show(toast);
- }
- });
-
- vpp.register.service('dataService', ['$timeout', 'bdmTunnelService',function($timeout, bdmTunnelService) {
-
- var self = this;
-
- this.vpps = [];
- this.interfaces = [];
- this.selectedBd = {
- name: ''
- };
-
-
- }]);
-
-
-
-}); \ No newline at end of file