diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-10-30 19:10:55 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-19 15:52:11 +0100 |
commit | f8e6ada8821d5992e5680ff660fc9bd1691f8ae2 (patch) | |
tree | 15e27819bf0cbf9d1fa0d2fa0d892ce98e7de31e /sharpd | |
parent | Merge pull request #7554 from donaldsharp/sockunion2hostprefix_watch_returns (diff) | |
download | frr-f8e6ada8821d5992e5680ff660fc9bd1691f8ae2.tar.xz frr-f8e6ada8821d5992e5680ff660fc9bd1691f8ae2.zip |
lib, sharpd, vtysh: When reading a file in for config send start/end indicators
When reading a file in for configuration, send start and end indicators
to interested parties.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sharpd/sharp_main.c b/sharpd/sharp_main.c index 4cd92c7f3..fe7f9851f 100644 --- a/sharpd/sharp_main.c +++ b/sharpd/sharp_main.c @@ -139,6 +139,16 @@ static void sharp_global_init(void) sg.nhs = list_new(); } +static void sharp_start_configuration(void) +{ + zlog_debug("Configuration has started to be read"); +} + +static void sharp_end_configuration(void) +{ + zlog_debug("Configuration has finished being read"); +} + int main(int argc, char **argv, char **envp) { frr_preinit(&sharpd_di, argc, argv); @@ -163,6 +173,8 @@ int main(int argc, char **argv, char **envp) master = frr_init(); + cmd_init_config_callbacks(sharp_start_configuration, + sharp_end_configuration); sharp_global_init(); sharp_nhgroup_init(); |