diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-15 11:27:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-15 11:27:15 +0200 |
| commit | bd9174f424bd33e75895160aa1f4a63dae795460 (patch) | |
| tree | e47218f871a6a2d6b5a21ddcb79878d643668b27 | |
| parent | 563c2cd95c427df04b747298d6fe855e0662f1b1 (diff) | |
| parent | c68246c069aa4ff6db1f688c391ecdc82ae058ff (diff) | |
Merge pull request #15156 from LabNConsulting/chopps/yang-mtu-32
yang: lib: interface MTUs can be larger than uint16
| -rw-r--r-- | lib/if.c | 2 | ||||
| -rw-r--r-- | yang/frr-interface.yang | 9 |
2 files changed, 6 insertions, 5 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); } /* diff --git a/yang/frr-interface.yang b/yang/frr-interface.yang index 012c96b600..fc5a290908 100644 --- a/yang/frr-interface.yang +++ b/yang/frr-interface.yang @@ -241,17 +241,18 @@ module frr-interface { } leaf mtu { - type uint16; + type uint32; description - "The size of the largest IPV4 packet that the interface - will send and receive."; + "The size of the largest IPV4 packet that the interface will send. + Normally this will never be larger than 65535; however, some devices + (e.g., vrf) can have larger values"; } leaf mtu6 { type uint32; description "The size of the largest IPV6 packet that the interface - will send and receive."; + will send."; } leaf speed { |
