]> git.puffer.fish Git - matthieu/frr.git/commitdiff
staticd: Add missing enum's to switch statement
authorDonald Sharp <sharpd@nvidia.com>
Mon, 30 Jan 2023 15:09:22 +0000 (10:09 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 31 Jan 2023 20:15:42 +0000 (15:15 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
staticd/static_routes.c
staticd/static_vty.c

index ccbb98bd117c32ac2e1504882de7357335b73055..0c39058a8db114b7fd6cc4dbc5a014cc547cc61f 100644 (file)
@@ -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;
        }
        /*
index c5bea755ec19c1437c52ea297e2a64d88f57d1ad..f9c88f8becc8e587aa5d387a4a87f3b322199efc 100644 (file)
@@ -135,7 +135,9 @@ static int static_route_nb_run(struct vty *vty, struct static_route_args *args)
                if (args->source)
                        assert(!!str2prefix(args->source, &src));
                break;
-       default:
+       case AFI_L2VPN:
+       case AFI_UNSPEC:
+       case AFI_MAX:
                break;
        }