netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Vlan name length limitation of 30 characters

Open Zanthras opened this issue 10 years ago • 6 comments

Not a huge deal, but why the limit of 30 not 32 characters on the VLAN model? The upper limit for IOS has historically been 32.

Zanthras avatar Jul 22 '16 23:07 Zanthras

We just happen to use a 30-character limit for most (all?) object names. AFAIK there's no official limit on the VLAN name length, since the name is never carried on the wire. (The exception to this is Cisco's proprietary VTP, which seems to enforce, or at least suggest, a 20-character maximum.)

I don't see any reason not to increase the VLAN name field to 32 characters.

jeremystretch avatar Jul 25 '16 13:07 jeremystretch

NX-os forces 32 character vlan limits until a later version enabled a feature to make it longer, ios pre 15 seems to silently truncate on 32 chars. But in any case you want me to create a pull request to raise it? (I have a number of vlans names at 32 chars which i would like to import without modification)

Zanthras avatar Jul 25 '16 15:07 Zanthras

Well, is 32 characters long enough?

jeremystretch avatar Jul 25 '16 16:07 jeremystretch

Im sure there are "interesting" deployments that have vlan names at extreme levels, But a smaller sane limit of say 128 that fits most? cases probably isnt bad.

Zanthras avatar Jul 25 '16 16:07 Zanthras

Based on some feedback I upped the name length to 64 characters in d241cce. Should be sufficient.

jeremystretch avatar Jul 25 '16 19:07 jeremystretch

Sounds good to me!

Zanthras avatar Jul 25 '16 19:07 Zanthras