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:
Lou Berger 2017-09-19 10:07:31 -04:00
parent 3fabacd286
commit d2d080f52e
2 changed files with 2 additions and 2 deletions

View file

@ -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->nve_groups_sequential->count) {

View file

@ -4671,7 +4671,7 @@ static int vnc_add_vrf_prefix(struct vty *vty, const char *arg_vrf,
arg_vrf);
return CMD_WARNING_CONFIG_FAILED;
}
if (!rfg->rd.family && !arg_rd) {
if (!rfg->rd.prefixlen && !arg_rd) {
vty_out(vty,
"VRF \"%s\" isn't configured with an RD, so RD must be provided.\n",
arg_vrf);