A RackTables to NetBox migration utility. This tiny tool should be used to migrate your existing RackTables installations towards NetBox.
Reccomended racktables source version 0.21.X
- Racktables allows an object to be "split" across U's, netbox does not. split these up in racktables pre-migration. (eg, a device in U1 and U3, but not in U2)
- Netbox needs device templates, you will need to populate hardware_map.yaml with mappings between racktables device types to nb device types
unzip racktables2netbox.zip
cd racktables2netbox
cp conf.sample.yaml conf.yaml
cp hardware_map.yaml.sample hardware_map.yaml
- Create a NetBox API Token
- Create a RackTables read-only database user
- edit
conf.yaml
regarding your needs (URLs, credentials, ...) - run
python3 racktables2netbox.py
- optional: to get back to a clean NetBox installation run
python3 clean_netbox.py
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Thanks to Device42 who have already written a RackTables to Device42 migration utility. @goebelmeier was able to use it as a starting point to make this migration script. I (ITJamie) forked it and added more data migrations
racktables2netbox is licensed under MIT license. See LICENSE.md for more information.