Skip to content
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

Create a validate_models management command to validate each instance… #2202

Merged
merged 3 commits into from
Aug 19, 2022

Conversation

itdependsnetworks
Copy link
Contributor

Closes: DNE

What's Changed

Create a validate_models management command to validate each instance in the database

TODO

@itdependsnetworks
Copy link
Contributor Author

Partial output of the management command running:

LocationType_content_types.dcim
LocationType.dcim
Location.dcim
PowerPanel.dcim
PowerFeed.dcim
RackGroup.dcim
RackRole.dcim
Rack.dcim
RackReservation.dcim
Region.dcim
Site.dcim
~~~~~ Model: `Site.dcim` Instance: `Site 1` Error: `{'status': ['This field cannot be blank.']}`. ~~~~~
VRF_import_targets.ipam
VRF_export_targets.ipam
VRF.ipam
RouteTarget.ipam
RIR.ipam
Aggregate.ipam

@bryanculver bryanculver mentioned this pull request Aug 13, 2022
12 tasks
Copy link
Contributor

@glennmatthews glennmatthews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat idea!

nautobot/extras/management/commands/validate_models.py Outdated Show resolved Hide resolved
nautobot/extras/management/commands/validate_models.py Outdated Show resolved Hide resolved
nautobot/extras/management/commands/validate_models.py Outdated Show resolved Hide resolved
itdependsnetworks and others added 2 commits August 18, 2022 18:16
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
@bryanculver bryanculver merged commit 136b117 into nautobot:develop Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants