Skip to main content
Railyard
DocsLearnAPI referenceContact
OverviewVideo tutorials
Getting startedReference designsThe estate modelRacks & rack typesDevices & the libraryStore roomDevice rolesStructured cablingPower & thermalDesign reviewCollaborationExportNetBox & NautobotPlans & billingKeyboard shortcutsAPI & MCP
Ask / report a bug ↗Roadmap ↗

NetBox & Nautobot

Start from the estate you have, and keep the DCIM in step with the design.

Sync runs on your side

Railyard's servers never connect to your NetBox or Nautobot: they usually sit on an internal network with no route in from outside, and they should stay that way. Instead, three open-source tools (Apache-2.0) run inside your network and talk to Railyard's API with a personal access token. They make ordinary HTTPS requests out to Railyard, so there is nothing to open in your firewall, and your DCIM's own credentials never reach Railyard.

  • Import into Railyard: bring a NetBox site or Nautobot location in as a new project, with its racks, device types, devices, ports, cables and power, and refresh it later without losing what you designed.
  • Apply a design: create and update the design's sites, locations, racks, device types, devices, ports and cables in NetBox or Nautobot, changing only the objects the tool created.

All three are in early development. They write to your DCIM, so back it up, start with a dry run (the default) and try them on a copy before pointing them at production.

The tools

ToolRunsSupports
NetBox pluginInside NetBox, as two NetBox jobs under Plugins › Railyard: Sync from Railyard and Import into RailyardNetBox 4.5, 4.6 or 4.7, on Python 3.12 or later
Nautobot appInside Nautobot, as two Nautobot jobs: Export from Railyard and Import into RailyardNautobot 2.3 or 2.4, on Python 3.12
railyard-syncOn any machine that can reach both, as a command-line tool; it is also the library the plugin and app shareNetBox 4.0 to 4.6 and Nautobot 2.0 to 2.4, on Python 3.12 or later

Because the plugin, the app and the command line share railyard-sync, they recognise each other's work: an estate imported by the plugin can be refreshed from the command line, and a design applied by one is updated by the other, as long as both are given the same Railyard address.

Installing

  • railyard-sync is not on PyPI yet. With Python 3.12 or later, install it from GitHub with pip install git+https://github.com/railyard-sh/railyard-sync. Its usage covers every option.
  • The NetBox plugin installs into NetBox's virtual environment (it brings railyard-sync with it). Add netbox_railyard to PLUGINS and set its Railyard address, its token file and the organisations it may reach in PLUGINS_CONFIG. Install steps and the NetBox permissions each job needs are in its README.
  • The Nautobot app installs with pip install "nautobot-app-railyard @ git+https://github.com/railyard-sh/nautobot-app-railyard". Add nautobot_railyard to PLUGINS, configure it in nautobot_config.py, run nautobot-server post_upgrade, restart Nautobot and its workers, and enable the two jobs (Nautobot installs new jobs disabled). Install steps and the Nautobot permissions are in its README.

Each tool talks to https://railyard.sh unless told otherwise. For a self-hosted Railyard, give it your server's address: --railyard-url on the command line, railyard_url in the plugin or app.

The personal access token

Every tool signs in to Railyard with a personal access token. Create one under User settings › API tokens (see API & MCP), and choose its access:

  • Read and write to import: the import creates and saves the project, and asks Railyard to check it first.
  • Read only is enough to apply a design: the tool only reads the sync document.

A token expires (90 days unless you choose 7 to 365), so rotate it before then: create a new one, replace it where the tool reads it, then revoke the old one. The plugin and app use one token for every NetBox or Nautobot user who runs their jobs, so create theirs as a dedicated Railyard user rather than a person: the viewer role is enough to apply designs, and importing needs editor in the organisations it imports into. Keep the token in a file or secret readable only by NetBox or Nautobot, and set the organisations (and, if you like, projects) the jobs may reach. Your DCIM's own API token is separate: a read-only one is enough for railyard-sync's import, and the plugin and app need none, since they run inside NetBox or Nautobot as the user who started the job.

A 401 from Railyard means the token is wrong, revoked or expired; a 403 means it works but its user may not read (or, for an import, change) that organisation or project. An organisation's owners can switch tokens off, and an organisation that requires a particular sign-in admits only tokens created while signed in that way.

Importing an estate

