Merge pull request #1202 from LabNConsulting/working/master/patch/rfapi-rd.family

bgpd: rfapi - fix 'add vnc' command not picking up RD from vrf-policy
This commit is contained in:
Donald Sharp 2017-09-20 07:54:19 -04:00 committed by GitHub
commit a691ffc998
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);