Ticket: CM-7388
Reviewed By: Donald, Vivek
Testing Done: Cherry picking from 2.5.4, no testing on 3.0 yet
OSPF needs to handle the previously added redist update/raplace semantics.
Update has no new message type, it comes as ADD message.
struct prefix_ipv4 p;
struct external_info *ei;
struct ospf *ospf;
+ int i;
s = zclient->ibuf;
ifindex = 0;
if (ospf->dtag[api.type] > 0)
api.tag = ospf->dtag[api.type];
+ /*
+ * Given zebra sends update for a prefix via ADD message, it should
+ * be considered as an implicit DEL for that prefix with other source
+ * types.
+ */
+ for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
+ if (i != api.type)
+ ospf_external_info_delete(i, api.instance, p);
+
ei = ospf_external_info_add (api.type, api.instance, p, ifindex,
nexthop, api.tag);