diff options
author | vdhingra <vdhingra@vmware.com> | 2020-08-10 09:00:09 +0200 |
---|---|---|
committer | vdhingra <vdhingra@vmware.com> | 2020-09-01 06:12:21 +0200 |
commit | b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch) | |
tree | 100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_zebra.c | |
parent | Merge pull request #7017 from xThaid/netlink_fix (diff) | |
download | frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.tar.xz frr-b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e.zip |
staticd : Added the warning log for route when VRF is not ready.
During the yangification of staticd, refactoring of code
around static_hold_route data struct has been done, In this
context warning log message when VRF is not ready had been
removed. This should not be removed, adding it back.
I have missed one MPLS validation too, adding it back.
Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'staticd/static_zebra.c')
-rw-r--r-- | staticd/static_zebra.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 1bdbb69d0..ca29b7647 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -42,8 +42,7 @@ #include "static_zebra.h" #include "static_nht.h" #include "static_vty.h" - -bool debug; +#include "static_debug.h" /* Zebra structure to hold current status. */ struct zclient *zclient; @@ -313,9 +312,9 @@ void static_zebra_nht_register(struct route_node *rn, struct static_nexthop *nh, static_nht_hash_alloc); nhtd->refcount++; - if (debug) - zlog_debug("Registered nexthop(%pFX) for %pRN %d", &p, - rn, nhtd->nh_num); + DEBUGD(&static_dbg_route, + "Registered nexthop(%pFX) for %pRN %d", &p, rn, + nhtd->nh_num); if (nhtd->refcount > 1 && nhtd->nh_num) { static_nht_update(&rn->p, nhtd->nh, nhtd->nh_num, afi, nh->nh_vrf_id); |