Skip to content

Commit

Permalink
Merge pull request #307 from jvanderaa/add_doc_arch
Browse files Browse the repository at this point in the history
Updates doc with arch diagram
  • Loading branch information
jvanderaa authored May 12, 2023
2 parents 4063231 + d38e2f5 commit 1b731e2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
runs-on: "ubuntu-20.04"
strategy:
matrix:
nautobot-version: ["1.2.12", "1.3.6", "1.4.10", "latest"]
nautobot-version: ["1.2.12", "1.3.6", "1.4.10", "1.5.18", "latest"]
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ network_importer.egg-info
*.zip
*.log

# Default config backup folder
configs/

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The main use cases for the network importer:
- Import an existing network into a SOT (Nautobot or NetBox) as a first step to automate a brownfield network
- Check the differences between the running network and the Source of Truth

This application is intended to run __outside__ of Nautobot.

![Architecture](docs/images/batfish_network_importer.png)

## Quick Start

- [Getting Started](docs/getting_started.md)
Expand Down
Binary file added docs/images/batfish_network_importer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions network_importer/adapters/nautobot_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def get_device_tag_id(self):
tag = self.diffsync.nautobot.extras.tags.get(name=f"device={self.name}")
if not tag:
tag = self.diffsync.nautobot.extras.tags.create(
name=f"device={self.name}",
slug=f"device__{''.join(c if c.isalnum() else '_' for c in self.name)}")
name=f"device={self.name}", slug=f"device__{''.join(c if c.isalnum() else '_' for c in self.name)}"
)

self.device_tag_id = tag.id
return self.device_tag_id
Expand Down

0 comments on commit 1b731e2

Please sign in to comment.