summaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/gui/src/main/webapp/app/view/group
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/web/gui/src/main/webapp/app/view/group')
-rw-r--r--framework/src/onos/web/gui/src/main/webapp/app/view/group/group.css76
-rw-r--r--framework/src/onos/web/gui/src/main/webapp/app/view/group/group.html95
-rw-r--r--framework/src/onos/web/gui/src/main/webapp/app/view/group/group.js71
3 files changed, 0 insertions, 242 deletions
diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.css b/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.css
deleted file mode 100644
index 6773aa83..00000000
--- a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.css
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright 2015 Open Networking Laboratory
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- ONOS GUI -- Group View -- CSS file
- */
-
-#ov-group h2 {
- display: inline-block;
-}
-
-#ov-group div.ctrl-btns {
-}
-
-.light #ov-group .current-view use {
- fill: white;
-}
-.dark #ov-group .current-view use {
- fill: #304860;
-}
-
-.light #ov-group .current-view rect {
- fill: deepskyblue;
-}
-.dark #ov-group .current-view rect {
- fill: #eee;
-}
-
-.light #ov-group tr:nth-child(4n + 1),
-.light #ov-group tr:nth-child(4n + 2) {
- background-color: #eee;
-}
-.light #ov-group tr:nth-child(4n + 3),
-.light #ov-group tr:nth-child(4n) {
- background-color: #ddd;
-}
-.dark #ov-group tr:nth-child(4n + 1),
-.dark #ov-group tr:nth-child(4n + 2) {
- background-color: #444;
-}
-.dark #ov-group tr:nth-child(4n + 3),
-.dark #ov-group tr:nth-child(4n) {
- background-color: #333;
-}
-
-/* highlighted color */
-.light #ov-group tr:nth-child(4n + 1).data-change,
-.light #ov-group tr:nth-child(4n + 2).data-change,
-.light #ov-group tr:nth-child(4n + 3).data-change,
-.light #ov-group tr:nth-child(4n).data-change {
- background-color: #FDFFDC;
-}
-.dark #ov-group tr:nth-child(4n + 1).data-change,
-.dark #ov-group tr:nth-child(4n + 2).data-change,
-.dark #ov-group tr:nth-child(4n + 3).data-change,
-.dark #ov-group tr:nth-child(4n).data-change {
- background-color: #5A5600;
-}
-
-#ov-group td.buckets {
- padding-left: 36px;
- opacity: 0.65;
-}
diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.html b/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.html
deleted file mode 100644
index 93484dc8..00000000
--- a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!--
- ~ Copyright 2015 Open Networking Laboratory
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
-<!-- Group partial HTML -->
-<div id="ov-group">
- <div class="tabular-header">
- <h2>
- Groups for Device {{devId || "(No device selected)"}}
- ({{tableData.length}} total)
- </h2>
- <div class="ctrl-btns">
- <div class="refresh" ng-class="{active: autoRefresh}"
- icon icon-size="36" icon-id="refresh"
- tooltip tt-msg="autoRefreshTip"
- ng-click="toggleRefresh()"></div>
-
- <div class="separator"></div>
-
- <div class="active"
- icon icon-id="deviceTable" icon-size="36"
- tooltip tt-msg="deviceTip"
- ng-click="nav('device')"></div>
-
- <div class="active"
- icon icon-id="flowTable" icon-size="36"
- tooltip tt-msg="flowTip"
- ng-click="nav('flow')"></div>
-
- <div class="active"
- icon icon-id="portTable" icon-size="36"
- tooltip tt-msg="portTip"
- ng-click="nav('port')"></div>
-
- <div class="current-view"
- icon icon-id="groupTable" icon-size="36"></div>
- </div>
- </div>
-
- <div class="summary-list" onos-table-resize>
- <div ng-show="loading" class="loading-wheel"
- icon icon-id="loading" icon-size="75"></div>
-
- <div class="table-header" onos-sortable-header>
- <table>
- <tr>
- <td colId="id" sortable>Group ID </td>
- <td colId="app_id" sortable>App ID </td>
- <td colId="state" sortable>State </td>
- <td colId="type" sortable>Type </td>
- <td colId="packets" sortable>Packets </td>
- <td colId="bytes" sortable>Bytes </td>
- </tr>
- </table>
- </div>
-
- <div class="table-body">
- <table onos-flash-changes id-prop="id">
- <tr ng-if="!tableData.length" class="no-data">
- <td colspan="6">
- No Groups found
- </td>
- </tr>
-
- <tr ng-repeat-start="group in tableData track by $index"
- ng-repeat-complete row-id="{{group.id}}">
- <td>{{group.id}}</td>
- <td>{{group.app_id}}</td>
- <td>{{group.state}}</td>
- <td>{{group.type}}</td>
- <td>{{group.packets}}</td>
- <td>{{group.bytes}}</td>
- </tr>
- <tr row-id="{{group.id}}" ng-repeat-end>
- <td class="buckets" colspan="6"
- ng-bind-html="group.buckets"></td>
- </tr>
- </table>
- </div>
-
- </div>
-
-</div>
diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.js b/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.js
deleted file mode 100644
index 2cb1f0c4..00000000
--- a/framework/src/onos/web/gui/src/main/webapp/app/view/group/group.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright 2015 Open Networking Laboratory
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- ONOS GUI -- Group View Module
- */
-
-(function () {
- 'use strict';
-
- // injected references
- var $log, $scope, $location, fs, tbs, ns;
-
- angular.module('ovGroup', [])
- .controller('OvGroupCtrl',
- ['$log', '$scope', '$location', '$sce',
- 'FnService', 'TableBuilderService', 'NavService',
-
- function (_$log_, _$scope_, _$location_, $sce, _fs_, _tbs_, _ns_) {
- var params;
- $log = _$log_;
- $scope = _$scope_;
- $location = _$location_;
- fs = _fs_;
- tbs = _tbs_;
- ns = _ns_;
- $scope.deviceTip = 'Show device table';
- $scope.flowTip = 'Show flow view for this device';
- $scope.portTip = 'Show port view for this device';
-
- params = $location.search();
- if (params.hasOwnProperty('devId')) {
- $scope.devId = params['devId'];
- }
-
- tbs.buildTable({
- scope: $scope,
- tag: 'group',
- query: params
- });
-
- $scope.$watch('tableData', function () {
- if (!fs.isEmptyObject($scope.tableData)) {
- $scope.tableData.forEach(function (group) {
- group.buckets = $sce.trustAsHtml(group.buckets);
- });
- }
- });
-
- $scope.nav = function (path) {
- if ($scope.devId) {
- ns.navTo(path, { devId: $scope.devId });
- }
- };
-
- $log.log('OvGroupCtrl has been created');
- }]);
-}());