Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #134 from nautobot/release-v2.0.1
Browse files Browse the repository at this point in the history
Release v2.0.1
  • Loading branch information
pke11y authored May 26, 2023
2 parents 4b35929 + deaa712 commit 8841977
Show file tree
Hide file tree
Showing 12 changed files with 2,193 additions and 639 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v2.0.1 - 2023-05-26

### Fixed

- #128 - Refresh client to ensure latest snapshots are loaded.
- #129 - Use new IP Fabric logo on the SSoT dashboard.
- #133 - Fix device interface import for interfaces with no description.

## v2.0.0 - 2023-01-27

### Added
Expand Down
8 changes: 8 additions & 0 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ ARG PYTHON_VER=3.8
ARG NAUTOBOT_VER="1.2.4"
FROM ghcr.io/nautobot/nautobot-dev:${NAUTOBOT_VER}-py${PYTHON_VER}

# Install Poetry manually via its installer script;
# We might be using an older version of Nautobot that includes an older version of Poetry
# and CI and local development may have a newer version of Poetry
# Since this is only used for development and we don't ship this container, pinning Poetry back is not expressly necessary
# We also don't need virtual environments in container
RUN curl -sSL https://install.python-poetry.org | python3 - && \
poetry config virtualenvs.create false

WORKDIR /source

# Copy in only pyproject.toml/poetry.lock to help with caching this layer if no updates to dependencies
Expand Down
Binary file removed docs/images/site_diagram.png
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ You can then views the details of each object.

![Sync Details](./images/sync_details.png)

Site objects include a site diagram from IPFabric, which is using the new custom field to render the appropriate site-id. Navigate to any site that's been synced by SSoT IPFabric and take a look!

![Site Diagram](./images/site_diagram.png)

## DiffSync Models

### IPFabric Site
Expand Down
2 changes: 1 addition & 1 deletion nautobot_ssot_ipfabric/diffsync/adapter_ipfabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def load_device_interfaces(self, device_model, interfaces, device_primary_ip):
diffsync=self,
name=iface.get("intName"),
device_name=iface.get("hostname"),
description=iface.get("dscr"),
description=iface.get("dscr", ""),
enabled=True,
mac_address=mac_to_format(iface.get("mac"), "MAC_COLON_TWO").upper()
if iface.get("mac")
Expand Down
2 changes: 1 addition & 1 deletion nautobot_ssot_ipfabric/diffsync/adapter_nautobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def load_interfaces(self, device_record: Device, diffsync_device):
status=device_record.status.name,
name=interface_record.name,
device_name=device_record.name,
description=interface_record.description if interface_record.description else None,
description=interface_record.description if interface_record.description else "",
enabled=True,
mac_address=mac_to_format(str(interface_record.mac_address), "MAC_COLON_TWO").upper()
if interface_record.mac_address
Expand Down
1 change: 1 addition & 0 deletions nautobot_ssot_ipfabric/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def get_formatted_snapshots(client):
formatted_snapshots = {}
snapshot_refs = []
if client:
client.update()
for snapshot_ref, snapshot in client.snapshots.items():
description = ""
if snapshot_ref in [LAST, PREV, LAST_LOCKED]:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion nautobot_ssot_ipfabric/utilities/nbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def create_interface(device_obj, interface_details):
interface_obj, _ = device_obj.interfaces.get_or_create(**fields)
except IntegrityError:
interface_obj, _ = device_obj.interfaces.get_or_create(name=fields["name"])
interface_obj.description = fields.get("description")
interface_obj.description = fields.get("description", "")
interface_obj.enabled = fields.get("enabled")
interface_obj.mac_address = fields.get("mac_address")
interface_obj.mtu = fields.get("mtu")
Expand Down
2,803 changes: 2,172 additions & 631 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-ssot-ipfabric"
version = "2.0.0"
version = "2.0.1"
description = "Nautobot SSoT IPFabric"
authors = ["Network to Code, LLC <info@networktocode.com>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 8841977

Please sign in to comment.