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 2019/11/22 22:57:06 UTC

[GitHub] [trafficcontrol] rawlinp opened a new pull request #4145: Add TO API Routing Blacklist via cdn.conf

rawlinp opened a new pull request #4145: Add TO API Routing Blacklist via cdn.conf
URL: https://github.com/apache/trafficcontrol/pull/4145
 
 
   ## What does this PR (Pull Request) do?
   Add a `"routing_blacklist"` field to cdn.conf's "traffic_ops_golang"
   section, consisting of two array fields:
   - `"perl_routes"`: routes that will be handled by TO-Perl instead of Go
   - `"disabled_routes"`: routes that will be disabled by immediately
       returning a 503
   
   These fields are arrays of route IDs (integers). As part of this change,
   routes in `traffic_ops_golang` get a unique ID now, as well as a boolean
   field indicating whether or not the route can be bypassed to TO-Perl.
   
   Add a `--api-routes` flag to `traffic_ops_golang` that prints out all the
   route information (ID, version, path, etc) and exits.
   
   - [x] This PR is not related to any Issue
   
   ## Which Traffic Control components are affected by this PR?
   - Documentation
   - Traffic Ops
   
   ## What is the best way to verify this PR?
   1. Run the `traffic_ops_golang` unit tests
   2. Run the TO API tests
   3. Configure `cdn.conf` to disable a certain route, make a request to that route, and verify that a 503 response is returned.
   4. Configure `cdn.conf` to have Perl handle a certain route, make a request to that route, and verify that the route was handled by TO-Perl and not Go.
   
   ## The following criteria are ALL met by this PR
   
   - [x] This PR includes tests OR I have explained why tests are unnecessary
   - [x] This PR includes documentation OR I have explained why documentation is unnecessary
   - [x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
   - [x] This PR includes any and all required license headers
   - [x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
   - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://www.apache.org/security/) for details)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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