diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-09 14:34:42 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-27 09:09:35 -0500 | 
| commit | e1a1880de3e9da60f72198924fe3407f7bbc975d (patch) | |
| tree | cbf777f55ae78c3833290b4213dbd68b53ef6263 /ldpd | |
| parent | 7ea7b86e2bab5309f5d431806c9149bdd2ee2ead (diff) | |
*: Make zapi route install Notifications optional
Allow the higher level protocol to specify if it would
like to receive notifications about it's routes that
it has installed.
I've purposely made it part of zclient_new_notify because
we need to track the routes on a per daemon basis only.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ldpd')
| -rw-r--r-- | ldpd/lde.c | 2 | ||||
| -rw-r--r-- | ldpd/ldp_zebra.c | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/lde.c b/ldpd/lde.c index 8122b88cca..b597d967d7 100644 --- a/ldpd/lde.c +++ b/ldpd/lde.c @@ -1618,7 +1618,7 @@ static void  zclient_sync_init(u_short instance)  {  	/* Initialize special zclient for synchronous message exchanges. */ -	zclient_sync = zclient_new(master); +	zclient_sync = zclient_new_notify(master, &zclient_options_default);  	zclient_sync->sock = -1;  	zclient_sync->redist_default = ZEBRA_ROUTE_LDP;  	zclient_sync->instance = instance; diff --git a/ldpd/ldp_zebra.c b/ldpd/ldp_zebra.c index 8fe51cb9d1..e703a9ff61 100644 --- a/ldpd/ldp_zebra.c +++ b/ldpd/ldp_zebra.c @@ -513,7 +513,7 @@ void  ldp_zebra_init(struct thread_master *master)  {  	/* Set default values. */ -	zclient = zclient_new(master); +	zclient = zclient_new_notify(master, &zclient_options_default);  	zclient_init(zclient, ZEBRA_ROUTE_LDP, 0, &ldpd_privs);  	/* set callbacks */  | 