In Railyard, New project › Import › From NetBox or Nautobot points to these tools and the token page; the project itself is created by the import when you run it. With the NetBox plugin, open Plugins › Railyard › Import into Railyard; with the Nautobot app, run its Import into Railyard job. On the command line:

  • railyard-sync import netbox --netbox-url https://netbox.example.com --site ldn1 --org my-org --name "LDN1 baseline" with NETBOX_TOKEN and RAILYARD_TOKEN set in the environment (tokens are never read from the command line). Repeat --site, or pass --all-sites, to bring several sites into one estate.
  • railyard-sync import nautobot --nautobot-url https://nautobot.example.com --location LDN1 --org my-org --name "LDN1 baseline" with NAUTOBOT_TOKEN and RAILYARD_TOKEN. Each location you name becomes a data centre, the locations below it its rooms and rows.

Locations become spaces, then racks, device types (matched to Railyard's device library where they can be, otherwise built from the DCIM's templates), racked and 0U devices with their ports and power inlets, data cables, and power cables to PDU outlets. Power feeds set each rack's power capacity. What Railyard does not model (unracked and child devices, modules, console ports, circuits, power panels and feeds) is listed in the report rather than dropped silently. Railyard checks the document before it is saved, and a dry run (--dry-run, or the job's Dry run box) shows all of this without saving.

Refreshing. Every imported object keeps an id derived from its NetBox id or Nautobot UUID, so running the import again on the same estate (--project in place of --name) merges the DCIM's changes into it. What you designed in Railyard is kept; objects deleted in the DCIM are reported and removed only when you allow deletes. The estate is saved against the revision it was merged into, so an edit made in Railyard meanwhile is never overwritten.

Rack limits apply. An estate holds up to 25 racks on Community (see Plans & billing). An import that would pass the limit is refused with an upgrade message; it never imports part of a site.

Applying a design

Instead of importing a bundle after each change, the tools apply the saved design to the DCIM through its API. With the NetBox plugin, open Plugins › Railyard › Sync from Railyard; with the Nautobot app, run Export from Railyard; on the command line, railyard-sync export netbox --org my-org --project ldn1-design --netbox-url https://netbox.example.com (or export nautobot with --nautobot-url) previews the changes, and --apply writes them.

Their source is Railyard's netbox-sync or nautobot-sync document: the objects of Railyard's own NetBox or Nautobot bundle as JSON, written for the NetBox release you run, each with the Railyard id it came from. So the DCIM gets exactly Railyard's names, statuses and cabling plan, and a rack or device renamed in Railyard is renamed in place rather than added again. A merge request's draft can be applied instead of main (--change-request, or the job's Merge request field).

  • Every object the tool creates carries the project's ownership tag, RY:<project name> (<id>), and only objects with that tag are ever updated or deleted.
  • An object that already exists (a site, a rack, a manufacturer or device type) is used as it is and never changed. One that would clash with an object the tool does not own, such as a device of the same name or a port already cabled, is skipped and reported.
  • Deletes are opt-in. Without them, owned objects that are gone from Railyard are listed as stale and kept, and even with them nothing the tool does not own is deleted or disconnected.

The sync documents are deliverables. They are paid exactly like the NetBox and Nautobot bundles: on a hosted service the estate needs a Project Pass or a Pro, Team or Partner plan, and its rack count must be within the plan's limit. Community does not include them (it previews a bundle on one rack, but the sync documents have no preview). Without one, Railyard refuses with the plans that would allow it and nothing is written to your DCIM. A self-hosted Railyard running without billing serves them for every estate. Importing is not a deliverable: any plan can import, within its rack limit.

Without the tools

You don't need any of them to use Railyard with NetBox or Nautobot. Export's NetBox and Nautobot bundles are CSV files to load with the DCIM's own bulk import (see Export), and Import from spreadsheet reads NetBox's device and cable CSVs as they are (see Getting started).

RailyardData-centre design, before the DCIM.

Who it's for

  • Data centre design for integrators and consultancies
  • Colocation cage and suite design for sales engineers
  • Data centre migration planning
  • Rack planning without Visio and Excel
  • NetBox Branching, Nautobot Design Builder or Railyard

Guides

  • Rack elevation planning
  • Structured cabling planning
  • Rack power planning
  • NetBox and Nautobot export
  • Data centre floor planning
DocsLearnAPI referenceFeedbackWhat's newRoadmapTermsPrivacyDPASecurityProcurementAccessibilityContact
© 2026 Railyard Tech Ltd · Railyard · Railyard is a trading name of Railyard Tech Ltd, registered in England and Wales no. 17525277, 24 Elizabeth Road, Wokingham, England, RG40 1UB