mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
ripd: Add missin enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
9d5cc4b5b7
commit
ec378ba08d
|
@ -236,9 +236,14 @@ struct yang_data *ripd_instance_state_routes_route_next_hop_get_elem(
|
|||
case NEXTHOP_TYPE_IPV4:
|
||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||
return yang_data_new_ipv4(args->xpath, &rinfo->nh.gate.ipv4);
|
||||
default:
|
||||
case NEXTHOP_TYPE_IFINDEX:
|
||||
case NEXTHOP_TYPE_IPV6:
|
||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||
case NEXTHOP_TYPE_BLACKHOLE:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
assert(!"Reached end of function where we do not expect to reach");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -257,9 +262,14 @@ struct yang_data *ripd_instance_state_routes_route_interface_get_elem(
|
|||
return yang_data_new_string(
|
||||
args->xpath,
|
||||
ifindex2ifname(rinfo->nh.ifindex, rip->vrf->vrf_id));
|
||||
default:
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
case NEXTHOP_TYPE_IPV6:
|
||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||
case NEXTHOP_TYPE_BLACKHOLE:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
assert(!"Reached end of function where we do not expect to reach");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue