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

Prefix VLAN Assignment Fix #101

Merged
merged 3 commits into from
Sep 8, 2022
Merged

Prefix VLAN Assignment Fix #101

merged 3 commits into from
Sep 8, 2022

Conversation

jdrew82
Copy link
Contributor

@jdrew82 jdrew82 commented Sep 8, 2022

This PR is for fixing the issue raised in #100. Just needed to change the check of whether a Prefix has a VLAN assigned.

Using the hasattr function for checking if a VLAN is assigned to a Prefix so instead need to check if prefix.vlan is None.
@FragmentedPacket
Copy link
Contributor

Do we have testing strategies or patterns for our SSoT apps? It seems like it would be good to start being able to add tests for these bug fixes.

@jdrew82
Copy link
Contributor Author

jdrew82 commented Sep 8, 2022

Do we have testing strategies or patterns for our SSoT apps? It seems like it would be good to start being able to add tests for these bug fixes.

I have a pattern for testing the non-Nautobot adapter loading for another project. Need to work on building one for the Nautobot side. Biggest problem is need some fixtures built out for the Nautobot side to mock new import and updates.

@jdrew82 jdrew82 merged commit 8e49ce8 into develop Sep 8, 2022
@jdrew82 jdrew82 deleted the vlan_fix branch September 8, 2022 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants