Skip to content

[Feature Request] Add/Import CDP Cabling Data from pnics #350

Description

@Littlericket

Enabling CDP on the pnic displays some references which can be used to cable vhosts to switches, also can be used to add neighbour devices directly to netbox.

You can get the PhysicalNicCdpInfo info with QueryNetworkHint when quering the hostSystem -> configManager-> networkSystem and using the method queryNetworkHint (vmnicXX as parameter or empty) on the returned networkSystem. This will return a PhysicalNicHintInfo with a PhysicalNicCdpInfo below connectedSwitchPort.

Took me a while to find out. Hidden like the most secret information on earth.

The returned PhysicalNicCdpInfo can be used to import network devices and cables to the vhost automatically, if cdp is enabled.

I would suggest that this feature needs to be opt-in, if the infrastructure below the vcenter has cdp enabled through all devices.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions