trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [incubator-trafficcontrol] 04/36: Add Deep Caching field to TP
Date Wed, 24 Jan 2018 17:23:13 GMT
This is an automated email from the ASF dual-hosted git repository.

elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit c41a029e7e4afba411c5378afc7f2f3394d49515
Author: Rawlin Peters <rawlin_peters@comcast.com>
AuthorDate: Fri Oct 13 11:12:33 2017 -0600

    Add Deep Caching field to TP
---
 .../form/deliveryService/FormDeliveryServiceController.js      |  5 +++++
 .../form/deliveryService/form.deliveryService.HTTP.tpl.html    | 10 ++++++++++
 traffic_portal/app/src/traffic_portal_properties.json          |  1 +
 3 files changed, 16 insertions(+)

diff --git a/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
b/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
index 71927fc..049a11b 100644
--- a/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
+++ b/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js
@@ -128,6 +128,11 @@ var FormDeliveryServiceController = function(deliveryService, type, types,
$scop
         { value: 56, label: '56  - CS7' }
     ];
 
+    $scope.deepCachingTypes = [
+        { value: 0, label: '0 - Never' },
+        { value: 1, label: '1 - Always' }
+    ]
+
     $scope.dispersions = [
         { value: 1, label: '1 - OFF' },
         { value: 2, label: '2' },
diff --git a/traffic_portal/app/src/common/modules/form/deliveryService/form.deliveryService.HTTP.tpl.html
b/traffic_portal/app/src/common/modules/form/deliveryService/form.deliveryService.HTTP.tpl.html
index b651434..a36afe6 100644
--- a/traffic_portal/app/src/common/modules/form/deliveryService/form.deliveryService.HTTP.tpl.html
+++ b/traffic_portal/app/src/common/modules/form/deliveryService/form.deliveryService.HTTP.tpl.html
@@ -168,6 +168,16 @@ under the License.
                     </div>
                 </div>
 
+                <div class="form-group" ng-class="{'has-error': hasError(deliveryServiceForm.deepCachingType),
'has-feedback': hasError(deliveryServiceForm.deepCachingType)}">
+                    <label class="control-label col-md-2 col-sm-2 col-xs-12">Deep Caching
*</label>
+                    <div class="col-md-10 col-sm-10 col-xs-12">
+                        <select id="deepCachingType" name="deepCachingType" class="form-control"
ng-model="deliveryService.deepCachingType" ng-options="dct.value as dct.label for dct in deepCachingTypes"
required>
+                            <option value="">Select...</option>
+                        </select>
+                        <small class="input-error" ng-show="hasPropertyError(deliveryServiceForm.deepCachingType,
'required')">Required</small>
+                    </div>
+                </div>
+
                 <div class="form-group" ng-class="{'has-error': hasError(deliveryServiceForm.dscp),
'has-feedback': hasError(deliveryServiceForm.dscp)}">
                     <label class="control-label col-md-2 col-sm-2 col-xs-12">DSCP Tag
*</label>
                     <div class="col-md-10 col-sm-10 col-xs-12">
diff --git a/traffic_portal/app/src/traffic_portal_properties.json b/traffic_portal/app/src/traffic_portal_properties.json
index d1bb1f0..2935001 100644
--- a/traffic_portal/app/src/traffic_portal_properties.json
+++ b/traffic_portal/app/src/traffic_portal_properties.json
@@ -83,6 +83,7 @@
         },
         "HTTP": {
           "routingName": "cdn",
+          "deepCachingType": "NEVER",
           "dscp": 0,
           "ipv6RoutingEnabled": false,
           "rangeRequestHandling": 0,

-- 
To stop receiving notification emails like this one, please contact
elsloo@apache.org.

Mime
View raw message