NetBox version
v4.5.2
Feature type
Change to existing functionality
Proposed functionality
The {module_path} placeholder (introduced in #21436) currently joins module bay positions with a hardcoded / separator (MODULE_TOKEN_SEPARATOR in dcim/constants.py). This works well for the common <unit>/<slot>/<port> naming convention used by most modern switches and routers, but some hardware uses different separators:
: for channelized interfaces (e.g. 1/2:3)
- for certain legacy platforms
. for sub-interface style naming
It would be useful to allow the separator to be configurable, either:
- Per-template: A separator field on component templates that use
{module_path}, or
- Per-ModuleType: A separator property on the ModuleType itself, or
- Globally: A configurable setting (though this is the least flexible option)
Justification
This was raised during review of #21436 by @sleepinggenius2 and @arthanson. The current constant-based approach was chosen deliberately to keep the initial {module_path} implementation simple, with the expectation that configurability could be added as a follow-up.
Related
NetBox version
v4.5.2
Feature type
Change to existing functionality
Proposed functionality
The
{module_path}placeholder (introduced in #21436) currently joins module bay positions with a hardcoded/separator (MODULE_TOKEN_SEPARATORindcim/constants.py). This works well for the common<unit>/<slot>/<port>naming convention used by most modern switches and routers, but some hardware uses different separators::for channelized interfaces (e.g.1/2:3)-for certain legacy platforms.for sub-interface style namingIt would be useful to allow the separator to be configurable, either:
{module_path}, orJustification
This was raised during review of #21436 by @sleepinggenius2 and @arthanson. The current constant-based approach was chosen deliberately to keep the initial
{module_path}implementation simple, with the expectation that configurability could be added as a follow-up.Related
{module_path}){module_path})