diff options
| author | Christian Hopps <chopps@labn.net> | 2024-01-14 12:35:00 +0000 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-01-14 12:38:25 +0000 | 
| commit | c68246c069aa4ff6db1f688c391ecdc82ae058ff (patch) | |
| tree | 808087ad8ecce1f3792e22ba77391fcff3b2858e /lib/if.c | |
| parent | ef0ae6e815f4c1df792a9c924243709d258b5737 (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.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -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);  }  /*  | 
