Receive interface address updates
@@ -249,7 +249,8 @@ func (m *bpfEndpointManager) OnUpdate(msg interface{}) {
// Interface updates.
case *ifaceUpdate:
m.onInterfaceUpdate(msg)
-
+ case *ifaceAddrsUpdate:
+ m.onInterfaceAddrsUpdate(msg)
// Updates from the datamodel:
// Workloads.
@@ -288,6 +289,10 @@ func (m *bpfEndpointManager) OnUpdate(msg interface{}) {
}
}
+func (m *bpfEndpointManager) onInterfaceAddrsUpdate(update *ifaceAddrsUpdate) {
+ log.Debugf("Interface address update for %v, state %v", update.Name, update.Addrs)
+}
+
func (m *bpfEndpointManager) onInterfaceUpdate(update *ifaceUpdate) {
log.Debugf("Interface update for %v, state %v", update.Name, update.State)
