You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/08/13 17:11:18 UTC

[GitHub] mitchell852 closed pull request #2609: Manage Static DNS Entries - front end CRUD implementation

mitchell852 closed pull request #2609: Manage Static DNS Entries - front end CRUD implementation
URL: https://github.com/apache/trafficcontrol/pull/2609
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/app/templates/static_dns_entry/edit.html.ep b/traffic_ops/app/templates/static_dns_entry/edit.html.ep
index ded8155ab..2702c092a 100644
--- a/traffic_ops/app/templates/static_dns_entry/edit.html.ep
+++ b/traffic_ops/app/templates/static_dns_entry/edit.html.ep
@@ -139,7 +139,7 @@ function deleteStaticDnsEntry(staticDnsId, staticDnsName) {
                 <tr id="row_<%= $dns->id %>">
                     <td inputsize=24 class="editable"   name="host_<%= $dns->id %>"    id="host_<%= $dns->id %>"><%= $dns->host %></td>
                     <td inputsize=10 class="type"       name="type_<%= $dns->id %>"    id="type_<%= $dns->id %>"><%= $dns->type->name %></td>
-                    <td inputsize=10 class="cachegroup" name="cg_<%= $dns->id %>"      id="cg_<%= $dns->id %>"><%= $dns->cachegroup->name %></td>
+                    <td inputsize=10 class="cachegroup" name="cg_<%= $dns->id %>"      id="cg_<%= $dns->id %>"><%= defined $dns->cachegroup && $dns->cachegroup->name %></td>
                     <td inputsize=4  class="editable"   name="ttl_<%= $dns->id %>"     id="ttl_<%= $dns->id %>"><%= $dns->ttl %></td>
                     <td inputsize=20 class="editable"   name="address_<%= $dns->id %>" id="address_<%= $dns->id %>"><%= $dns->address %></td>
                     <td id="rm_id_<%= $dns->id %>"><a href="#" onclick="deleteStaticDnsEntry(<%= $dns->id %>, '<%= $dns->host %>')">remove</a></td>
diff --git a/traffic_ops/client/v13/staticdnsentry.go b/traffic_ops/client/v13/staticdnsentry.go
index 15e1a42c7..94e927c3b 100644
--- a/traffic_ops/client/v13/staticdnsentry.go
+++ b/traffic_ops/client/v13/staticdnsentry.go
@@ -49,23 +49,25 @@ func (to *Session) CreateStaticDNSEntry(cdn v13.StaticDNSEntry) (tc.Alerts, ReqI
 }
 
 // Update a StaticDNSEntry by ID
-func (to *Session) UpdateStaticDNSEntryByID(id int, cdn v13.StaticDNSEntry) (tc.Alerts, ReqInf, error) {
+func (to *Session) UpdateStaticDNSEntryByID(id int, cdn v13.StaticDNSEntry) (tc.Alerts, ReqInf, int, error) {
 
 	var remoteAddr net.Addr
 	reqBody, err := json.Marshal(cdn)
 	reqInf := ReqInf{CacheHitStatus: CacheHitStatusMiss, RemoteAddr: remoteAddr}
 	if err != nil {
-		return tc.Alerts{}, reqInf, err
+		return tc.Alerts{}, reqInf, 0, err
 	}
 	route := fmt.Sprintf("%s?id=%d", API_v13_StaticDNSEntries, id)
-	resp, remoteAddr, err := to.request(http.MethodPut, route, reqBody)
-	if err != nil {
-		return tc.Alerts{}, reqInf, err
+	resp, remoteAddr, errClient := to.rawRequest(http.MethodPut, route, reqBody)
+	if resp != nil {
+		defer resp.Body.Close()
+		var alerts tc.Alerts
+		if err = json.NewDecoder(resp.Body).Decode(&alerts); err != nil {
+			return alerts, reqInf, resp.StatusCode, err
+		}
+		return alerts, reqInf, resp.StatusCode, errClient
 	}
-	defer resp.Body.Close()
-	var alerts tc.Alerts
-	err = json.NewDecoder(resp.Body).Decode(&alerts)
-	return alerts, reqInf, nil
+	return tc.Alerts{}, reqInf, 0, errClient
 }
 
 // Returns a list of StaticDNSEntrys
diff --git a/traffic_ops/testing/api/v13/staticdnsentries_test.go b/traffic_ops/testing/api/v13/staticdnsentries_test.go
index 3ca74cbfd..db8948c3d 100644
--- a/traffic_ops/testing/api/v13/staticdnsentries_test.go
+++ b/traffic_ops/testing/api/v13/staticdnsentries_test.go
@@ -20,6 +20,7 @@ import (
 
 	"github.com/apache/trafficcontrol/lib/go-log"
 	tc "github.com/apache/trafficcontrol/lib/go-tc"
+	"reflect"
 )
 
 func TestStaticDNSEntries(t *testing.T) {
@@ -37,6 +38,7 @@ func TestStaticDNSEntries(t *testing.T) {
 	CreateTestStaticDNSEntries(t)
 	GetTestStaticDNSEntries(t)
 	UpdateTestStaticDNSEntries(t)
+	UpdateTestStaticDNSEntriesInvalidAddress(t)
 	DeleteTestStaticDNSEntries(t)
 	DeleteTestDeliveryServices(t)
 	DeleteTestServers(t)
@@ -97,10 +99,12 @@ func UpdateTestStaticDNSEntries(t *testing.T) {
 		t.Errorf("cannot GET StaticDNSEntries by name: '%s', %v\n", firstStaticDNSEntry.Host, err)
 	}
 	remoteStaticDNSEntry := resp[0]
-	expectedAddress := "192.168.0.1"
+	expectedAddress := "192.168.0.2"
 	remoteStaticDNSEntry.Address = expectedAddress
 	var alert tc.Alerts
-	alert, _, err = TOSession.UpdateStaticDNSEntryByID(remoteStaticDNSEntry.ID, remoteStaticDNSEntry)
+	var status int
+	alert, _, status, err = TOSession.UpdateStaticDNSEntryByID(remoteStaticDNSEntry.ID, remoteStaticDNSEntry)
+	log.Debugln("Status Code: ", status)
 	if err != nil {
 		t.Errorf("cannot UPDATE StaticDNSEntries using url: %v - %v\n", err, alert)
 	}
@@ -117,6 +121,70 @@ func UpdateTestStaticDNSEntries(t *testing.T) {
 
 }
 
+func UpdateTestStaticDNSEntriesInvalidAddress(t *testing.T) {
+
+	expectedAlerts := []tc.Alerts{tc.Alerts{[]tc.Alert{tc.Alert{"'address' must be a valid IPv4 address","error"}}}, tc.Alerts{[]tc.Alert{tc.Alert{"'address' must be a valid DNS name","error"}}}, tc.Alerts{[]tc.Alert{tc.Alert{"'address' must be a valid IPv6 address","error"}}}}
+
+	// A_RECORD
+	firstStaticDNSEntry := testData.StaticDNSEntries[0]
+	// Retrieve the StaticDNSEntries by name so we can get the id for the Update
+	resp, _, err := TOSession.GetStaticDNSEntriesByHost(firstStaticDNSEntry.Host)
+	if err != nil {
+		t.Errorf("cannot GET StaticDNSEntries by name: '%s', %v\n", firstStaticDNSEntry.Host, err)
+	}
+	remoteStaticDNSEntry := resp[0]
+	expectedAddress := "test.testdomain.net."
+	remoteStaticDNSEntry.Address = expectedAddress
+	var alert tc.Alerts
+	var status int
+	alert, _, status, err = TOSession.UpdateStaticDNSEntryByID(remoteStaticDNSEntry.ID, remoteStaticDNSEntry)
+	log.Debugln("Status Code [expect 400]: ", status)
+	if err != nil {
+		log.Debugf("cannot UPDATE StaticDNSEntries using url: %v - %v\n", err, alert)
+	}
+	if !reflect.DeepEqual(alert, expectedAlerts[0]) {
+		t.Errorf("got alerts: %v but expected alerts: %v", alert, expectedAlerts[0])
+	}
+
+	// CNAME_RECORD
+	secondStaticDNSEntry := testData.StaticDNSEntries[1]
+	// Retrieve the StaticDNSEntries by name so we can get the id for the Update
+	resp, _, err = TOSession.GetStaticDNSEntriesByHost(secondStaticDNSEntry.Host)
+	if err != nil {
+		t.Errorf("cannot GET StaticDNSEntries by name: '%s', %v\n", secondStaticDNSEntry.Host, err)
+	}
+	remoteStaticDNSEntry = resp[0]
+	expectedAddress = "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+	remoteStaticDNSEntry.Address = expectedAddress
+	alert, _, status, err = TOSession.UpdateStaticDNSEntryByID(remoteStaticDNSEntry.ID, remoteStaticDNSEntry)
+	log.Debugln("Status Code [expect 400]: ", status)
+	if err != nil {
+		log.Debugf("cannot UPDATE StaticDNSEntries using url: %v - %v\n", err, alert)
+	}
+	if !reflect.DeepEqual(alert, expectedAlerts[1]) {
+		t.Errorf("got alerts: %v but expected alerts: %v", alert, expectedAlerts[1])
+	}
+
+	// AAAA_RECORD
+	thirdStaticDNSEntry := testData.StaticDNSEntries[2]
+	// Retrieve the StaticDNSEntries by name so we can get the id for the Update
+	resp, _, err = TOSession.GetStaticDNSEntriesByHost(thirdStaticDNSEntry.Host)
+	if err != nil {
+		t.Errorf("cannot GET StaticDNSEntries by name: '%s', %v\n", thirdStaticDNSEntry.Host, err)
+	}
+	remoteStaticDNSEntry = resp[0]
+	expectedAddress = "192.168.0.1"
+	remoteStaticDNSEntry.Address = expectedAddress
+	alert, _, status, err = TOSession.UpdateStaticDNSEntryByID(remoteStaticDNSEntry.ID, remoteStaticDNSEntry)
+	log.Debugln("Status Code [expect 400]: ", status)
+	if err != nil {
+		log.Debugf("cannot UPDATE StaticDNSEntries using url: %v - %v\n", err, alert)
+	}
+	if !reflect.DeepEqual(alert, expectedAlerts[2]) {
+		t.Errorf("got alerts: %v but expected alerts: %v", alert, expectedAlerts[2])
+	}
+}
+
 func GetTestStaticDNSEntries(t *testing.T) {
 
 	for _, staticDNSEntry := range testData.StaticDNSEntries {
diff --git a/traffic_ops/testing/api/v13/tc-fixtures.json b/traffic_ops/testing/api/v13/tc-fixtures.json
index e9cdfd96e..e502a2f06 100644
--- a/traffic_ops/testing/api/v13/tc-fixtures.json
+++ b/traffic_ops/testing/api/v13/tc-fixtures.json
@@ -1028,14 +1028,6 @@
         }
     ],
     "staticdnsentries": [
-        {
-            "address": "this.is.a.hostname.",
-            "cachegroup": "cachegroup1",
-            "deliveryservice": "ds1",
-            "host": "host1",
-            "type": "AAAA_RECORD",
-            "ttl": 10
-        },
         {
             "address": "192.168.0.1",
             "cachegroup": "cachegroup2",
@@ -1044,13 +1036,21 @@
             "type": "A_RECORD",
             "ttl": 10
         },
+        {
+            "address": "this.is.a.hostname.",
+            "cachegroup": "cachegroup1",
+            "deliveryservice": "ds1",
+            "host": "host1",
+            "type": "CNAME_RECORD",
+            "ttl": 10
+        },
         {
             "address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
             "cachegroup": "cachegroup2",
             "deliveryservice": "ds1",
             "host": "host3",
             "ttl": 10,
-            "type": "CNAME_RECORD"
+            "type": "AAAA_RECORD"
         }
     ],
     "statuses": [
diff --git a/traffic_ops/traffic_ops_golang/staticdnsentry/staticdnsentry.go b/traffic_ops/traffic_ops_golang/staticdnsentry/staticdnsentry.go
index 70b089b54..c39695187 100644
--- a/traffic_ops/traffic_ops_golang/staticdnsentry/staticdnsentry.go
+++ b/traffic_ops/traffic_ops_golang/staticdnsentry/staticdnsentry.go
@@ -81,13 +81,27 @@ func (staticDNSEntry *TOStaticDNSEntry) SetKeys(keys map[string]interface{}) {
 
 // Validate fulfills the api.Validator interface
 func (staticDNSEntry TOStaticDNSEntry) Validate() error {
-	if _, err := tc.ValidateTypeID(staticDNSEntry.ReqInfo.Tx.Tx, &staticDNSEntry.TypeID, "staticdnsentry"); err != nil {
+	typeStr, err := tc.ValidateTypeID(staticDNSEntry.ReqInfo.Tx.Tx, &staticDNSEntry.TypeID, "staticdnsentry");
+	if err != nil {
 		return err
 	}
 
+	var addressErr error
+
+	switch typeStr {
+	case "A_RECORD":
+		addressErr = validation.Validate(staticDNSEntry.Address, validation.Required, is.IPv4)
+	case "AAAA_RECORD":
+		addressErr = validation.Validate(staticDNSEntry.Address, validation.Required, is.IPv6)
+	case "CNAME_RECORD":
+		addressErr = validation.Validate(staticDNSEntry.Address, validation.Required, is.DNSName)
+	default:
+		addressErr = validation.Validate(staticDNSEntry.Address, validation.Required)
+	}
+
 	errs := validation.Errors{
 		"host":              validation.Validate(staticDNSEntry.Host, validation.Required, is.DNSName),
-		"address":           validation.Validate(staticDNSEntry.Address, validation.Required, is.Host),
+		"address":           addressErr,
 		"deliveryserviceId": validation.Validate(staticDNSEntry.DeliveryServiceID, validation.Required),
 		"ttl":               validation.Validate(staticDNSEntry.TTL, validation.Required),
 		"typeId":            validation.Validate(staticDNSEntry.TypeID, validation.Required),
@@ -293,7 +307,7 @@ cg.id as cachegroup_id,
 cg.name as cachegroup
 FROM staticdnsentry as sde
 JOIN type as tp on sde.type = tp.id
-JOIN cachegroup as cg ON sde.cachegroup = cg.id
+LEFT JOIN cachegroup as cg ON sde.cachegroup = cg.id
 JOIN deliveryservice as ds on sde.deliveryservice = ds.id
 `
 }
diff --git a/traffic_portal/app/src/app.js b/traffic_portal/app/src/app.js
index 238b2fa3e..08ba310e8 100644
--- a/traffic_portal/app/src/app.js
+++ b/traffic_portal/app/src/app.js
@@ -111,6 +111,9 @@ var trafficPortal = angular.module('trafficPortal', [
         require('./modules/private/deliveryServices/regexes/new').name,
         require('./modules/private/deliveryServices/servers').name,
         require('./modules/private/deliveryServices/staticDnsEntries').name,
+        require('./modules/private/deliveryServices/staticDnsEntries/edit').name,
+        require('./modules/private/deliveryServices/staticDnsEntries/list').name,
+        require('./modules/private/deliveryServices/staticDnsEntries/new').name,
         require('./modules/private/deliveryServices/targets').name,
         require('./modules/private/deliveryServices/targets/edit').name,
         require('./modules/private/deliveryServices/targets/list').name,
@@ -250,6 +253,9 @@ var trafficPortal = angular.module('trafficPortal', [
         require('./common/modules/form/deliveryServiceRegex/new').name,
         require('./common/modules/form/deliveryServiceSslKeys').name,
         require('./common/modules/form/deliveryServiceSslKeys/generate').name,
+        require('./common/modules/form/deliveryServiceStaticDnsEntry').name,
+        require('./common/modules/form/deliveryServiceStaticDnsEntry/edit').name,
+        require('./common/modules/form/deliveryServiceStaticDnsEntry/new').name,
         require('./common/modules/form/deliveryServiceTarget').name,
         require('./common/modules/form/deliveryServiceTarget/edit').name,
         require('./common/modules/form/deliveryServiceTarget/new').name,
diff --git a/traffic_portal/app/src/common/api/StaticDnsEntryService.js b/traffic_portal/app/src/common/api/StaticDnsEntryService.js
index aa56365a8..afe96f7c5 100644
--- a/traffic_portal/app/src/common/api/StaticDnsEntryService.js
+++ b/traffic_portal/app/src/common/api/StaticDnsEntryService.js
@@ -17,13 +17,69 @@
  * under the License.
  */
 
-var StaticDnsEntryService = function(Restangular) {
+var StaticDnsEntryService = function($http, $q, Restangular, locationUtils, messageModel, ENV) {
 
 	this.getStaticDnsEntries = function(queryParams) {
 		return Restangular.all('staticdnsentries').getList(queryParams);
 	};
 
+	this.getStaticDnsEntry = function(id) {
+        return Restangular.one('staticdnsentries?id=' + id).get();
+    };
+
+    this.createDeliveryServiceStaticDnsEntry = function(staticDnsEntry) {
+        var request = $q.defer();
+
+        $http.post(ENV.api['root'] + "staticdnsentries", staticDnsEntry)
+            .then(
+                function(response) {
+                    messageModel.setMessages(response.data.alerts, true);
+                    locationUtils.navigateToPath('/delivery-services/' + staticDnsEntry.deliveryServiceId + '/static-dns-entries');
+                    request.resolve(response);
+                },
+                function(fault) {
+                    messageModel.setMessages(fault.data.alerts, false)
+                    request.reject(fault);
+                }
+            );
+
+        return request.promise;
+    };
+
+    this.deleteDeliveryServiceStaticDnsEntry = function(id) {
+        var deferred = $q.defer();
+
+        $http.delete(ENV.api['root'] + "staticdnsentries?id=" + id)
+            .then(
+                function(response) {
+                    messageModel.setMessages(response.data.alerts, true);
+                    deferred.resolve(response);
+                },
+                function(fault) {
+                    messageModel.setMessages(fault.data.alerts, false);
+                    deferred.reject(fault);
+                }
+            );
+        return deferred.promise;
+    };
+
+    this.updateDeliveryServiceStaticDnsEntry = function(id, staticDnsEntry) {
+        var request = $q.defer();
+
+        $http.put(ENV.api['root'] + "staticdnsentries?id=" + id, staticDnsEntry)
+            .then(
+                function(response) {
+                    messageModel.setMessages(response.data.alerts, false);
+                    request.resolve();
+                },
+                function(fault) {
+                    messageModel.setMessages(fault.data.alerts, false);
+                    request.reject();
+                }
+            );
+        return request.promise;
+    };
 };
 
-StaticDnsEntryService.$inject = ['Restangular'];
+StaticDnsEntryService.$inject = ['$http', '$q', 'Restangular', 'locationUtils', 'messageModel', 'ENV'];
 module.exports = StaticDnsEntryService;
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/FormDeliveryServiceStaticDnsEntryController.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/FormDeliveryServiceStaticDnsEntryController.js
new file mode 100644
index 000000000..949c61c46
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/FormDeliveryServiceStaticDnsEntryController.js
@@ -0,0 +1,47 @@
+/*
+ * 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 FormDeliveryServiceStaticDnsEntryController = function(deliveryService, staticDnsEntry, $scope, formUtils, locationUtils, typeService, cacheGroupService) {
+
+    var getTypes = function() {
+        typeService.getTypes({ useInTable: 'staticdnsentry' })
+            .then(function(result) {
+                $scope.types = result;
+            });
+    };
+
+    $scope.deliveryService = deliveryService;
+
+    $scope.staticDnsEntry = staticDnsEntry;
+
+    $scope.navigateToPath = locationUtils.navigateToPath;
+
+    $scope.hasError = formUtils.hasError;
+
+    $scope.hasPropertyError = formUtils.hasPropertyError;
+
+    var init = function () {
+        getTypes();
+    };
+    init();
+
+};
+
+FormDeliveryServiceStaticDnsEntryController.$inject = ['deliveryService', 'staticDnsEntry', '$scope', 'formUtils', 'locationUtils', 'typeService', 'cacheGroupService'];
+module.exports = FormDeliveryServiceStaticDnsEntryController;
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/FormEditDeliveryServiceStaticDnsEntryController.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/FormEditDeliveryServiceStaticDnsEntryController.js
new file mode 100644
index 000000000..15aa49afc
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/FormEditDeliveryServiceStaticDnsEntryController.js
@@ -0,0 +1,73 @@
+/*
+ * 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 FormEditDeliveryServiceStaticDnsEntryController = function(deliveryService, staticDnsEntry, $scope, $controller, $uibModal, $anchorScroll, locationUtils, staticDnsEntryService) {
+
+    // extends the FormDeliveryServiceController to inherit common methods
+    angular.extend(this, $controller('FormDeliveryServiceStaticDnsEntryController', { deliveryService: deliveryService, staticDnsEntry: staticDnsEntry, $scope: $scope }));
+
+    var deleteDeliveryServiceStaticDnsEntry = function(dsId, staticDnsEntryId) {
+        staticDnsEntryService.deleteDeliveryServiceStaticDnsEntry(staticDnsEntryId)
+            .then(function() {
+                locationUtils.navigateToPath('/delivery-services/' + dsId + '/static-dns-entries');
+            });
+    };
+
+    $scope.staticDnsEntry = staticDnsEntry;
+    $scope.host = angular.copy($scope.staticDnsEntry.host);
+
+    $scope.settings = {
+        isNew: false,
+        saveLabel: 'Update'
+    };
+
+    $scope.save = function(dsId, staticDnsEntry) {
+        staticDnsEntryService.updateDeliveryServiceStaticDnsEntry(staticDnsEntry.id, staticDnsEntry).
+        then(function() {
+            $scope.host = angular.copy(staticDnsEntry.host);
+            $anchorScroll(); // scrolls window to top
+        });
+    };
+
+    $scope.confirmDelete = function(staticDnsEntry) {
+        var params = {
+            title: 'Delete Delivery Service Static DNS Entry on host: ' + staticDnsEntry.host + ' with address: ' + staticDnsEntry.address,
+            key: staticDnsEntry.host
+        };
+        var modalInstance = $uibModal.open({
+            templateUrl: 'common/modules/dialog/delete/dialog.delete.tpl.html',
+            controller: 'DialogDeleteController',
+            size: 'md',
+            resolve: {
+                params: function () {
+                    return params;
+                }
+            }
+        });
+        modalInstance.result.then(function() {
+            deleteDeliveryServiceStaticDnsEntry(deliveryService.id, staticDnsEntry.id);
+        }, function () {
+            // do nothing
+        });
+    };
+
+};
+
+FormEditDeliveryServiceStaticDnsEntryController.$inject = ['deliveryService', 'staticDnsEntry', '$scope', '$controller', '$uibModal', '$anchorScroll', 'locationUtils', 'staticDnsEntryService'];
+module.exports = FormEditDeliveryServiceStaticDnsEntryController;
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/index.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/index.js
new file mode 100644
index 000000000..4cf633a3a
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/edit/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('trafficPortal.form.deliveryServiceStaticDnsEntry.edit', [])
+	.controller('FormEditDeliveryServiceStaticDnsEntryController', require('./FormEditDeliveryServiceStaticDnsEntryController'));
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/form.deliveryServiceStaticDnsEntry.tpl.html b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/form.deliveryServiceStaticDnsEntry.tpl.html
new file mode 100644
index 000000000..374a7cfac
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/form.deliveryServiceStaticDnsEntry.tpl.html
@@ -0,0 +1,73 @@
+<!--
+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('/delivery-services')">Delivery Services</a></li>
+            <li><a ng-click="navigateToPath('/delivery-services/' + deliveryService.id + '?type=' + deliveryService.type)">{{deliveryService.xmlId}}</a></li>
+            <li><a ng-click="navigateToPath('/delivery-services/' + deliveryService.id + '/static-dns-entries')">Static DNS Entries</a></li>
+            <li class="active">{{host}}</li>
+        </ol>
+        <div class="clearfix"></div>
+    </div>
+    <div class="x_content">
+        <br>
+        <form name="dsStaticDnsEntryForm" class="form-horizontal form-label-left" novalidate>
+            <div class="form-group" ng-class="{'has-error': hasError(dsStaticDnsEntryForm.host), 'has-feedback': hasError(dsStaticDnsEntryForm.host)}">
+                <label class="control-label col-md-2 col-sm-2 col-xs-12">Host *</label>
+                <div class="col-md-10 col-sm-10 col-xs-12">
+                    <input name="host" type="text" class="form-control" ng-model="staticDnsEntry.host" required autofocus>
+                    <small class="input-error" ng-show="hasPropertyError(dsStaticDnsEntryForm.host, 'required')">Required</small>
+                    <span ng-show="hasError(dsStaticDnsEntryForm.host)" class="form-control-feedback"><i class="fa fa-times"></i></span>
+                </div>
+            </div>
+            <div class="form-group" ng-class="{'has-error': hasError(dsStaticDnsEntryForm.typeId), 'has-feedback': hasError(dsStaticDnsEntryForm.typeId)}">
+                <label class="control-label col-md-2 col-sm-2 col-xs-12">Type *</label>
+                <div class="col-md-10 col-sm-10 col-xs-12">
+                    <select name="typeId" class="form-control" ng-model="staticDnsEntry.typeId" ng-options="type.id as type.name for type in types" required>
+                        <option value="">Select...</option>
+                    </select>
+                    <small class="input-error" ng-show="hasPropertyError(dsStaticDnsEntryForm.typeId, 'required')">Required</small>
+                </div>
+            </div>
+            <div class="form-group" ng-class="{'has-error': hasError(dsStaticDnsEntryForm.ttl), 'has-feedback': hasError(dsStaticDnsEntryForm.ttl)}">
+                <label class="control-label col-md-2 col-sm-2 col-xs-12">TTL *</label>
+                <div class="col-md-10 col-sm-10 col-xs-12">
+                    <input name="ttl" type="number" class="form-control" ng-model="staticDnsEntry.ttl" ng-pattern="/^\d+$/" required autofocus>
+                    <small class="input-error" ng-show="hasPropertyError(dsStaticDnsEntryForm.ttl, 'required')">Required Whole Number</small>
+                    <small class="input-error" ng-show="hasPropertyError(dsStaticDnsEntryForm.ttl, 'pattern')">Whole Number</small>
+                    <span ng-show="hasError(dsStaticDnsEntryForm.ttl)" class="form-control-feedback"><i class="fa fa-times"></i></span>
+                </div>
+            </div>
+            <div class="form-group" ng-class="{'has-error': hasError(dsStaticDnsEntryForm.address), 'has-feedback': hasError(dsStaticDnsEntryForm.address)}">
+                <label class="control-label col-md-2 col-sm-2 col-xs-12">Address *</label>
+                <div class="col-md-10 col-sm-10 col-xs-12">
+                    <input name="address" type="text" class="form-control" ng-model="staticDnsEntry.address" required autofocus>
+                    <small class="input-error" ng-show="hasPropertyError(dsStaticDnsEntryForm.address, 'required')">Required</small>
+                    <span ng-show="hasError(dsStaticDnsEntryForm.address)" class="form-control-feedback"><i class="fa fa-times"></i></span>
+                </div>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-danger" ng-show="!settings.isNew" ng-click="confirmDelete(staticDnsEntry)">Delete</button>
+                <button type="button" class="btn btn-success" ng-disabled="dsStaticDnsEntryForm.$pristine || dsStaticDnsEntryForm.$invalid" ng-click="save(deliveryService.id, staticDnsEntry)">{{settings.saveLabel}}</button>
+            </div>
+        </form>
+    </div>
+</div>
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/index.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/index.js
new file mode 100644
index 000000000..a4f7ac7f5
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/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('trafficPortal.form.deliveryServiceStaticDnsEntry', [])
+	.controller('FormDeliveryServiceStaticDnsEntryController', require('./FormDeliveryServiceStaticDnsEntryController'));
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/FormNewDeliveryServiceStaticDnsEntryController.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/FormNewDeliveryServiceStaticDnsEntryController.js
new file mode 100644
index 000000000..7e77c10cd
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/FormNewDeliveryServiceStaticDnsEntryController.js
@@ -0,0 +1,40 @@
+/*
+ * 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 FormNewDeliveryServiceStaticDnsEntryController = function(deliveryService, staticDnsEntry, $scope, $controller, staticDnsEntryService) {
+
+    // extends the FormDeliveryServiceStaticDnsEntryController to inherit common methods
+    angular.extend(this, $controller('FormDeliveryServiceStaticDnsEntryController', { deliveryService: deliveryService, staticDnsEntry: staticDnsEntry, $scope: $scope }));
+
+    $scope.host = 'New';
+
+    $scope.settings = {
+        isNew: true,
+        saveLabel: 'Create'
+    };
+
+    $scope.save = function(dsId, staticDnsEntry) {
+        staticDnsEntry.deliveryServiceId = dsId;
+        staticDnsEntryService.createDeliveryServiceStaticDnsEntry(staticDnsEntry);
+    };
+
+};
+
+FormNewDeliveryServiceStaticDnsEntryController.$inject = ['deliveryService', 'staticDnsEntry', '$scope', '$controller', 'staticDnsEntryService'];
+module.exports = FormNewDeliveryServiceStaticDnsEntryController;
diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/index.js b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/index.js
new file mode 100644
index 000000000..4c7d26b7c
--- /dev/null
+++ b/traffic_portal/app/src/common/modules/form/deliveryServiceStaticDnsEntry/new/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('trafficPortal.form.deliveryServiceStaticDnsEntry.new', [])
+	.controller('FormNewDeliveryServiceStaticDnsEntryController', require('./FormNewDeliveryServiceStaticDnsEntryController'));
diff --git a/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js b/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
index 99f191d9e..bdf1e4f02 100644
--- a/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
+++ b/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/TableDeliveryServiceStaticDnsEntriesController.js
@@ -27,6 +27,14 @@ var TableDeliveryServiceStaticDnsEntriesController = function(deliveryService, s
 		$state.reload(); // reloads all the resolves for the view
 	};
 
+	$scope.editDeliveryServiceStaticDnsEntry = function(dsId, sdeId) {
+		locationUtils.navigateToPath('/delivery-services/' + dsId + '/static-dns-entries/' + sdeId);
+	};
+
+	$scope.createStaticDnsEntry = function(dsId) {
+		locationUtils.navigateToPath('/delivery-services/' + dsId + '/static-dns-entries/new');
+	};
+
 	$scope.navigateToPath = locationUtils.navigateToPath;
 
 	angular.element(document).ready(function () {
diff --git a/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html b/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
index bace69b34..1d7b6b736 100644
--- a/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
+++ b/traffic_portal/app/src/common/modules/table/deliveryServiceStaticDnsEntries/table.deliveryServiceStaticDnsEntries.tpl.html
@@ -25,6 +25,7 @@
             <li class="active">Static DNS Entries</li>
         </ol>
         <div class="pull-right">
+            <button class="btn btn-primary" title="Create Delivery Service Static Dns Entry" ng-click="createStaticDnsEntry(deliveryService.id)"><i class="fa fa-plus"></i></button>
             <button class="btn btn-default" title="Refresh" ng-click="refresh()"><i class="fa fa-refresh"></i></button>
         </div>
         <div class="clearfix"></div>
@@ -42,7 +43,7 @@
             </tr>
             </thead>
             <tbody>
-            <tr ng-repeat="s in ::staticDnsEntries">
+            <tr ng-click="editDeliveryServiceStaticDnsEntry(deliveryService.id, s.id)" ng-repeat="s in ::staticDnsEntries">
                 <td data-search="^{{::s.host}}$">{{::s.host}}</td>
                 <td data-search="^{{::s.address}}$">{{::s.address}}</td>
                 <td data-search="^{{::s.type}}$">{{::s.type}}</td>
diff --git a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/deliveryServiceStaticDnsEntries.tpl.html b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/deliveryServiceStaticDnsEntries.tpl.html
new file mode 100644
index 000000000..36b9aadce
--- /dev/null
+++ b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/deliveryServiceStaticDnsEntries.tpl.html
@@ -0,0 +1,22 @@
+<!--
+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 id="deliveryServiceStaticDnsEntriesContainer">
+    <div ui-view="deliveryServiceStaticDnsEntriesContent"></div>
+</div>
diff --git a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/edit/index.js b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/edit/index.js
new file mode 100644
index 000000000..906342b19
--- /dev/null
+++ b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/edit/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('trafficPortal.private.deliveryServices.staticDnsEntries.edit', [])
+	.config(function($stateProvider, $urlRouterProvider) {
+		$stateProvider
+			.state('trafficPortal.private.deliveryServices.staticDnsEntries.edit', {
+				url: '/{staticDnsEntryId:[0-9]{1,8}}',
+				views: {
+					deliveryServiceStaticDnsEntriesContent: {
+						templateUrl: 'common/modules/form/deliveryServiceStaticDnsEntry/form.deliveryServiceStaticDnsEntry.tpl.html',
+						controller: 'FormEditDeliveryServiceStaticDnsEntryController',
+						resolve: {
+							deliveryService: function($stateParams, deliveryServiceService) {
+								return deliveryServiceService.getDeliveryService($stateParams.deliveryServiceId);
+							},
+							staticDnsEntry: function($stateParams, staticDnsEntryService) {
+								return staticDnsEntryService.getStaticDnsEntry($stateParams.staticDnsEntryId);
+							}
+						}
+					}
+				}
+			})
+		;
+		$urlRouterProvider.otherwise('/');
+	});
diff --git a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/index.js b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/index.js
index a43a684cc..cb554c5b1 100644
--- a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/index.js
+++ b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/index.js
@@ -22,18 +22,10 @@ module.exports = angular.module('trafficPortal.private.deliveryServices.staticDn
 		$stateProvider
 			.state('trafficPortal.private.deliveryServices.staticDnsEntries', {
 				url: '/{deliveryServiceId}/static-dns-entries',
+				abstract: true,
 				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);
-							}
-						}
+						templateUrl: 'modules/private/deliveryServices/staticDnsEntries/deliveryServiceStaticDnsEntries.tpl.html'
 					}
 				}
 			})
diff --git a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/list/index.js b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/list/index.js
new file mode 100644
index 000000000..f346bb9aa
--- /dev/null
+++ b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/list/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('trafficPortal.private.deliveryServices.staticDnsEntries.list', [])
+	.config(function($stateProvider, $urlRouterProvider) {
+		$stateProvider
+			.state('trafficPortal.private.deliveryServices.staticDnsEntries.list', {
+				url: '',
+				views: {
+					deliveryServiceStaticDnsEntriesContent: {
+						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({ deliveryserviceId: $stateParams.deliveryServiceId });
+							}
+						}
+					}
+				}
+			})
+		;
+		$urlRouterProvider.otherwise('/');
+	});
diff --git a/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/new/index.js b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/new/index.js
new file mode 100644
index 000000000..7c8f649ee
--- /dev/null
+++ b/traffic_portal/app/src/modules/private/deliveryServices/staticDnsEntries/new/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('trafficPortal.private.deliveryServices.staticDnsEntries.new', [])
+	.config(function($stateProvider, $urlRouterProvider) {
+		$stateProvider
+			.state('trafficPortal.private.deliveryServices.staticDnsEntries.new', {
+				url: '/new',
+				views: {
+					deliveryServiceStaticDnsEntriesContent: {
+						templateUrl: 'common/modules/form/deliveryServiceStaticDnsEntry/form.deliveryServiceStaticDnsEntry.tpl.html',
+						controller: 'FormNewDeliveryServiceStaticDnsEntryController',
+						resolve: {
+							deliveryService: function($stateParams, deliveryServiceService) {
+								return deliveryServiceService.getDeliveryService($stateParams.deliveryServiceId);
+							},
+							staticDnsEntry: function() {
+								return {};
+							}
+						}
+					}
+				}
+			})
+		;
+		$urlRouterProvider.otherwise('/');
+	});


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services