Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide a way to configure netbox address and token via ENVs #47

@smktpd

Description

@smktpd

I have to work with multiple Netbox instances.
It'd be nice to be able to use ENVs to specify netbox address and token.
Currently, to be able to work with 2 instances I had to run nbcli init twice with different NBCLI_DIR and now have to specify NBCLI_DIR env in order to make nbcli work with desired netbox instance.

Since I have no per-netbox preferences for filter results limits and search_objects - the configs differ only by pynetbox.url and pynetbox.token.
I think it'd be a bit better for such a case to have a common init dir (and user_config.yml) and be able to switch between netbox instances just by changing ENVs like NBCLI_URL and NBCLI_TOKEN.

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