summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-09-19 17:36:04 +0200
committerGitHub <noreply@github.com>2023-09-19 17:36:04 +0200
commite7f0bbb1980660bdcf4595e88b60eadd41a0a172 (patch)
treee73ce296780d78f942779869a0bd62715778013d
parentMerge pull request #14414 from opensourcerouting/coverity-assume (diff)
parentpimd,pim6d: Resolving the YANG datatype Inconsistency for PIM Hello Interval (diff)
downloadfrr-e7f0bbb1980660bdcf4595e88b60eadd41a0a172.tar.xz
frr-e7f0bbb1980660bdcf4595e88b60eadd41a0a172.zip
Merge pull request #14299 from SaiGomathiN/14286
pimd,pim6d: Resolving the YANG datatype Inconsistency for PIM Hello Interval
-rw-r--r--pimd/pim_nb_config.c2
-rw-r--r--yang/frr-pim.yang2
2 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c
index 30d84710e..be05b6940 100644
--- a/pimd/pim_nb_config.c
+++ b/pimd/pim_nb_config.c
@@ -1633,7 +1633,7 @@ int lib_interface_pim_address_family_hello_interval_modify(
ifp = nb_running_get_entry(args->dnode, NULL, true);
pim_ifp = ifp->info;
pim_ifp->pim_hello_period =
- yang_dnode_get_uint8(args->dnode, NULL);
+ yang_dnode_get_uint16(args->dnode, NULL);
pim_ifp->pim_default_holdtime = -1;
break;
}
diff --git a/yang/frr-pim.yang b/yang/frr-pim.yang
index 105dab895..e9b3f6750 100644
--- a/yang/frr-pim.yang
+++ b/yang/frr-pim.yang
@@ -343,7 +343,7 @@ module frr-pim {
}
leaf hello-interval {
- type uint8 {
+ type uint16 {
range "1..max";
}
default "30";