Skip to content

Commit

Permalink
Merge pull request #1626 from LabNConsulting/working/master/vnc-config
Browse files Browse the repository at this point in the history
bgp: don't show vnc response-lifetime config line when set to default…
  • Loading branch information
donaldsharp authored Jan 12, 2018
2 parents 8eac481 + 9b73cd8 commit b782607
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bgpd/rfapi/bgp_rfapi_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -4097,7 +4097,8 @@ int bgp_rfapi_cfg_write(struct vty *vty, struct bgp *bgp)
}
}

if (hc->default_rd.prefixlen || hc->default_response_lifetime
if (hc->default_rd.prefixlen
|| hc->default_response_lifetime != BGP_VNC_DEFAULT_RESPONSE_LIFETIME_DEFAULT
|| hc->default_rt_import_list || hc->default_rt_export_list
|| hc->nve_groups_sequential->count) {

Expand Down Expand Up @@ -4125,7 +4126,8 @@ int bgp_rfapi_cfg_write(struct vty *vty, struct bgp *bgp)
buf,
sizeof(buf)));
}
if (hc->default_response_lifetime) {
if (hc->default_response_lifetime
!= BGP_VNC_DEFAULT_RESPONSE_LIFETIME_DEFAULT) {
vty_out(vty, " response-lifetime ");
if (hc->default_response_lifetime != UINT32_MAX)
vty_out(vty, "%d",
Expand Down

0 comments on commit b782607

Please sign in to comment.