monitor CNI networks continuously

Signed-off-by: Rajat Chopra <rchopra@redhat.com>
This commit is contained in:
Rajat Chopra 2017-08-28 15:47:15 -04:00
parent 3473e8afed
commit 1084ce691a

View file

@ -54,9 +54,8 @@ func (plugin *cniNetworkPlugin) monitorNetDir() {
}
if err = plugin.syncNetworkConfig(); err == nil {
logrus.Debugf("CNI asynchronous setting succeeded")
close(plugin.monitorNetDirChan)
return
logrus.Infof("CNI asynchronous setting succeeded")
continue
}
logrus.Errorf("CNI setting failed, continue monitoring: %v", err)