rob05c commented on a change in pull request #4790:
URL: https://github.com/apache/trafficcontrol/pull/4790#discussion_r451689166



##########
File path: lib/go-atscfg/atscfg.go
##########
@@ -134,3 +136,64 @@ const ConfigSuffix = ".config"
 func GetConfigFile(prefix string, xmlId string) string {
        return prefix + xmlId + ConfigSuffix
 }
+
+// topologyIncludesServer returns whether the given topology includes the 
given server
+func topologyIncludesServer(topology tc.Topology, server tc.Server) bool {
+       _, inTopology := serverTopologyTier(server, topology)
+       return inTopology
+}
+
+// serverTopologyTier returns whether the server is the last tier in the 
topology, and whether the server is in the topology at all.
+func serverTopologyTier(server tc.Server, topology tc.Topology) (bool, bool) {

Review comment:
       Maybe. I'll make it do whatever makes the most sense when I add those 
Header Rewrites to the generation. Not sure what that'll be until I start 
changing it.




----------------------------------------------------------------
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:
[email protected]


Reply via email to