summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-14 13:35:00 +0100
committerChristian Hopps <chopps@labn.net>2024-01-14 13:38:25 +0100
commitc68246c069aa4ff6db1f688c391ecdc82ae058ff (patch)
tree808087ad8ecce1f3792e22ba77391fcff3b2858e /lib/if.c
parentMerge pull request #15152 from LabNConsulting/chopps/doc-mgmtd-convert-update (diff)
downloadfrr-c68246c069aa4ff6db1f688c391ecdc82ae058ff.tar.xz
frr-c68246c069aa4ff6db1f688c391ecdc82ae058ff.zip
yang: lib: interface MTUs can be larger than uint16
Technically changing a leaf from uint16 to uint32 is a NBC change; however, increasing this to uint32 should not break anyone in reality. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index a68f7f21e..1328e2187 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1677,7 +1677,7 @@ lib_interface_state_mtu_get_elem(struct nb_cb_get_elem_args *args)
{
const struct interface *ifp = args->list_entry;
- return yang_data_new_uint16(args->xpath, ifp->mtu);
+ return yang_data_new_uint32(args->xpath, ifp->mtu);
}
/*