summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSai Gomathi N <nsaigomathi@vmware.com>2023-08-30 05:45:18 -0700
committerSai Gomathi N <nsaigomathi@vmware.com>2023-08-30 06:02:12 -0700
commitdd1e34eff498985d8af26cfc329e751a4b022a9b (patch)
treeab28dced85bab54493a071d4b078368a324013ad
parent497584ac4825a283c2edbe4a55738020ebe7113e (diff)
pimd,pim6d: Resolving the YANG datatype Inconsistency for PIM Hello Interval
The YANG specification currently designates a uint8 data type for the hello interval, despite the CLI documentation (ip pim hello (1-65535) [(1-65535)]) indicating a maximum value of 65535. To address this inconsistency, updating the data type to uint16 allowing for a maximum value for hello intervals. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
-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 30d84710e6..be05b69401 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 105dab895d..e9b3f67507 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";