Skip to content

[Feature]: Add prefix string to groups and hostvars output by nb_inventory plugin #959

@h3po

Description

@h3po

NetBox version

v3.4.6

Feature type

Change to existing Plugin

Proposed functionality

Add an option to the inventory plugin to add a string prefix (such as "netbox_") to group names and hostvars, so for example "role_switch" becomes "netbox_role_switch" and "primary_ipv4" becomes "netbox_primary_ipv4".

Use case

Preventing naming collisions when using netbox dynamic inventory alongside static or other dynamic inventory plugins - other dynamic inventory sources already do this.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions