blob: 9150bfd6fd43544905009f841d480203d7643ba2 [file] [log] [blame]
chengfanb466a7e2015-08-21 09:59:29 -05001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
chengfanb466a7e2015-08-21 09:59:29 -05003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 ONOS GUI -- Host View Module
19 */
20
21(function () {
22 'use strict';
23
24 angular.module('ovTunnel', [])
25 .controller('OvTunnelCtrl',
26 ['$log', '$scope', '$sce', 'FnService', 'TableBuilderService',
27
28 function ($log, $scope, $sce, fs, tbs) {
29 tbs.buildTable({
30 scope: $scope,
Simon Hunt5c3ed732017-07-20 19:03:28 +000031 tag: 'tunnel'
chengfanb466a7e2015-08-21 09:59:29 -050032 });
33
34 $scope.$watch('tableData', function () {
35 if (!fs.isEmptyObject($scope.tableData)) {
36 $scope.tableData.forEach(function (tunnel) {
Simon Hunt5c3ed732017-07-20 19:03:28 +000037 //tunnel.direction = $sce.trustAsHtml(tunnel.direction);
chengfanb466a7e2015-08-21 09:59:29 -050038 });
39 }
40 });
41
42 $log.log('OvTunnelCtrl has been created');
43 }]);
44}());