Skip to content

Release v4.2.1 #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ jobs:
- python-version: "3.11"
db-backend: "postgresql"
nautobot-version: "2.2.3"
# - python-version: "3.12"
# db-backend: "mysql"
# nautobot-version: "stable"
runs-on: "ubuntu-22.04"
env:
INVOKE_NAUTOBOT_DEVICE_ONBOARDING_PYTHON_VER: "${{ matrix.python-version }}"
Expand Down
22 changes: 20 additions & 2 deletions docs/admin/release_notes/version_4.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,26 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## Release Overview

- Major features or milestones
- Changes to compatibility with Nautobot and/or other apps, libraries etc.
- [#200](https://github.com/nautobot/nautobot-app-device-onboarding/issues/200) - Added basic connectivity checker using Netutils tcp_ping method.
- [#274](https://github.com/nautobot/nautobot-app-device-onboarding/issues/274) - Added TTP Parser support.
- [#274](https://github.com/nautobot/nautobot-app-device-onboarding/issues/274) - Added Sync Device from Network support for Palo Alto Panos.

## [v4.2.1 (2025-02-11)](https://github.com/nautobot/nautobot-app-device-onboarding/releases/tag/v4.2.1)

### Fixed

- [#306](https://github.com/nautobot/nautobot-app-device-onboarding/issues/306) - Fixed error with logging message in SyncNetworkDataIPAddress.update()
- [#311](https://github.com/nautobot/nautobot-app-device-onboarding/issues/311) - Fixed issue with Lags, VRFs and Untagged Vlans not being removed from interfaces
- [#313](https://github.com/nautobot/nautobot-app-device-onboarding/issues/313) - Fixed issue running a sync job via CSV would raise an exception.

### Dependencies

- [#307](https://github.com/nautobot/nautobot-app-device-onboarding/issues/307) - Updated ntc-templates to 7.x

### Housekeeping

- [#315](https://github.com/nautobot/nautobot-app-device-onboarding/issues/315) - Added fake SSH devices to tests to increase coverage.


## [v4.2.0 (2025-01-17)](https://github.com/nautobot/nautobot-app-device-onboarding/releases/tag/v4.2.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,13 @@ def load_tagged_vlans_to_interface(self):
vlan_dict["name"] = vlan.name
vlan_dict["id"] = str(vlan.vid)
tagged_vlans.append(vlan_dict)
sorted_tagged_vlans = sorted(tagged_vlans, key=lambda x: x["id"])

network_tagged_vlans_to_interface = self.tagged_vlans_to_interface(
adapter=self,
device__name=interface.device.name,
name=interface.name,
tagged_vlans=tagged_vlans,
tagged_vlans=sorted_tagged_vlans,
)
network_tagged_vlans_to_interface.model_flags = DiffSyncModelFlags.SKIP_UNMATCHED_DST
self.add(network_tagged_vlans_to_interface)
Expand Down Expand Up @@ -606,24 +607,26 @@ def load_vlans(self):
if interface_data["untagged_vlan"] and interface_data["untagged_vlan"].get("id") == "0":
self.job.logger.warning("Interface with untagged vlan 0 found. Skipping untagged vlan load.")
continue
try:
network_vlan = self.vlan(
adapter=self,
name=interface_data["untagged_vlan"]["name"],
vid=interface_data["untagged_vlan"]["id"],
location__name=location_names.get(hostname, ""),
)
self.add(network_vlan)
except diffsync.exceptions.ObjectAlreadyExists:
continue
except Exception as err: # pylint: disable=broad-exception-caught
self._handle_general_load_exception(
error=err,
hostname=hostname,
data=device_data,
model_type="vlan",
)
continue

if interface_data["untagged_vlan"]:
try:
network_vlan = self.vlan(
adapter=self,
name=interface_data["untagged_vlan"]["name"],
vid=interface_data["untagged_vlan"]["id"],
location__name=location_names.get(hostname, ""),
)
self.add(network_vlan)
except diffsync.exceptions.ObjectAlreadyExists:
continue
except Exception as err: # pylint: disable=broad-exception-caught
self._handle_general_load_exception(
error=err,
hostname=hostname,
data=device_data,
model_type="vlan",
)
continue

def load_vrfs(self):
"""Load vrfs into the Diffsync store."""
Expand Down Expand Up @@ -691,11 +694,12 @@ def load_tagged_vlans_to_interface(self):
# for interface in device_data["interfaces"]:
for interface_name, interface_data in device_data["interfaces"].items():
try:
sorted_tagged_vlans = sorted(interface_data["tagged_vlans"], key=lambda x: x["id"])
network_tagged_vlans_to_interface = self.tagged_vlans_to_interface(
adapter=self,
device__name=hostname,
name=interface_name,
tagged_vlans=interface_data["tagged_vlans"],
tagged_vlans=sorted_tagged_vlans,
)
self.add(network_tagged_vlans_to_interface)
except Exception as err: # pylint: disable=broad-exception-caught
Expand All @@ -710,7 +714,6 @@ def load_tagged_vlans_to_interface(self):
def load_untagged_vlan_to_interface(self):
"""Load untagged vlan to interface assignments into the Diffsync store."""
for hostname, device_data in self.job.command_getter_result.items():
# for interface in device_data["interfaces"]:
for interface_name, interface_data in device_data["interfaces"].items():
try:
if interface_data["untagged_vlan"] and interface_data["untagged_vlan"].get("id") == "0":
Expand Down Expand Up @@ -758,7 +761,6 @@ def load_lag_to_interface(self):
def load_vrf_to_interface(self):
"""Load Vrf to interface assignments into the Diffsync store."""
for hostname, device_data in self.job.command_getter_result.items():
# for interface in device_data["interfaces"]:
for interface_name, interface_data in device_data["interfaces"].items():
try:
network_vrf_to_interface = self.vrf_to_interface(
Expand Down
Loading
Loading