summaryrefslogtreecommitdiff
path: root/staticd/static_zebra.c
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2020-08-10 00:00:09 -0700
committervdhingra <vdhingra@vmware.com>2020-08-31 21:12:21 -0700
commitb2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch)
tree100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_zebra.c
parent5c2bb617630184fcf1e759bb647fd8a323fce4e4 (diff)
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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 1bdbb69d00..ca29b76477 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);