grnet / maas2netbox

Enrich NetBox from MaaS gathered information
GNU General Public License v3.0
22 stars 6 forks source link

facing issue in site name #24

Closed GargSaab closed 1 year ago

GargSaab commented 1 year ago

what would be the site name in env.list file? we had tried netbox site name but it is giving the following error.

pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'site': ['Select a valid choice. Lab45-5g-edge is not one of the available choices.']}

skatsaounis commented 1 year ago

Hi @GargSaab! This tool here is working per NetBox site. Being more specific, it can enrich NetBox device information from information discovered by MaaS but one NetBox site at the time.

The SITE applies a filter to NetBox resources. So if I want to work with all devices of e.g. Lab45 site, I have to set SITE=Lab45. The tool will filter out devices of all the other sites and will use only those that have their site set to Lab45 in NetBox.