Giter Site home page Giter Site logo

Comments (10)

glennmatthews avatar glennmatthews commented on June 18, 2024

I see that you opened this against nautobot-netbox-importer 1.0.0. Would you mind retesting this against version 1.0.1? I'm unable to reproduce this issue with 1.0.1 and the JSON files you provided.

from nautobot-app-netbox-importer.

pke11y avatar pke11y commented on June 18, 2024

Oh sorry Glenn. Thanks a typo. Issue updated.
nautobot-netbox-importer version: 1.0.1

I've added an edited version of the dump. Can you try import this file db_dump_minimal_indented_edited.json and see if it reproduces the error please? I used this file to manually remove the custom field requirements and also avoid the invalid default value error.

from nautobot-app-netbox-importer.

glennmatthews avatar glennmatthews commented on June 18, 2024

Thanks for the update! With the edited JSON file you provided, I still don't see any duplicate-object warnings on VLAN Groups, though I do see some for Racks and for VLANs, as well as a single potential duplicate IP address; I'll investigate these more closely as time permits.

from nautobot-app-netbox-importer.

pke11y avatar pke11y commented on June 18, 2024

OK, I've added another data dump db_dump_minimal_indented_edited_2.json to see if that makes a difference.

For ref, I'm getting duplicates for the following models with the db_dump_minimal_indented_edited_2.json dataset:

  • rack
  • vlan
  • ipaddress
  • vlangroup

from nautobot-app-netbox-importer.

glennmatthews avatar glennmatthews commented on June 18, 2024

Sorry for the delay! I can confirm that with the latest dump you provided that I can see the same duplicate warnings. This looks to be another instance of the more general issue I'm tracking in #21 - basically the problem is that the database considers two records with a NULL value in one of their unique identifier fields (in your data, in the case of Racks, the group field; in the case of VLANs, the group field as well, etc.) to be distinct (because NULL != NULL in database terms), but Python considers them to be non-unique (because it is representing NULL as None, and None == None in Python). Some design work will be required to figure out how to address this, which I'm working on now.

from nautobot-app-netbox-importer.

pke11y avatar pke11y commented on June 18, 2024

from nautobot-app-netbox-importer.

glennmatthews avatar glennmatthews commented on June 18, 2024

Nautobot 1.0.0b3 has been released, and correspondingly, so has version 1.1.0 of this importer plugin, which includes fix #28. I expect that that fix should resolve this issue as well. If you have the chance to re-test with Nautobot 1.0.0b3 + nautobot-netbox-importer 1.1.0 and let me know how it goes, I'd appreciate it!

from nautobot-app-netbox-importer.

pke11y avatar pke11y commented on June 18, 2024

from nautobot-app-netbox-importer.

chadell avatar chadell commented on June 18, 2024

@pke11y did you try it?

from nautobot-app-netbox-importer.

pke11y avatar pke11y commented on June 18, 2024

Difficult to recall, but I think it's say to assume the issue was fixed. We did a lot of testing around that time.

from nautobot-app-netbox-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.