-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Environment
- Nautobot version: 2.4.11
- nautobot-welcome-wizard version: 2.0.0
Proposed Functionality
Testing DeviceType and ModuleType import functionality using entire Nautobot devicetype library, a number of additional keywords has been identified that need to be added to STRIP_KEYWORDS:
STRIP_KEYWORDS = {
"interfaces": ["poe_mode", "poe_type", "enabled", "comments", "rf_role"],
"console-ports": ["mgmt_only"],
"power-ports": ["weight", "weight_unit"],
"module-bays": ["comments"]
}
A thought to consider: there is really no way to predict or foresee what all the possible attributes may be added within YAML configuration files; maybe it is easier (and definitely much more reliable) to replace an exception dict STRIP_KEYWORDS with the acceptance dict ALLOWED_KEYWORDS, passing through only known attributes that are part of the corresponding models.