summaryrefslogtreecommitdiff
path: root/staticd/static_routes.c
diff options
context:
space:
mode:
Diffstat (limited to 'staticd/static_routes.c')
-rw-r--r--staticd/static_routes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c
index ccbb98bd11..0c39058a8d 100644
--- a/staticd/static_routes.c
+++ b/staticd/static_routes.c
@@ -209,7 +209,8 @@ bool static_add_nexthop_validate(const char *nh_vrf_name,
vrf->vrf_id))
return false;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
@@ -302,7 +303,8 @@ struct static_nexthop *static_add_nexthop(struct static_path *pn,
case STATIC_IPV6_GATEWAY_IFNAME:
nh->addr.ipv6 = ipaddr->ipaddr_v6;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
/*