diff options
| author | vdhingra <vdhingra@vmware.com> | 2020-08-10 00:00:09 -0700 | 
|---|---|---|
| committer | vdhingra <vdhingra@vmware.com> | 2020-08-31 21:12:21 -0700 | 
| commit | b2f6ab679c4d9fa0239fdf02ee6ed55eb18e1a4e (patch) | |
| tree | 100eb82ca035bdf77b960db94256ee97e6249c69 /staticd/static_debug.c | |
| parent | 5c2bb617630184fcf1e759bb647fd8a323fce4e4 (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_debug.c')
| -rw-r--r-- | staticd/static_debug.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/staticd/static_debug.c b/staticd/static_debug.c index e43d4e79ff..45f845b40b 100644 --- a/staticd/static_debug.c +++ b/staticd/static_debug.c @@ -34,13 +34,16 @@  /* clang-format off */  struct debug static_dbg_events = {0, "Staticd events"}; +struct debug static_dbg_route = {0, "Staticd route"};  struct debug *static_debug_arr[] =  { -	&static_dbg_events +	&static_dbg_events, +	&static_dbg_route  };  const char *static_debugs_conflines[] = { -	"debug static events" +	"debug static events", +	"debug static route"  };  /* clang-format on */ @@ -102,12 +105,14 @@ int static_debug_status_write(struct vty *vty)   *    Debug general internal events   *   */ -void static_debug_set(int vtynode, bool onoff, bool events) +void static_debug_set(int vtynode, bool onoff, bool events, bool route)  {  	uint32_t mode = DEBUG_NODE2MODE(vtynode);  	if (events)  		DEBUG_MODE_SET(&static_dbg_events, mode, onoff); +	if (route) +		DEBUG_MODE_SET(&static_dbg_route, mode, onoff);  }  /*  | 
