nautobot-app-netbox-importer
nautobot-app-netbox-importer copied to clipboard
Issue in migrating .json file from Netbox 3.7.8 to Nautobot v2 using netbox impoter
I am reaching out regarding an issue encountered during the migration process from NetBox to Nautobot as I am pretty new in this domain. Allow me to provide detailed insights into the situation and the steps taken thus far.
Background: In the migration process, the data from NetBox has been exported into a .dump file. Subsequently, this data was loaded into NetBox, and a JSON file was extracted. The intention is to transfer this data into Nautobot, facilitating a seamless transition between the two platforms.
Current Challenge: During the migration process into Nautobot, a hurdle has arisen due to the requirement of the "--bypass data validation" flag. While attempting to execute the migration without utilizing this flag, the process encounters constraints, impeding the successful transfer of data.
Netbox v3.7.8 Nautobot v2.X
Issue:
Is there anything I am missing out? Steps that were taken:
sudo -u postgres psql -c 'drop database netbox'
sudo -u postgres psql -c 'create database netbox'
sudo -u postgres psql -c 'grant all privileges on database netbox to netbox
sudo -u postgres psql -c 'grant all privileges on database netbox to netbox'
sudo -u postgres psql netbox < netbox-postgresql.dump
sudo /opt/netbox/upgrade.sh
touch /tmp/netbox_data.json
cd /opt/netbox/netbox/
python3 manage.py dumpdata --traceback --format=json --exclude admin.logentry --exclude sessions.session --exclude extras.ObjectChange --exclude extras.Script --exclude extras.Report --exclude django_rq --exclude extras.imageattachment > /tmp/netbox_data.json
On Nautobot instance the JSON file was transffered using scp and data was dumped:
nautobot-server import_netbox --dry-run netbox_data.json
Any suggestion is appreciated. Thank you in advance.