forked from Mirror/frr
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>
This commit is contained in:
parent
ef0ae6e815
commit
c68246c069
2
lib/if.c
2
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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -241,17 +241,18 @@ module frr-interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf mtu {
|
leaf mtu {
|
||||||
type uint16;
|
type uint32;
|
||||||
description
|
description
|
||||||
"The size of the largest IPV4 packet that the interface
|
"The size of the largest IPV4 packet that the interface will send.
|
||||||
will send and receive.";
|
Normally this will never be larger than 65535; however, some devices
|
||||||
|
(e.g., vrf) can have larger values";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf mtu6 {
|
leaf mtu6 {
|
||||||
type uint32;
|
type uint32;
|
||||||
description
|
description
|
||||||
"The size of the largest IPV6 packet that the interface
|
"The size of the largest IPV6 packet that the interface
|
||||||
will send and receive.";
|
will send.";
|
||||||
}
|
}
|
||||||
|
|
||||||
leaf speed {
|
leaf speed {
|
||||||
|
|
Loading…
Reference in a new issue