Giter Site home page Giter Site logo

racktables2netbox's Introduction

racktables2netbox

A RackTables to NetBox migration utility. This tiny tool should be used to migrate your existing RackTables installations towards NetBox.

!!WARNING!! This is what worked for me and our setup, this will most likely not work on your setup.

Reccomended racktables source version 0.21.X

Known Issues

  1. 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)
  2. Netbox needs device templates, you will need to populate hardware_map.yaml with mappings between racktables device types to nb device types

Installation

unzip racktables2netbox.zip
cd racktables2netbox
cp conf.sample.yaml conf.yaml
cp hardware_map.yaml.sample hardware_map.yaml

Usage

  1. Create a NetBox API Token
  2. Create a RackTables read-only database user
  3. edit conf.yaml regarding your needs (URLs, credentials, ...)
  4. run python3 racktables2netbox.py
  5. optional: to get back to a clean NetBox installation run python3 clean_netbox.py

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Credits

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. ITJamie forked it and added more data migrations. I am trying to get it to work for our operations.

License

racktables2netbox is licensed under MIT license. See LICENSE.md for more information.

racktables2netbox's People

Contributors

itjamie avatar fmotzet avatar goebelmeier avatar bdrwx avatar kani999 avatar

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.