summaryrefslogtreecommitdiffstats
path: root/staticd/static_zebra.c
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2020-08-10 09:00:09 +0200
committervdhingra <vdhingra@vmware.com>2020-09-01 06:12:21 +0200
commitb2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch)
tree100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_zebra.c
parentMerge pull request #7017 from xThaid/netlink_fix (diff)
downloadfrr-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.c9
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);