Skip to main content

Nautobot Digital Twin

Project description

Nautobot Digital Twin

An app for Nautobot that creates and manages disposable lab environments ("digital twins") from Nautobot source-of-truth data.

What this app does

  • Builds topology definitions from Nautobot Location, Device, Interface, and Cable data.
  • Deploys and destroys labs using containerlab (SSH to a lab host).
  • Supports Golden Config integration:
    • deploy with intended config files,
    • push intended config to running labs,
    • execute "generate intended config" and push in one workflow.
  • Adds Location Job Buttons for quick start/stop operations.

Installation

Install from PyPI:

pip install nautobot-app-digital-twin

Enable it in nautobot_config.py:

PLUGINS = [
    "nautobot_digital_twin",
]

PLUGINS_CONFIG = {
    "nautobot_digital_twin": {
        "BACKEND": "containerlab",
        "CONTAINERLAB_SSH_HOST": "172.16.6.128",
        "CONTAINERLAB_SSH_PORT": 22,
        "CONTAINERLAB_SSH_USER": "clab",
        "CONTAINERLAB_SSH_PASSWORD": "clab",
    }
}

Run post-upgrade and restart services:

nautobot-server post_upgrade

Optional: create/update Location job buttons:

nautobot-server ensure_digital_twin_job_buttons

Key settings

Common PLUGINS_CONFIG["nautobot_digital_twin"] settings:

  • BACKEND: must be containerlab (only supported backend)
  • LOCATION_TYPE_NAME: Location type where Start/Stop buttons are shown
  • CONTAINERLAB_SSH_*: credentials/host for remote containerlab server
  • CONTAINERLAB_PLATFORM_MAP: map platform names to node kind/image
  • REMOVE_CONFIG_LINES / REPLACE_CONFIG_PATTERNS / PLATFORM_ADD_CONFIG_LINES: intended-config filtering pipeline
  • DIGITAL_TWIN_AUTO_DESTROY_MINUTES: automatic cleanup timer

See the full docs for all available options.

Documentation

Development

This repository includes:

  • GitHub CI and release workflows (lint, test, docs build, PyPI publish).
  • MkDocs configuration (mkdocs.yml) and Read the Docs config (.readthedocs.yaml).

Run docs locally:

poetry install --with docs
poetry run mkdocs serve

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nautobot_app_digital_twin-0.1.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nautobot_app_digital_twin-0.1.0-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file nautobot_app_digital_twin-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nautobot_app_digital_twin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28a03bf9d01758b7efd97bbce8db58d2c1ae8e7f8247bfa53efb5db1c7d514aa
MD5 bc357201c1c7c44b101674c1045311b9
BLAKE2b-256 461c64aa3ee4ff77b403e6760f53d64c03ded3e73e5e167aff8d6be6b6e59db8

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_app_digital_twin-0.1.0.tar.gz:

Publisher: release.yml on bsmeding/nautobot-app-digital-twin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nautobot_app_digital_twin-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_app_digital_twin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a25a64e38c7ec1056a15f54c945324c95dffe54c7985ceefb99a98ac2cc2006c
MD5 eb13a759885c21db170474581d982231
BLAKE2b-256 3f820abc03106a23a0c47ef0ad6463fcfa917694c76e28c399911ff12277feae

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_app_digital_twin-0.1.0-py3-none-any.whl:

Publisher: release.yml on bsmeding/nautobot-app-digital-twin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page