Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Extends the netbox client constructor to allow kwargs #19

@fsperling

Description

@fsperling

NetBox Python version

v0.1.6

NetBox version

v3.6.4

Feature type

Change to existing functionality

Proposed functionality

Allow passing params from the netbox client to the rest client.

It is possible to configure the requests session in the rest client
https://github.com/netbox-community/netbox-python/blob/main/netbox_python/rest.py#L39

Unfortunately it is not possible to get any params there because the netbox client doesn't support kwargs
https://github.com/netbox-community/netbox-python/blob/main/netbox_python/netbox.py#L25

Use case

It would make it possible to configure the requests session e.g. set verify=false or other settings.

External dependencies

No response

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