bgpd: rfapi - don't do debug related work when debug not

enabled and other minor tweaks

Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
Lou Berger 2017-10-28 15:03:34 -04:00
parent 9d6a46aa1e
commit 7f88f54a83
3 changed files with 3 additions and 6 deletions

View File

@ -3973,9 +3973,6 @@ void rfapiProcessUpdate(struct peer *peer,
if (safi == SAFI_MPLS_VPN) {
vnc_direct_bgp_rh_add_route(bgp, afi, p, peer, attr);
}
if (safi == SAFI_MPLS_VPN) {
rfapiBgpInfoFilteredImportVPN(
bgp->rfapi->it_ce, FIF_ACTION_UPDATE, peer, rfd,
p, /* prefix */

View File

@ -643,7 +643,7 @@ encap_attr_export(struct attr *new, struct attr *orig,
if (rn) {
ecom_ro = vnc_route_origin_ecom(rn);
} else {
/* TBD test/assert for IPv6 */
/* TBD use lcom for IPv6 */
ecom_ro = vnc_route_origin_ecom_single(&use_nexthop->u.prefix4);
}
if (new->ecommunity) {

View File

@ -573,7 +573,7 @@ static void vnc_import_bgp_add_route_mode_resolve_nve(
struct bgp_node *bnp; /* prd table node */
/*debugging */
{
if (VNC_DEBUG(VERBOSE)) {
char str_pfx[BUFSIZ];
char str_nh[BUFSIZ];
struct prefix nh;
@ -2637,7 +2637,7 @@ void vnc_import_bgp_add_route(struct bgp *bgp, struct prefix *prefix,
{
afi_t afi = family2afi(prefix->family);
{
if (VNC_DEBUG(VERBOSE)) {
struct prefix pfx_nexthop;
char buf[BUFSIZ];
char buf_nh[BUFSIZ];