forked from Mirror/frr
Quagga: Implement VRF change semantics for an interface
Enhance some debug logs as part of implementing VRF change semantics for an interface. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Ticket: CM-9527 Reviewed By: CCR-4174 Testing Done: Manual tests of various scenarios
This commit is contained in:
parent
f1aa3df6ba
commit
b4dd5eaaa1
|
@ -984,10 +984,12 @@ zebra_interface_state_read (struct stream *s, vrf_id_t vrf_id)
|
||||||
ifp = if_lookup_by_name_len_vrf (ifname_tmp,
|
ifp = if_lookup_by_name_len_vrf (ifname_tmp,
|
||||||
strnlen (ifname_tmp, INTERFACE_NAMSIZ),
|
strnlen (ifname_tmp, INTERFACE_NAMSIZ),
|
||||||
vrf_id);
|
vrf_id);
|
||||||
|
if (ifp == NULL)
|
||||||
/* If such interface does not exist, indicate an error */
|
{
|
||||||
if (! ifp)
|
zlog_warn ("INTERFACE_STATE: Cannot find IF %s in VRF %d",
|
||||||
return NULL;
|
ifname_tmp, vrf_id);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
zebra_interface_if_set_value (s, ifp);
|
zebra_interface_if_set_value (s, ifp);
|
||||||
|
|
||||||
|
@ -1083,10 +1085,9 @@ zebra_interface_address_read (int type, struct stream *s, vrf_id_t vrf_id)
|
||||||
ifp = if_lookup_by_index_vrf (ifindex, vrf_id);
|
ifp = if_lookup_by_index_vrf (ifindex, vrf_id);
|
||||||
if (ifp == NULL)
|
if (ifp == NULL)
|
||||||
{
|
{
|
||||||
zlog_warn ("zebra_interface_address_read(%s): "
|
zlog_warn ("INTERFACE_ADDRESS_%s: Cannot find IF %u in VRF %d",
|
||||||
"Can't find interface by ifindex: %d ",
|
(type == ZEBRA_INTERFACE_ADDRESS_ADD) ? "ADD" : "DEL",
|
||||||
(type == ZEBRA_INTERFACE_ADDRESS_ADD? "ADD" : "DELETE"),
|
ifindex, vrf_id);
|
||||||
ifindex);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue