Jeff Elsloo created TC-200:
------------------------------

             Summary: Unable to modify Traffic Router TTLs on Delivery Services
                 Key: TC-200
                 URL: https://issues.apache.org/jira/browse/TC-200
             Project: Traffic Control
          Issue Type: Bug
          Components: Traffic Ops
    Affects Versions: 2.1.0
            Reporter: Jeff Elsloo


It appears that we have no means to modify the {{ccr_dns_ttl}} field on 
delivery services. We have fields that are not being shown and are defaulted to 
30 and 3600 seconds for DNS and HTTP, respectively. We need to be able to edit 
this field primarily because we need the control, but secondarily because if 
the type changes the value might not.

For example, in the DS "add" template (note lack of {{.show(speed)}}):
{code}
        if (type_selected.match(/^HTTP/)) {
            $("#regexp_selector :nth-child(3)").removeAttr('disabled');
            $("#regexp_selector :nth-child(4)").removeAttr('disabled');
            $('#ccr_dns_ttl').val(3600);
            $('#protocoli_row').show(speed);
            $('#dscp_row').show(speed);
...
        else if (type_selected.match(/^DNS/)) {
            $("#regexp_selector :nth-child(3)").attr('disabled','disabled');
            $("#regexp_selector :nth-child(4)").attr('disabled','disabled');
            $('#ccr_dns_ttl').val(30);
            $('#protocoli_row').show(speed);
            $('#dscp_row').show(speed);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to