This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 6eadecd  Make Edge and Mid profile start with EDGE and MID for GET 
/caches/stats (#5773)
6eadecd is described below

commit 6eadecd10569b4c1f13246583688f2ce4c0a329a
Author: Zach Hoffman <[email protected]>
AuthorDate: Wed Apr 21 17:19:02 2021 -0600

    Make Edge and Mid profile start with EDGE and MID for GET /caches/stats 
(#5773)
---
 docs/source/overview/profiles_and_parameters.rst                      | 2 +-
 infrastructure/cdn-in-a-box/traffic_ops/to-access.sh                  | 4 ++--
 .../traffic_ops_data/profiles/010-ATS_EDGE_TIER_CACHE.json            | 2 +-
 .../traffic_ops_data/profiles/020-ATS_MID_TIER_CACHE.json             | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/source/overview/profiles_and_parameters.rst 
b/docs/source/overview/profiles_and_parameters.rst
index ea60872..7fe3e86 100644
--- a/docs/source/overview/profiles_and_parameters.rst
+++ b/docs/source/overview/profiles_and_parameters.rst
@@ -71,7 +71,7 @@ A Profile's :dfn:`Type` determines how its configured 
Parameters_ are treated by
 ATS_PROFILE
        A Profile that can be used with either an Edge-tier or Mid-tier 
:term:`cache server` (but not both, in general). This is the only Profile type 
that will ultimately pass its Parameters_ on to :term:`ORT` in the form of 
generated configuration files. For this reason, it can make use of the 
:ref:`ort-special-strings` in the values of some of its Parameters_.
 
-       .. warning:: For legacy reasons, the names of Profiles of this type 
*must* begin with ``EDGE`` or ``MID``. This is **not** enforced by the 
:ref:`to-api` or Traffic Portal, but certain Traffic Control 
operations/components expect this and will fail to work otherwise!
+       .. warning:: For legacy reasons, the names of Profiles of this type 
*must* begin with ``EDGE`` or ``MID``. This is **not** enforced by the 
:ref:`to-api` or Traffic Portal, but certain Traffic Control 
operations/components expect this and will fail to work otherwise! This 
includes :ref:`to-api-caches-stats`.
 
 DS_PROFILE
        A Profile that, rather than applying to a server, is instead :ref:`used 
by a Delivery Service <ds-profile>`.
diff --git a/infrastructure/cdn-in-a-box/traffic_ops/to-access.sh 
b/infrastructure/cdn-in-a-box/traffic_ops/to-access.sh
index 000f2e0..ff08190 100755
--- a/infrastructure/cdn-in-a-box/traffic_ops/to-access.sh
+++ b/infrastructure/cdn-in-a-box/traffic_ops/to-access.sh
@@ -203,12 +203,12 @@ to-enroll() {
                        ;;
                "edge" )
                        export MY_TYPE="EDGE"
-                       export MY_PROFILE="ATS_EDGE_TIER_CACHE"
+                       export MY_PROFILE="EDGE_TIER_ATS_CACHE"
                        export MY_STATUS="REPORTED"
                        ;;
                "mid" )
                        export MY_TYPE="MID"
-                       export MY_PROFILE="ATS_MID_TIER_CACHE"
+                       export MY_PROFILE="MID_TIER_ATS_CACHE"
                        export MY_STATUS="REPORTED"
                        ;;
                "origin" )
diff --git 
a/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/010-ATS_EDGE_TIER_CACHE.json
 
b/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/010-ATS_EDGE_TIER_CACHE.json
index a10dd7f..d42ea22 100644
--- 
a/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/010-ATS_EDGE_TIER_CACHE.json
+++ 
b/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/010-ATS_EDGE_TIER_CACHE.json
@@ -1,7 +1,7 @@
 {
        "cdnName": "$CDN_NAME",
        "description": "Edge Cache - Apache Traffic Server",
-       "name": "ATS_EDGE_TIER_CACHE",
+       "name": "EDGE_TIER_ATS_CACHE",
        "routingDisabled": false,
        "type": "ATS_PROFILE",
        "params": [
diff --git 
a/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/020-ATS_MID_TIER_CACHE.json
 
b/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/020-ATS_MID_TIER_CACHE.json
index 555d9ff..e7bf4f6 100644
--- 
a/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/020-ATS_MID_TIER_CACHE.json
+++ 
b/infrastructure/cdn-in-a-box/traffic_ops_data/profiles/020-ATS_MID_TIER_CACHE.json
@@ -1,7 +1,7 @@
 {
        "cdnName": "$CDN_NAME",
        "description": "Mid Cache - Apache Traffic Server",
-       "name": "ATS_MID_TIER_CACHE",
+       "name": "MID_TIER_ATS_CACHE",
        "routingDisabled": false,
        "type": "ATS_PROFILE",
        "params": [

Reply via email to