Skip to content

Update STRIP_KEYWORDS to cover additional items #131

@vpogrebi

Description

@vpogrebi

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.

Use Case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions