nautobot / nautobot-app-netbox-importer

Nautobot plugin to simplify data migration from NetBox
https://docs.nautobot.com/projects/netbox-importer/en/latest/
Other
21 stars 11 forks source link

import_netbox_json instead of import_netbox #125

Open moseisleydk opened 8 months ago

moseisleydk commented 8 months ago

Environment

Availability of "nautobot-server import_netbox" on the command line

Only nautobot-server import_netbox_json is available (without options).

Using this nautobot-server import_netbox_json gives:

nautobot@6589ea9ea190:/$ nautobot-server import_netbox_json /tmp/netbox_data.json 3.4.7 CommandError: Maximum NetBox version supported is 2.10.8 nautobot@6589ea9ea190:/$

Steps to Reproduce

I have installed nautobot in docker after the docs, its clean I have installed nautobot_netbox_importer 1.4.2 (pip install nautobot-netbox-importer in the container) and can see it in Naubot under plugins. as in https://docs.nautobot.com/projects/netbox-importer/en/latest/admin/install/#access-requirements I have exported a json out fron an existing NetBox 3.4.7

moseisleydk commented 8 months ago

`nautobot@6589ea9ea190:/$ nautobot-server help

Type 'nautobot-server help ' for help on a specific subcommand.

Available subcommands:

[auth] changepassword createsuperuser

[cacheops] cleanfilecache invalidate

[constance] constance

[contenttypes] remove_stale_contenttypes

[core] celery generate_secret_key generate_test_data post_upgrade start startplugin validate_models

[dcim] trace_paths

[django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver

[django_extensions] admin_generator clean_pyc clear_cache compile_pyc create_command create_jobs create_template_tags delete_squashed_migrations describe_form drop_test_database dumpscript export_emails find_template generate_password graph_models list_model_info list_signals mail_debug managestate merge_model_instances notes pipchecker print_settings print_user_for_session raise_test_exception reset_db reset_schema runjobs runprofileserver runscript runserver_plus set_default_site set_fake_emails set_fake_passwords shell_plus show_template_tags show_urls sqlcreate sqldiff sqldsn sync_s3 syncdata unreferenced_files update_permissions validate_templates

[django_jinja] makemessages

[django_rq] rqenqueue rqscheduler rqstats

[drf_spectacular] spectacular

[extras] fix_custom_fields nbshell remove_stale_scheduled_jobs renaturalize rqworker runjob webhook_receiver

[graphene_django] graphql_schema

[health_check] health_check

[nautobot_netbox_importer] import_netbox_json import_netbox_objectchange_json

[rest_framework] generateschema

[sessions] clearsessions

[social_django] clearsocial

[staticfiles] collectstatic findstatic runserver

[utilities] makemigrations migrate nautobot@6589ea9ea190:/$ `

chadell commented 8 months ago

@moseisleydk This project is being completely revamped to support the new Nautobot 2.x and NetBox 3.x. The current version only supports NetBox 2.x and Nautobot 1.x. Most of the work is already done (still in develop), and we are doing a few more enhancements before releasing the new version. It should be out in a few weeks.

moseisleydk commented 8 months ago

@chadell - Thanks for the info. I will sit thight and wait for it !

chadell commented 8 months ago

you can also give it a try, and use the code from develop. It's not covering everything, but it could give some good results

snaselj commented 7 months ago

Release of the new version is comming soon @moseisleydk, the latest changes are merged to the develop branch, if you want to give it a try.

To get dev environment running, you can follow instructions here:

https://github.com/nautobot/nautobot-app-netbox-importer/blob/develop/docs/dev/demo.md