Contact & ASN migration scripts for NetBox v3.2 #8975
jeremystretch
started this conversation in
General
Replies: 2 comments 4 replies
-
Both scritpts fail.
|
Beta Was this translation helpful? Give feedback.
4 replies
-
We are having an issue with running these scripts too:
Also seeing the same issue with the contact migration script
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks! As you may know, NetBox v3.2 is removing the legacy contact and ASN fields from the site model, in favor of the new independent Contact and ASN objects introduced in v3.1. A few people have asked about scripts to help migrate legacy data, and I finally got some time today to work on this.
I've published a module with two custom scripts, available here: https://github.com/netbox-community/migration-scripts These scripts can be installed in your current NetBox v3.1 deployment to assist in automatically migrating data from the legacy site fields to the new objects.
The scripts should address simple use cases fairly well, but as always tread with caution and do plenty of dry-runs.
Users are also strongly encouraged to modify local copies of these scripts to better suit their own needs. For example, you might want to exclude sites with certain roles, or skip a range of AS numbers that aren't used anymore. (Be sure to check out NetBox's custom scripts documentation before getting started.)
Anyway, hopefully these will come in handy as people get ready for NetBox v3.2!
Beta Was this translation helpful? Give feedback.
All reactions