These RPCs should do nothing when RIP/RIPng aren't configured.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
struct list *list;
struct listnode *listnode;
+ if (!rip)
+ return NB_OK;
+
/* Clear received RIP routes */
for (rp = route_top(rip->table); rp; rp = route_next(rp)) {
list = rp->info;
struct list *list;
struct listnode *listnode;
+ if (!ripng)
+ return NB_OK;
+
/* Clear received RIPng routes */
for (rp = agg_route_top(ripng->table); rp; rp = agg_route_next(rp)) {
list = rp->info;