You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/02/13 16:46:59 UTC
[7/7] incubator-trafficcontrol git commit: adds static dns entries
for cachegroups and deliveryservices
adds static dns entries for cachegroups and deliveryservices
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3003b936
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3003b936
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3003b936
Branch: refs/heads/master
Commit: 3003b936e4ccb66df13d6cfe6a0bd8920b6f85b2
Parents: 17a6348
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Tue Jan 31 21:47:22 2017 -0700
Committer: Dewayne Richardson <de...@apache.org>
Committed: Mon Feb 13 09:46:58 2017 -0700
----------------------------------------------------------------------
traffic_ops/experimental/ui/app/src/app.js | 4 ++
.../form/cacheGroup/FormCacheGroupController.js | 8 +--
.../form/cacheGroup/form.cacheGroup.tpl.html | 1 +
.../FormDeliveryServiceController.js | 4 ++
.../form.deliveryService.tpl.html | 1 +
...TableCacheGroupStaticDnsEntriesController.js | 38 ++++++++++++++
.../table/cacheGroupStaticDnsEntries/index.js | 21 ++++++++
.../table.cacheGroupStaticDnsEntries.tpl.html | 55 ++++++++++++++++++++
...DeliveryServiceStaticDnsEntriesController.js | 38 ++++++++++++++
.../deliveryServiceStaticDnsEntries/index.js | 21 ++++++++
...ble.deliveryServiceStaticDnsEntries.tpl.html | 55 ++++++++++++++++++++
.../cacheGroups/staticDnsEntries/index.js | 42 +++++++++++++++
.../deliveryServices/staticDnsEntries/index.js | 42 +++++++++++++++
13 files changed, 324 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/app.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/app.js b/traffic_ops/experimental/ui/app/src/app.js
index d73faac..0c2e50f 100644
--- a/traffic_ops/experimental/ui/app/src/app.js
+++ b/traffic_ops/experimental/ui/app/src/app.js
@@ -121,6 +121,7 @@ var trafficOps = angular.module('trafficOps', [
require('./modules/private/configure/cacheGroups/asns').name,
require('./modules/private/configure/cacheGroups/parameters').name,
require('./modules/private/configure/cacheGroups/servers').name,
+ require('./modules/private/configure/cacheGroups/staticDnsEntries').name,
require('./modules/private/configure/deliveryServices').name,
require('./modules/private/configure/deliveryServices/edit').name,
require('./modules/private/configure/deliveryServices/list').name,
@@ -130,6 +131,7 @@ var trafficOps = angular.module('trafficOps', [
require('./modules/private/configure/deliveryServices/regexes/list').name,
require('./modules/private/configure/deliveryServices/regexes/new').name,
require('./modules/private/configure/deliveryServices/servers').name,
+ require('./modules/private/configure/deliveryServices/staticDnsEntries').name,
require('./modules/private/configure/deliveryServices/users').name,
require('./modules/private/configure/servers').name,
require('./modules/private/configure/servers/deliveryServices').name,
@@ -207,6 +209,7 @@ var trafficOps = angular.module('trafficOps', [
require('./common/modules/table/cacheGroupAsns').name,
require('./common/modules/table/cacheGroupParameters').name,
require('./common/modules/table/cacheGroupServers').name,
+ require('./common/modules/table/cacheGroupStaticDnsEntries').name,
require('./common/modules/table/asns').name,
require('./common/modules/table/cdns').name,
require('./common/modules/table/cdnDeliveryServices').name,
@@ -214,6 +217,7 @@ var trafficOps = angular.module('trafficOps', [
require('./common/modules/table/deliveryServices').name,
require('./common/modules/table/deliveryServiceRegexes').name,
require('./common/modules/table/deliveryServiceServers').name,
+ require('./common/modules/table/deliveryServiceStaticDnsEntries').name,
require('./common/modules/table/deliveryServiceUsers').name,
require('./common/modules/table/divisions').name,
require('./common/modules/table/divisionRegions').name,
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
index da8c881..ff377eb 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
+++ b/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/FormCacheGroupController.js
@@ -55,12 +55,8 @@ var FormCacheGroupController = function(cacheGroup, $scope, $location, formUtils
$location.path($location.path() + '/servers');
};
- $scope.viewParams = function() {
- $location.path($location.path() + '/parameters');
- };
-
- $scope.viewServers = function() {
- $location.path($location.path() + '/servers');
+ $scope.viewStaticDnsEntries = function() {
+ $location.path($location.path() + '/static-dns-entries');
};
$scope.navigateToPath = locationUtils.navigateToPath;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
index 023238a..dadadcb 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/form/cacheGroup/form.cacheGroup.tpl.html
@@ -36,6 +36,7 @@ under the License.
<li class="divider"></li>
<li role="menuitem"><a ng-click="viewAsns()">View ASNs</a></li>
<li role="menuitem"><a ng-click="viewParams()">View Parameters</a></li>
+ <li role="menuitem"><a ng-click="viewStaticDnsEntries()">View Static DNS Entries</a></li>
</ul>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js b/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
index 507d51a..d3eaec7 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
+++ b/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
@@ -146,6 +146,10 @@ var FormDeliveryServiceController = function(deliveryService, $scope, $location,
alert('not hooked up yet: manageUrlSigKeys for DS');
};
+ $scope.viewStaticDnsEntries = function() {
+ $location.path($location.path() + '/static-dns-entries');
+ };
+
$scope.navigateToPath = locationUtils.navigateToPath;
$scope.hasError = formUtils.hasError;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/form.deliveryService.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/form.deliveryService.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/form.deliveryService.tpl.html
index bbaf158..6062f63 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/form.deliveryService.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/form/deliveryService/form.deliveryService.tpl.html
@@ -38,6 +38,7 @@ under the License.
<li role="menuitem"><a ng-click="invalidateContent()">Invalidate Content</a></li>
<li class="divider"></li>
<li role="menuitem"><a ng-click="cachegroupHealth()">View Cachegroup Health</a></li>
+ <li role="menuitem"><a ng-click="viewStaticDnsEntries()">View Static DNS Entries</a></li>
</ul>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js
new file mode 100644
index 0000000..0581b79
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/TableCacheGroupStaticDnsEntriesController.js
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+var TableCacheGroupsStaticDnsEntriesController = function(cacheGroup, staticDnsEntries, $scope, locationUtils) {
+
+ $scope.cacheGroup = cacheGroup;
+
+ $scope.staticDnsEntries = staticDnsEntries;
+
+ $scope.navigateToPath = locationUtils.navigateToPath;
+
+ angular.element(document).ready(function () {
+ $('#staticDnsEntriesTable').dataTable({
+ "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
+ "iDisplayLength": 100
+ });
+ });
+
+};
+
+TableCacheGroupsStaticDnsEntriesController.$inject = ['cacheGroup', 'staticDnsEntries', '$scope', 'locationUtils'];
+module.exports = TableCacheGroupsStaticDnsEntriesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js
new file mode 100644
index 0000000..ac26068
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/index.js
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+module.exports = angular.module('trafficOps.table.cacheGroupStaticDnsEntries', [])
+ .controller('TableCacheGroupStaticDnsEntriesController', require('./TableCacheGroupStaticDnsEntriesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html
new file mode 100644
index 0000000..dcab39a
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html
@@ -0,0 +1,55 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+
+<div class="x_panel">
+ <div class="x_title">
+ <ol class="breadcrumb pull-left">
+ <li><a ng-click="navigateToPath('/configure/cache-groups')">Cache Groups</a></li>
+ <li><a ng-click="navigateToPath('/configure/cache-groups/' + cacheGroup.id)">{{cacheGroup.name}}</a></li>
+ <li class="active">Static DNS Entries</li>
+ </ol>
+ <div class="clearfix"></div>
+ </div>
+ <div class="x_content">
+ <br>
+ <table id="staticDnsEntriesTable" class="table responsive-utilities jambo_table">
+ <thead>
+ <tr class="headings">
+ <th>host</th>
+ <th>address</th>
+ <th>type</th>
+ <th>ttl</th>
+ <th>deliveryservice</th>
+ <th>cachegroup</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr ng-repeat="staticDnsEntry in staticDnsEntries">
+ <td>{{staticDnsEntry.host}}</td>
+ <td>{{staticDnsEntry.address}}</td>
+ <td>{{staticDnsEntry.type}}</td>
+ <td>{{staticDnsEntry.ttl}}</td>
+ <td>{{staticDnsEntry.deliveryservice}}</td>
+ <td>{{staticDnsEntry.cachegroup}}</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</div>
+
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
new file mode 100644
index 0000000..ad6b9ce
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+var TableDeliveryServiceStaticDnsEntriesController = function(deliveryService, staticDnsEntries, $scope, locationUtils) {
+
+ $scope.deliveryService = deliveryService;
+
+ $scope.staticDnsEntries = staticDnsEntries;
+
+ $scope.navigateToPath = locationUtils.navigateToPath;
+
+ angular.element(document).ready(function () {
+ $('#staticDnsEntriesTable').dataTable({
+ "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
+ "iDisplayLength": 100
+ });
+ });
+
+};
+
+TableDeliveryServiceStaticDnsEntriesController.$inject = ['deliveryService', 'staticDnsEntries', '$scope', 'locationUtils'];
+module.exports = TableDeliveryServiceStaticDnsEntriesController;
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/index.js b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/index.js
new file mode 100644
index 0000000..b84e5eb
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/index.js
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+module.exports = angular.module('trafficOps.table.deliveryServiceStaticDnsEntries', [])
+ .controller('TableDeliveryServiceStaticDnsEntriesController', require('./TableDeliveryServiceStaticDnsEntriesController'));
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
new file mode 100644
index 0000000..38b772b
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
@@ -0,0 +1,55 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
+-->
+
+<div class="x_panel">
+ <div class="x_title">
+ <ol class="breadcrumb pull-left">
+ <li><a ng-click="navigateToPath('/configure/delivery-services')">Delivery Services</a></li>
+ <li><a ng-click="navigateToPath('/configure/delivery-services/' + deliveryService.id)">{{deliveryService.displayName}}</a></li>
+ <li class="active">Static DNS Entries</li>
+ </ol>
+ <div class="clearfix"></div>
+ </div>
+ <div class="x_content">
+ <br>
+ <table id="staticDnsEntriesTable" class="table responsive-utilities jambo_table">
+ <thead>
+ <tr class="headings">
+ <th>host</th>
+ <th>address</th>
+ <th>type</th>
+ <th>ttl</th>
+ <th>deliveryservice</th>
+ <th>cachegroup</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr ng-repeat="staticDnsEntry in staticDnsEntries">
+ <td>{{staticDnsEntry.host}}</td>
+ <td>{{staticDnsEntry.address}}</td>
+ <td>{{staticDnsEntry.type}}</td>
+ <td>{{staticDnsEntry.ttl}}</td>
+ <td>{{staticDnsEntry.deliveryservice}}</td>
+ <td>{{staticDnsEntry.cachegroup}}</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</div>
+
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/modules/private/configure/cacheGroups/staticDnsEntries/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/modules/private/configure/cacheGroups/staticDnsEntries/index.js b/traffic_ops/experimental/ui/app/src/modules/private/configure/cacheGroups/staticDnsEntries/index.js
new file mode 100644
index 0000000..85307a9
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/modules/private/configure/cacheGroups/staticDnsEntries/index.js
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+module.exports = angular.module('trafficOps.private.configure.cacheGroups.staticDnsEntries', [])
+ .config(function($stateProvider, $urlRouterProvider) {
+ $stateProvider
+ .state('trafficOps.private.configure.cacheGroups.staticDnsEntries', {
+ url: '/{cacheGroupId}/static-dns-entries',
+ views: {
+ cacheGroupsContent: {
+ templateUrl: 'common/modules/table/cacheGroupStaticDnsEntries/table.cacheGroupStaticDnsEntries.tpl.html',
+ controller: 'TableCacheGroupStaticDnsEntriesController',
+ resolve: {
+ cacheGroup: function($stateParams, cacheGroupService) {
+ return cacheGroupService.getCacheGroup($stateParams.cacheGroupId);
+ },
+ staticDnsEntries: function($stateParams, staticDnsEntryService) {
+ return staticDnsEntryService.getStaticDnsEntries({ cachegroup: $stateParams.cacheGroupId });
+ }
+ }
+ }
+ }
+ })
+ ;
+ $urlRouterProvider.otherwise('/');
+ });
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3003b936/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/staticDnsEntries/index.js
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/staticDnsEntries/index.js b/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/staticDnsEntries/index.js
new file mode 100644
index 0000000..7bbb071
--- /dev/null
+++ b/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/staticDnsEntries/index.js
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+module.exports = angular.module('trafficOps.private.configure.deliveryServices.staticDnsEntries', [])
+ .config(function($stateProvider, $urlRouterProvider) {
+ $stateProvider
+ .state('trafficOps.private.configure.deliveryServices.staticDnsEntries', {
+ url: '/{deliveryServiceId}/static-dns-entries',
+ views: {
+ deliveryServicesContent: {
+ templateUrl: 'common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html',
+ controller: 'TableDeliveryServiceStaticDnsEntriesController',
+ resolve: {
+ deliveryService: function($stateParams, deliveryServiceService) {
+ return deliveryServiceService.getDeliveryService($stateParams.deliveryServiceId);
+ },
+ staticDnsEntries: function($stateParams, staticDnsEntryService) {
+ return staticDnsEntryService.getStaticDnsEntries($stateParams.deliveryServiceId);
+ }
+ }
+ }
+ }
+ })
+ ;
+ $urlRouterProvider.otherwise('/');
+ });