mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 06:34:44 +00:00
2003-08-11 Yasuyuki Haga <yasuhaga@nifty.ne.jp>
* ospfd/ospf_zebra.c: (ospf_zebra_delete) Set ifindex if no nexthop supplied. log if no (ifindex || nexthop) supplied.
This commit is contained in:
parent
071fcedb30
commit
bb8ff1e7fe
@ -429,6 +429,18 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
|
|||||||
nexthop = &path->nexthop;
|
nexthop = &path->nexthop;
|
||||||
api.nexthop = &nexthop;
|
api.nexthop = &nexthop;
|
||||||
}
|
}
|
||||||
|
else if (path->oi->ifp)
|
||||||
|
{
|
||||||
|
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
|
||||||
|
api.ifindex_num = 1;
|
||||||
|
api.ifindex = &path->oi->ifp->ifindex;
|
||||||
|
}
|
||||||
|
else if ( IS_DEBUG_OSPF(zebra,ZEBRA_REDISTRIBUTE) )
|
||||||
|
{
|
||||||
|
zlog_info("Zebra: no ifp %s %d",
|
||||||
|
inet_ntoa(p->prefix),
|
||||||
|
p->prefixlen);
|
||||||
|
}
|
||||||
|
|
||||||
zapi_ipv4_delete (zclient, p, &api);
|
zapi_ipv4_delete (zclient, p, &api);
|
||||||
|
|
||||||
@ -438,6 +450,12 @@ ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
|
|||||||
inet_ntoa (p->prefix),
|
inet_ntoa (p->prefix),
|
||||||
p->prefixlen, inet_ntoa (**api.nexthop));
|
p->prefixlen, inet_ntoa (**api.nexthop));
|
||||||
}
|
}
|
||||||
|
if (IS_DEBUG_OSPF (zebra, ZEBRA_REDISTRIBUTE) && api.ifindex_num)
|
||||||
|
{
|
||||||
|
zlog_info ("Zebra: Route delete %s/%d ifindex %d",
|
||||||
|
inet_ntoa (p->prefix),
|
||||||
|
p->prefixlen, *api.ifindex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user