diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-04-15 14:34:03 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-04-16 18:07:54 +0200 |
commit | 4cebdb9bb858674980d2a04304c3197afd665f28 (patch) | |
tree | 45537be5fe9a7d4ccd194d38e4502ea8c0ef6f12 /ldpd/lde.c | |
parent | lib,zebra: add a session id for zapi sessions (diff) | |
download | frr-4cebdb9bb858674980d2a04304c3197afd665f28.tar.xz frr-4cebdb9bb858674980d2a04304c3197afd665f28.zip |
zebra,ldpd: use zapi client session id in LM apis
Use the zapi client session id in the label manager apis;
use the client struct directly in some code. Assign a session
id to ldpd's sync LM zapi session.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ldpd/lde.c')
-rw-r--r-- | ldpd/lde.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/lde.c b/ldpd/lde.c index ae883078d..2223e32f8 100644 --- a/ldpd/lde.c +++ b/ldpd/lde.c @@ -1756,6 +1756,7 @@ static void zclient_sync_init(unsigned short instance) zclient_sync->sock = -1; zclient_sync->redist_default = ZEBRA_ROUTE_LDP; zclient_sync->instance = instance; + zclient_sync->session_id = 1; /* Distinguish from main session */ zclient_sync->privs = &lde_privs; while (zclient_socket_connect(zclient_sync) < 0) { |