jeremyschulman / ipf-netbox

IP Fabric - Netbox Toolkit
Apache License 2.0
7 stars 3 forks source link

NetBox and IPF Config #18

Open Mark32 opened 3 years ago

Mark32 commented 3 years ago

Hi, where/how do you define the ip, credentials etc for each platform?

For NetBox I see a setup.env in devtest-env but not sure how that is used once configured. There is also a const.py but also doesn't have the IPF defined. So actually not sure what to actually configure and where.

Please can I get some quick and dirty instructions for configuring/using please?

Thanks Mark

jeremyschulman commented 3 years ago

@Mark32 - my apologies for the delay responding. This tool requires a TOML based configuration file; the same as in the netcfgbu project. The additional section for ipf-netcfgbu is:

[ipfabric]
    server_url = "$IPF_ADDR"
    credentials.username = "$IPF_USERNAME"
    credentials.password = "$IPF_PASSWORD"

The environment variables can be of your choosing; I just happen to name them as above.

Hope this helps!