diff options
author | Daniel Malachovsky <daniel.malachovsky@pantheon.sk> | 2016-02-04 15:12:56 +0100 |
---|---|---|
committer | Daniel Malachovsky <daniel.malachovsky@pantheon.sk> | 2016-02-04 20:37:13 +0000 |
commit | d97a05097134fe044ef416e72371948b0bb22b5c (patch) | |
tree | 577a7b6097d04ec08dd3d75b102ebf7d7822f237 /vbd/gui | |
parent | 74a62622f19db08823be3e8f36777df94dc9de4e (diff) |
Copyright header fix
- added copyright header to css and js files
- small fixes in css files
Change-Id: I62a32067d71ede7a7440662b1816f939659101e7
Signed-off-by: Daniel Malachovsky <daniel.malachovsky@pantheon.sk>
Diffstat (limited to 'vbd/gui')
8 files changed, 51 insertions, 60 deletions
diff --git a/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml index b8c866da4..265cd7538 100644 --- a/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml +++ b/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml @@ -11,9 +11,9 @@ <property name="angularJs" value="app.vpp"/> <property name="cssDependencies"> <list> - <value>src/app/vpp/vpp.css</value> <value>src/app/vpp/assets/css/next.css</value> <value>src/app/vpp/bower_components/angular-material/angular-material.min.css</value> + <value>src/app/vpp/assets/css/vpp.css</value> </list> </property> </bean> diff --git a/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css b/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css index 0ca464309..45eb9f1d1 100644 --- a/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css +++ b/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css @@ -1,7 +1,15 @@ +/* + * 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 + */ + html,body { width: 100%; - height: 100%; overflow: hidden; + background-color: #414040; } #next-app { diff --git a/vbd/gui/module/src/main/resources/vpp/bower.json b/vbd/gui/module/src/main/resources/vpp/bower.json index 14f703511..a6edf5837 100644 --- a/vbd/gui/module/src/main/resources/vpp/bower.json +++ b/vbd/gui/module/src/main/resources/vpp/bower.json @@ -5,7 +5,8 @@ "authors": [ "Varun Seereeram", "Chris Metz", - "Dave Wallace" + "Dave Wallace", + "Daniel Malachovsky" ], "license": "ISC", "keywords": [ diff --git a/vbd/gui/module/src/main/resources/vpp/main.js b/vbd/gui/module/src/main/resources/vpp/main.js index 5ca86fd5f..6fdc5c209 100644 --- a/vbd/gui/module/src/main/resources/vpp/main.js +++ b/vbd/gui/module/src/main/resources/vpp/main.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 + */ require.config({ paths : { 'angular-material' : 'app/vpp/bower_components/angular-material/angular-material.min', diff --git a/vbd/gui/module/src/main/resources/vpp/package.json b/vbd/gui/module/src/main/resources/vpp/package.json index b049c926a..3909fb8e0 100644 --- a/vbd/gui/module/src/main/resources/vpp/package.json +++ b/vbd/gui/module/src/main/resources/vpp/package.json @@ -1,23 +1,18 @@ { - "name": "open-vpp", + "name": "odl-vpp", "version": "1.0.0", - "description": "open-vpp", - "main": "app.js", - "dependencies": { - "express": "^4.13.3", - "express-http-proxy": "^0.6.0", - "url": "^0.11.0" - }, + "description": "Opendaylight VPP UI", + "main": "main.js", "devDependencies": { "bower": "~1.3.12" }, "repository": { "type": "git", - "url": "ssh://git@stash-eng.cisco.com:7999/~dwallace/honeycomb-demo.git" + "url": "git clone https://gerrit.fd.io/r/honeycomb" }, - "author": "Varun Seereeram, Chris Metz, John Burns, Dave Wallace", + "author": "Varun Seereeram, Chris Metz, John Burns, Dave Wallace, Daniel Malachovsky", "license": "ISC", "keywords": [ - "open-vpp" + "odl-vpp" ] } diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.controller.js b/vbd/gui/module/src/main/resources/vpp/vpp.controller.js index 17d5a1085..ebfd49ae8 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.controller.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.controller.js @@ -1,3 +1,11 @@ +/* + * 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 = ['app/vpp/vpp.module', 'app/vpp/vpp.services', ]; @@ -17,10 +25,11 @@ define(modules, function(vpp) { }; }]); - vpp.register.controller('InventoryTableController', ['$scope', '$rootScope','$filter', 'toastService', 'VppService', '$mdDialog', 'dataService', 'InterfaceService', function($scope, $rootScope, filter, toastService, VppService, $mdDialog, dataService, InterfaceService) { + vpp.register.controller('InventoryTableController', ['$scope', '$rootScope','$filter', 'toastService', 'VppService', '$mdDialog', 'dataService', 'VppInterfaceService', + function($scope, $rootScope, filter, toastService, VppService, $mdDialog, dataService, VppInterfaceService) { $scope.getInterfaces = function(index) { - InterfaceService.getInterfaceList( + VppInterfaceService.getInterfaceList( $scope.vppList[index].name, //success callback function(data) { diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.module.js b/vbd/gui/module/src/main/resources/vpp/vpp.module.js index 5286e399f..04367de45 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.module.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.module.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(['angularAMD', 'app/routingConfig', 'ui-bootstrap', 'Restangular', 'angular-animate', 'angular-aria', 'angular-material', 'angular-smart-table', 'angular-translate', 'angular-translate-loader-partial'], function() { var vpp = angular.module('app.vpp', ['ui.router.state','app.core', 'ui.bootstrap', 'restangular', 'ngAnimate', 'ngAria', 'ngMaterial', 'smart-table', 'pascalprecht.translate']); 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 = '\ - <module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>\ - <name>'+name+'</name>\ - <address xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">'+ip+'</address>\ - <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">'+port+'</port>\ - <username xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">'+un+'</username>\ - <password xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">'+pw+'</password>\ - <tcp-only xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">false</tcp-only>\ - <event-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>\ - <name>global-event-executor</name>\ - </event-executor>\ - <binding-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-broker-osgi-registry</type>\ - <name>binding-osgi-broker</name>\ - </binding-registry>\ - <dom-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>\ - <name>dom-broker</name>\ - </dom-registry>\ - <client-dispatcher xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:netconf">prefix:netconf-client-dispatcher</type>\ - <name>global-netconf-dispatcher</name>\ - </client-dispatcher>\ - <processing-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">\ - <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadpool</type>\ - <name>global-netconf-processing-executor</name>\ - </processing-executor>\ - </module>'; - //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) { |