Skip to content

Commit

Permalink
Use an alias for CNS client paths
Browse files Browse the repository at this point in the history
These really should be a single set of paths, but there's this existing
block of constants to define a "contract with DNC." Whether or not
that's complete, the spirit of it is somewhat clear. However, it's not
great to be duplicating constants all over the place. This is somewhat
of a compromise by defining the newer constants in terms of the older
ones.
  • Loading branch information
timraymond committed Sep 6, 2022
1 parent 709b497 commit 3e44e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cns/NetworkContainerContract.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const (
PathDebugIPAddresses = "/debug/ipaddresses"
PathDebugPodContext = "/debug/podcontext"
PathDebugRestData = "/debug/restdata"
NumberOfCPUCores = "/hostcpucores"
NMAgentSupportedAPIs = "/network/nmagentsupportedapis"
NumberOfCPUCores = NumberOfCPUCoresPath
NMAgentSupportedAPIs = NmAgentSupportedApisPath
)

// NetworkContainer Prefixes
Expand Down

0 comments on commit 3e44e7c

Please sign in to comment.