From d97a05097134fe044ef416e72371948b0bb22b5c Mon Sep 17 00:00:00 2001 From: Daniel Malachovsky Date: Thu, 4 Feb 2016 15:12:56 +0100 Subject: Copyright header fix - added copyright header to css and js files - small fixes in css files Change-Id: I62a32067d71ede7a7440662b1816f939659101e7 Signed-off-by: Daniel Malachovsky --- .../module/src/main/resources/vpp/vpp.services.js | 52 ++++------------------ 1 file changed, 8 insertions(+), 44 deletions(-) (limited to 'vbd/gui/module/src/main/resources/vpp/vpp.services.js') diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.services.js b/vbd/gui/module/src/main/resources/vpp/vpp.services.js index c212f4f36..7f082ae1e 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.services.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.services.js @@ -1,3 +1,10 @@ +/* + * 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) { @@ -474,49 +481,6 @@ define(['app/vpp/vpp.module', 'next'], function(vpp) { }); }; - s.editVpp = function(name,ip,port,un,pw,finishedSuccessfullyCallback) { - var putData = '\ - \ - prefix:sal-netconf-connector\ - '+name+'\ -
'+ip+'
\ - '+port+'\ - '+un+'\ - '+pw+'\ - false\ - \ - prefix:netty-event-executor\ - global-event-executor\ - \ - \ - prefix:binding-broker-osgi-registry\ - binding-osgi-broker\ - \ - \ - prefix:dom-broker-osgi-registry\ - dom-broker\ - \ - \ - prefix:netconf-client-dispatcher\ - global-netconf-dispatcher\ - \ - \ - prefix:threadpool\ - global-netconf-processing-executor\ - \ -
'; - //var configVpp = '/api/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/'; - - - var restObj = VPPRestangularXml.one('restconf').one('config').one('network-topology:network-topology').one('topology').one('topology-netconf').one('node').one('controller-config').one('yang-ext:mount').one('config:modules').one('module').one('odl-sal-netconf-connector-cfg:sal-netconf-connector').one(name); - - restObj.customPUT(putData).then(function() { - finishedSuccessfullyCallback(true); - }, function(res) { - finishedSuccessfullyCallback(false); - }); - }; - s.mountVpp = function(name,ip,port,un,pw,finishedSuccessfullyCallback) { var postData = '\ @@ -562,7 +526,7 @@ define(['app/vpp/vpp.module', 'next'], function(vpp) { return s; }); - vpp.register.factory('InterfaceService', function(VPPRestangular) { + vpp.register.factory('VppInterfaceService', function(VPPRestangular) { var s = {}; s.getInterfaceList = function(vppName,successCallback, errorCallback) { -- cgit 1.2.3-korg