summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-14 12:35:00 +0000
committerChristian Hopps <chopps@labn.net>2024-01-14 12:38:25 +0000
commitc68246c069aa4ff6db1f688c391ecdc82ae058ff (patch)
tree808087ad8ecce1f3792e22ba77391fcff3b2858e /lib/if.c
parentef0ae6e815f4c1df792a9c924243709d258b5737 (diff)
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 a68f7f21e1..1328e21874 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);
}
/*