Skip to content

Add render-config endpoint to virtualization model #698

Open
@mbreezy715

Description

@mbreezy715

pynetbox version

v7.4.0

NetBox version

v4.3.1

Feature type

New functionality

Proposed functionality

Hi,

I have implemented the ability to trigger a render-config for virtual machines by adding the render_config method to the virtualization model, mirroring the existing functionality for devices from the dcim model.

This feature behaves in the same manner as rendering a config for a device, returning a DetailEndpoint object. Use is similar to that of the device render_config:

vm = nb.virtualization.virtual_machines.get(123)
vm.render_config.create()

I've run into many instances where this feature would be valuable, and I believe it would be beneficial for other users as well.

Would you be interested in merging this feature upstream?

Use case

This feature exposes the existing NetBox API /api/virtualization/virtual-machines/{id}/render-config/ endpoint in pynetbox allowing for the rendering of configurations for virtual machines.

External dependencies

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity: lowRequires minimal effort to implementstatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions