Skip to content

Commit e7c71b5

Browse files
committed
remove code from startup as reconcile nnc always runs on cns startup
1 parent c779251 commit e7c71b5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cns/restserver/util.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -577,17 +577,6 @@ func (service *HTTPRestService) restoreNetworkState() error {
577577
}
578578
}
579579

580-
// reconcile iptables rules on node when cns restarts
581-
if service.Options[acn.OptProgramSNATIPTables] == true && service.state != nil {
582-
for containerID := range service.state.ContainerStatus {
583-
container := service.state.ContainerStatus[containerID]
584-
returnCode, returnMessage := service.programSNATRules(&container.CreateNetworkContainerRequest)
585-
if returnCode != 0 {
586-
logger.Errorf(returnMessage) // nolint
587-
}
588-
}
589-
}
590-
591580
if rebooted {
592581
for _, nwInfo := range service.state.Networks {
593582
enableSnat := true

0 commit comments

Comments
 (0)