summaryrefslogtreecommitdiffstats
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-10-17 18:23:16 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2022-10-19 08:40:01 +0200
commit6082fb4249ce59b5e19b2257d78c4d91316a11bc (patch)
treef4d192756a1d77cba4db46bf888e3fb5e0c73ddc /zebra/zapi_msg.c
parentMerge pull request #12124 from anlancs/ospfd-len (diff)
downloadfrr-6082fb4249ce59b5e19b2257d78c4d91316a11bc.tar.xz
frr-6082fb4249ce59b5e19b2257d78c4d91316a11bc.zip
zebra: upon srte leave, flush sr policies
Upon srte leave, flush SR policies. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index 761ba789b..3461391e9 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -2605,8 +2605,10 @@ static void zread_sr_policy_set(ZAPI_HANDLER_ARGS)
return;
policy = zebra_sr_policy_find(zp.color, &zp.endpoint);
- if (!policy)
+ if (!policy) {
policy = zebra_sr_policy_add(zp.color, &zp.endpoint, zp.name);
+ policy->sock = client->sock;
+ }
/* TODO: per-VRF list of SR-TE policies. */
policy->zvrf = zvrf;