summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorKaren Schoener <karen@voltanet.io>2021-06-17 15:26:36 +0200
committerKaren Schoener <karen@voltanet.io>2021-06-28 16:32:52 +0200
commit0b4124c18cb826849f18af58dbc712db7d14b993 (patch)
tree28ff0015d6f7f93ebc5585ca867686a4513a20c9 /isisd
parentMerge pull request #8932 from anlancs/fix-some-doc-warnings (diff)
downloadfrr-0b4124c18cb826849f18af58dbc712db7d14b993.tar.xz
frr-0b4124c18cb826849f18af58dbc712db7d14b993.zip
isisd, ospfd: update interface_link_params callback to check for change
Adding defensive code to the interface_link_params zebra callback to check if the link params changed before taking action. Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_zebra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c
index 0142e30b2..2c05cb827 100644
--- a/isisd/isis_zebra.c
+++ b/isisd/isis_zebra.c
@@ -145,10 +145,11 @@ static int isis_zebra_if_address_del(ZAPI_CALLBACK_ARGS)
static int isis_zebra_link_params(ZAPI_CALLBACK_ARGS)
{
struct interface *ifp;
+ bool changed = false;
- ifp = zebra_interface_link_params_read(zclient->ibuf, vrf_id);
+ ifp = zebra_interface_link_params_read(zclient->ibuf, vrf_id, &changed);
- if (ifp == NULL)
+ if (ifp == NULL || !changed)
return 0;
/* Update TE TLV */