Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Client Error #43

Closed
PTarakanov opened this issue May 10, 2020 · 2 comments
Closed

404 Client Error #43

PTarakanov opened this issue May 10, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@PTarakanov
Copy link

PTarakanov commented May 10, 2020

Hello!
I just started using Netbox and Netprod importer, so, maybe I'm doing something wrong, but when I try

netbox-netprod-importer import -u admin -p -f devices.yml

then I get

ERROR: netbox_importer: Error when polling device SWITCHNAME: 404 Client Error: Not Found for url: https://netbox-01/api/dcim/_choices/?limit=50 --
and HTML body below.

Files:

root@lab-dc1-netbox-01:~/.config/netbox-netprod-importer# cat devices.yml 
SWITCHNAME:
    driver: "ios"
    discovery_protocol: "cdp"
    target: "10.x.x.21"
root@lab-dc1-netbox-01:~/.config/netbox-netprod-importer# cat config.yml 
########################
#### Global options ####
########################

## Be more verbose ##
verbose: None

## Disable ssl warnings in urllib3 ##
disable_ssl_warnings: True


################
#### Netbox ####
################

netbox:
  # Netbox API URL
  url: "https://netbox-01/api"
  # username: "admin"
  # password: "nonono"
  # or to use a token instead
  token: "4acbf1108516c0bcdfe136cf3a07a6c5835160db"


##########################
#### Interconnections ####
##########################

# On some devices, LLDP will expose the host FQDN. If devices are stored on
# Netbox only by their hostname, the interconnection process will not be able
# to find them. Fill this list to strip the domain name from exposed names.
remove_domains:
  - "domain.com"

# vim: set ts=2 sw=2:
@aruhier
Copy link
Contributor

aruhier commented May 10, 2020

Hi,
Thanks for your bugreport. It is linked to issue #39, as this tool is not compatible with Netbox >= 2.8 yet.

@aruhier aruhier added the duplicate This issue or pull request already exists label May 10, 2020
@aruhier
Copy link
Contributor

aruhier commented May 10, 2020

Sorry I'm closing this one to avoid a duplicate.

@aruhier aruhier closed this as completed May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants