Skip to content

Commit d4f1f4d

Browse files
authored
Remove overriding host verson when IP already exist to avoid pending programming IPs become available after CNS restarts and restore from previous state. (#781)
1 parent 4c4e5f5 commit d4f1f4d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cns/restserver/util.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ func (service *HTTPRestService) addIPConfigStateUntransacted(ncId string, hostVe
266266
if existingIPConfig, existsInPreviousIPConfig := existingSecondaryIPConfigs[ipId]; existsInPreviousIPConfig {
267267
ipconfig.NCVersion = existingIPConfig.NCVersion
268268
ipconfigs[ipId] = ipconfig
269-
hostVersion = existingIPConfig.NCVersion
270269
}
271270
logger.Printf("[Azure-Cns] Set IP %s version to %d, programmed host nc version is %d", ipconfig.IPAddress, ipconfig.NCVersion, hostVersion)
272271
if _, exists := service.PodIPConfigState[ipId]; exists {

0 commit comments

Comments
 (0)