diff options
author | CNlucius <lukai1@huawei.com> | 2016-09-13 11:40:12 +0800 |
---|---|---|
committer | CNlucius <lukai1@huawei.com> | 2016-09-13 11:41:53 +0800 |
commit | b731e2f1dd0972409b136aebc7b463dd72c9cfad (patch) | |
tree | 5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/web/gui/src/main/webapp/app/view/intent | |
parent | ee93993458266114c29271a481ef9ce7ce621b2a (diff) |
ONOSFW-171
O/S-SFC-ONOS scenario documentation
Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/web/gui/src/main/webapp/app/view/intent')
3 files changed, 0 insertions, 196 deletions
diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.css b/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.css deleted file mode 100644 index dfa50c37..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.css +++ /dev/null @@ -1,70 +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 -- Intent View -- CSS file - */ - -#ov-intent h2 { - display: inline-block; -} - -#ov-intent div.ctrl-btns { -} - -.light #ov-intent tr:nth-child(6n + 1), -.light #ov-intent tr:nth-child(6n + 2), -.light #ov-intent tr:nth-child(6n + 3) { - background-color: #eee; -} -.light #ov-intent tr:nth-child(6n + 4), -.light #ov-intent tr:nth-child(6n + 5), -.light #ov-intent tr:nth-child(6n) { - background-color: #ddd; -} -.dark #ov-intent tr:nth-child(6n + 1), -.dark #ov-intent tr:nth-child(6n + 2), -.dark #ov-intent tr:nth-child(6n + 3) { - background-color: #444; -} -.dark #ov-intent tr:nth-child(6n + 4), -.dark #ov-intent tr:nth-child(6n + 5), -.dark #ov-intent tr:nth-child(6n) { - background-color: #333; -} - -.light #ov-intent tr:nth-child(6n + 1).data-change, -.light #ov-intent tr:nth-child(6n + 2).data-change, -.light #ov-intent tr:nth-child(6n + 3).data-change, -.light #ov-intent tr:nth-child(6n + 4).data-change, -.light #ov-intent tr:nth-child(6n + 5).data-change, -.light #ov-intent tr:nth-child(6n).data-change { - background-color: #FDFFDC; -} -.dark #ov-intent tr:nth-child(6n + 1).data-change, -.dark #ov-intent tr:nth-child(6n + 2).data-change, -.dark #ov-intent tr:nth-child(6n + 3).data-change, -.dark #ov-intent tr:nth-child(6n + 4).data-change, -.dark #ov-intent tr:nth-child(6n + 5).data-change, -.dark #ov-intent tr:nth-child(6n).data-change { - background-color: #5A5600; -} - -#ov-intent td.resources, -#ov-intent td.details { - padding-left: 36px; - opacity: 0.65; -} diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.html b/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.html deleted file mode 100644 index 98aa5659..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.html +++ /dev/null @@ -1,67 +0,0 @@ -<!-- Intent partial HTML --> -<div id="ov-intent"> - <div class="tabular-header"> - <h2>Intents ({{tableData.length}} total)</h2> - <div class="ctrl-btns"> - <div ng-class="{active: !!selId}" - icon icon-id="topo" icon-size="36" - tooltip tt-msg="topoTip" - ng-click="showIntent()"></div> - <div class="separator"></div> - <div class="refresh" ng-class="{active: autoRefresh}" - icon icon-size="36" icon-id="refresh" - tooltip tt-msg="autoRefreshTip" - ng-click="toggleRefresh()"></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="appId" sortable>Application ID </td> - <td colId="key" sortable>Key </td> - <td colId="type" sortable>Type </td> - <td colId="priority" sortable>Priority </td> - <td colId="state" sortable>State </td> - </tr> - </table> - </div> - - <div class="table-body"> - <table onos-flash-changes id-prop="key"> - <tr ng-if="!tableData.length" class="no-data"> - <td colspan="5"> - No Intents found - </td> - </tr> - - <tr ng-repeat-start="intent in tableData track by $index" - ng-click="selectCallback($event, intent)" - ng-class="{selected: intent.key === selId}" - ng-repeat-complete row-id="{{intent.key}}"> - <td>{{intent.appId}}</td> - <td>{{intent.key}}</td> - <td>{{intent.type}}</td> - <td>{{intent.priority}}</td> - <td>{{intent.state}}</td> - </tr> - <tr ng-click="selectCallback($event, intent)" - ng-class="{selected: intent.key === selId}" - row-id="{{intent.key}}"> - <td class="resources" colspan="5">{{intent.resources}}</td> - </tr> - <tr ng-click="selectCallback($event, intent)" - ng-class="{selected: intent.key === selId}" - row-id="{{intent.key}}" ng-repeat-end> - <td class="details" colspan="5">{{intent.details}}</td> - </tr> - </table> - </div> - - </div> - -</div> diff --git a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.js b/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.js deleted file mode 100644 index 19f2c076..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/view/intent/intent.js +++ /dev/null @@ -1,59 +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 -- Intent View Module - */ - -(function () { - 'use strict'; - - angular.module('ovIntent', []) - .controller('OvIntentCtrl', - ['$log', '$scope', 'TableBuilderService', 'NavService', - - function ($log, $scope, tbs, ns) { - - function selCb($event, row) { - $log.debug('Got a click on:', row); - var m = /(\d+)\s:\s(.*)/.exec(row.appId), - id = m ? m[1] : null, - name = m ? m[2] : null; - - $scope.intentData = ($scope.selId && m) ? { - intentAppId: id, - intentAppName: name, - intentKey: row.key - } : null; - } - - tbs.buildTable({ - scope: $scope, - tag: 'intent', - selCb: selCb, - idKey: 'key' - }); - - $scope.topoTip = 'Show selected intent on topology view'; - - $scope.showIntent = function () { - var d = $scope.intentData; - d && ns.navTo('topo', d); - }; - - $log.log('OvIntentCtrl has been created'); - }]); -}()); |