mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 08:46:07 +00:00
bgpd: rfapi - fix a couple of check that should have been against RD len vs RD type flag (family)
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
3fabacd286
commit
d2d080f52e
@ -4093,7 +4093,7 @@ int bgp_rfapi_cfg_write(struct vty *vty, struct bgp *bgp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hc->default_rd.family || hc->default_response_lifetime
|
if (hc->default_rd.prefixlen || hc->default_response_lifetime
|
||||||
|| hc->default_rt_import_list || hc->default_rt_export_list
|
|| hc->default_rt_import_list || hc->default_rt_export_list
|
||||||
|| hc->nve_groups_sequential->count) {
|
|| hc->nve_groups_sequential->count) {
|
||||||
|
|
||||||
|
@ -4671,7 +4671,7 @@ static int vnc_add_vrf_prefix(struct vty *vty, const char *arg_vrf,
|
|||||||
arg_vrf);
|
arg_vrf);
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
}
|
}
|
||||||
if (!rfg->rd.family && !arg_rd) {
|
if (!rfg->rd.prefixlen && !arg_rd) {
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"VRF \"%s\" isn't configured with an RD, so RD must be provided.\n",
|
"VRF \"%s\" isn't configured with an RD, so RD must be provided.\n",
|
||||||
arg_vrf);
|
arg_vrf);
|
||||||
|
Loading…
Reference in New Issue
Block a user