mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 10:31:09 +00:00
Merge pull request #13026 from chiragshah6/fdev1
pbrd:fix mismatching in match src-dst
This commit is contained in:
commit
18f5535b79
@ -125,7 +125,7 @@ DEFPY(pbr_map_match_src, pbr_map_match_src_cmd,
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (pbrms->dst && pbrms->family && prefix->family != pbrms->family) {
|
||||
if (pbrms->dst && prefix->family != pbrms->dst->family) {
|
||||
vty_out(vty, "Cannot mismatch families within match src/dst\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
@ -161,7 +161,7 @@ DEFPY(pbr_map_match_dst, pbr_map_match_dst_cmd,
|
||||
if (!pbrms)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
|
||||
if (pbrms->src && pbrms->family && prefix->family != pbrms->family) {
|
||||
if (pbrms->src && prefix->family != pbrms->src->family) {
|
||||
vty_out(vty, "Cannot mismatch families within match src/dst\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user