Skip to content

Commit 2a6ce61

Browse files
Remove GetNCVersionURLFmt from NodeInfo contract (#718)
This change removes GetNCVersionURLFmt from the NodeInfoResponse which CNS gets as a part of SyncNodeStatus in case of managed mode. This data is available with CNS and should not be needed from DNC.
1 parent e40551f commit 2a6ce61

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cns/NetworkContainerContract.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,5 @@ func (networkContainerRequestPolicy *NetworkContainerRequestPolicies) Validate()
373373

374374
// NodeInfoResponse - Struct to hold the node info response.
375375
type NodeInfoResponse struct {
376-
NetworkContainers []CreateNetworkContainerRequest
377-
GetNCVersionURLFmt string
376+
NetworkContainers []CreateNetworkContainerRequest
378377
}

cns/restserver/internalapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (service *HTTPRestService) SyncNodeStatus(dncEP, infraVnet, nodeID string,
9393
// check if the version is valid and save it to service state
9494
for ncid, nc := range ncsToBeAdded {
9595
var (
96-
versionURL = fmt.Sprintf(nodeInfoResponse.GetNCVersionURLFmt,
96+
versionURL = fmt.Sprintf(nmagentclient.GetNetworkContainerVersionURLFmt,
9797
nmagentclient.WireserverIP,
9898
nc.PrimaryInterfaceIdentifier,
9999
nc.NetworkContainerid,

0 commit comments

Comments
 (0)