Skip to content

Commit 9ebaaba

Browse files
authored
Merge pull request FRRouting#18702 from donaldsharp/prevent_non_default_usage_of_table
zebra: Prevent vrf table 254 being used by non-default vrf
2 parents dd4c464 + 3c009ff commit 9ebaaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zebra/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ static void interface_vrf_change(enum dplane_op_e op, ifindex_t ifindex,
14611461
*/
14621462
vrf_id_t exist_id = zebra_vrf_lookup_by_table(tableid, ns_id);
14631463

1464-
if (exist_id != VRF_DEFAULT) {
1464+
if (exist_id != VRF_DEFAULT || strmatch(name, VRF_DEFAULT_NAME)) {
14651465
vrf = vrf_lookup_by_id(exist_id);
14661466

14671467
if (!vrf_lookup_by_id((vrf_id_t)ifindex) && !vrf) {

0 commit comments

Comments
 (0)