Skip to content

Commit 0a716d4

Browse files
authored
Update bridge.go
1 parent 04c60f9 commit 0a716d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/bridge/bridge.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ func (d *driver) DeleteEndpoint(nid, eid string) error {
11091109
// Also make sure defer does not see this error either.
11101110
if n.config.NDPProxyInterface != "" && n.config.EnableIPv6 {
11111111
link, err := d.nlh.LinkByName(n.config.NDPProxyInterface)
1112-
if err == nil {
1112+
if err != nil {
1113+
Logrus.Warnf("could not remove ndp neighbour, because could not find link for ndp proxy interface %q: %v", config.NDPProxyInterface, err)
1114+
} else {
11131115
neighbor := netlink.Neigh{
11141116
LinkIndex: link.Attrs().Index,
11151117
Family: netlink.FAMILY_V6,

0 commit comments

Comments
 (0)