Replies: 6 comments 4 replies
-
@ipspace does the hostname include the domain name part? I assume there's not auto-parsing of a FQDN in to hostname / domain. This would lead me to want 64 characters for the limit. |
Beta Was this translation helpful? Give feedback.
-
I don't see any good reason to use longer names for lab testing topologies, to me "all identifiers should start with a-z and are limited to at most 16 characters" is a decent general approach. We may want to make them case insensitive, and normalize to all lower case for example |
Beta Was this translation helpful? Give feedback.
-
ok for me as well ;) |
Beta Was this translation helpful? Give feedback.
-
Node names can already be longer (configurable default), and it's pretty easy to add the same functionality to other objects that might need longer names. |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm using netlab incorrectly, but I'm trying to build a one to one hardware out of the loop test environment that's representative of my entire LAN, inclusive of hostnames, and I'm running into a road block here; the 16 character limit for node names, specifically links. I saw and am using MAX_NODE_ID_LENGTH, but that doesn't seem to apply to link definitions. I'm in the unfortunate position of having some switches that have names as long as 19 characters and can't seem to use the full name. Beyond getting clever with substrings is there any way to have a link definition be longer than 16 characters? |
Beta Was this translation helpful? Give feedback.
-
Looks like we solved this one |
Beta Was this translation helpful? Give feedback.
-
I added new "identifier" data type -- an alphanumeric string up to 16 characters long -- and use it to validate all sorts of names (nodes, VLANs, VRFs, address pools...). This approach nicely solves a few gotchas like invalid node names (that might trip some network devices) or using numbers as VLAN names.
One of the existing test topologies broke because it used very long VLAN names, so I fixed that, but it made me wonder: is there a good reason to support longer names, and if so, what would a sensible maximum length be?
Any feedback @ssasso @jbemmel @ddutt @petercrocker?
FYI: the VRF names were already limited to 16 characters because they're used as Linux device names. I'm pretty positive there might be a few network devices out there that don't support infinitely-long hostnames or VLAN names either ;)
Beta Was this translation helpful? Give feedback.
All reactions