Fix felix crash
@@ -293,6 +293,7 @@ func (m *bpfEndpointManager) OnUpdate(msg interface{}) {
}
func (m *bpfEndpointManager) onInterfaceAddrsUpdate(update *ifaceAddrsUpdate) {
+ if update.Addrs.Len() > 0 {
log.Debugf("Interface %+v received address update %+v", update.Name, update.Addrs)
update.Addrs.Iter(func(item interface{}) error {
ip := net.ParseIP(item.(string))
@@ -305,6 +306,7 @@ func (m *bpfEndpointManager) onInterfaceAddrsUpdate(update *ifaceAddrsUpdate) {
return nil
})
}
+}
func (m *bpfEndpointManager) onInterfaceUpdate(update *ifaceUpdate) {
log.Debugf("Interface update for %v, state %v", update.Name, update.State)
