Skip to content

[Feature]: primary_ip4 field returned by nb_inventory plugin should include netmask length  #931

@mkurjanski

Description

@mkurjanski

NetBox version

v3.4.2

Feature type

Change to existing Plugin

Proposed functionality

Currently nb_inventory returns primary_ip4 field after truncating the prefix length information. In my opinion more detailed information is better and the prefix length should be preserved.

Use case

Currently if I want to look up the primary ipv4 IP information from the host I have to run separate lookup calls to find the netmask information for that IP. If nb_inventory plugin returned this information by default that would remove the need for additional API calls.

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