diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-11-21 12:04:12 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-11-21 12:04:12 -0500 | 
| commit | e6648f01be57d79ee9d08ba3cc12c9e35dd1767d (patch) | |
| tree | de988d95ad45255cb3aa1ef152c42c7bf322bbd1 /lib/lib_vty.c | |
| parent | 298748af21f1bd2a1e3890353e7ef6a47946cdf7 (diff) | |
lib, vtysh: Allow watchfrr to receive start/end lines
Watchfrr really should receive notification about start/end
read of configuration.  Let's fix that.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/lib_vty.c')
| -rw-r--r-- | lib/lib_vty.c | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/lib_vty.c b/lib/lib_vty.c index 85816c5123..46a0a68103 100644 --- a/lib/lib_vty.c +++ b/lib/lib_vty.c @@ -225,10 +225,8 @@ static struct call_back {  } callback; -DEFUN_HIDDEN (start_config, -	      start_config_cmd, -	      "XFRR_start_configuration", -	      "The Beginning of Configuration\n") +DEFUN_NOSH(start_config, start_config_cmd, "XFRR_start_configuration", +	   "The Beginning of Configuration\n")  {  	callback.readin_time = monotime(NULL); @@ -240,10 +238,8 @@ DEFUN_HIDDEN (start_config,  	return CMD_SUCCESS;  } -DEFUN_HIDDEN (end_config, -	      end_config_cmd, -	      "XFRR_end_configuration", -	      "The End of Configuration\n") +DEFUN_NOSH(end_config, end_config_cmd, "XFRR_end_configuration", +	   "The End of Configuration\n")  {  	time_t readin_time;  	char readin_time_str[MONOTIME_STRLEN];  | 
