Merge pull request #1634 from aboch/err
Report failure in subscribing to neighbor notifications
This commit is contained in:
commit
f4eec45e45
1 changed files with 4 additions and 4 deletions
|
@ -612,13 +612,13 @@ func (n *network) initSandbox(restore bool) error {
|
||||||
var nlSock *nl.NetlinkSocket
|
var nlSock *nl.NetlinkSocket
|
||||||
sbox.InvokeFunc(func() {
|
sbox.InvokeFunc(func() {
|
||||||
nlSock, err = nl.Subscribe(syscall.NETLINK_ROUTE, syscall.RTNLGRP_NEIGH)
|
nlSock, err = nl.Subscribe(syscall.NETLINK_ROUTE, syscall.RTNLGRP_NEIGH)
|
||||||
if err != nil {
|
|
||||||
err = fmt.Errorf("failed to subscribe to neighbor group netlink messages")
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if nlSock != nil {
|
if err == nil {
|
||||||
go n.watchMiss(nlSock)
|
go n.watchMiss(nlSock)
|
||||||
|
} else {
|
||||||
|
logrus.Errorf("failed to subscribe to neighbor group netlink messages for overlay network %s in sbox %s: %v",
|
||||||
|
n.id, sbox.Key(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue