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

Duplicate address warning on VRRP addresses #27

Closed
ggiesen opened this issue Apr 1, 2021 · 2 comments
Closed

Duplicate address warning on VRRP addresses #27

ggiesen opened this issue Apr 1, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ggiesen
Copy link

ggiesen commented Apr 1, 2021

Environment

  • Python version: 3.6.8
  • Nautobot version: 1.0.0b2
  • nautobot-netbox-importer version: 1.0.1

Expected Behavior

Import data from NetBox 2.10.7

Observed Behavior

14:37:39 Apparent duplicate object encountered. This may be an issue with your source data or may reflect a bug in this plugin. model=ipaddress "10.99.21.129/26__{'name': 'MGMT', 'rd': '64512:', 'tenant': {'name': 'Tenant'}}__{'name': 'Tenant'}__None__None" model_id=10.99.21.129/26__{'name': 'MGMT', 'rd': '64512:', 'tenant': {'name': 'Tenant'}}__{'name': 'Tenant'}__None__None

Note the above address is indeed duplicated, as it is a VRRP address, and VRRP addresses are permitted to be duplicated in NetBox

Steps to Reproduce

  1. $ sudo -u postgres psql
  2. postgres=# DROP DATABASE nautobot;
  3. postgres=# CREATE DATABASE nautobot;
  4. postgres=# GRANT ALL PRIVILEGES ON DATABASE nautobot TO nautobot;
  5. $ sudo systemctl restart nautobot nautobot-worker
  6. $ nautobot-server migrate
  7. $ nautobot-server createsuperuser
  8. $ nautobot-server collectstatic
  9. $ nautobot-server check
  10. $ python netbox/manage.py dumpdata --traceback --format=json --exclude admin.logentry --exclude sessions.session --exclude extras.ObjectChange --exclude extras.Script --exclude extras.Report > /tmp/netbox_data.json
  11. $ nautobot-server import_netbox_json /tmp/netbox_data.json 2.10.5
@glennmatthews
Copy link
Contributor

Thanks for the report!

@glennmatthews
Copy link
Contributor

I believe this issue to have been fixed (most likely by #28) in the latest version of this plugin. If you're still encountering it, feel free to comment and I'll re-open this issue for further investigation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants