Skip to content

Conversation

@jrha
Copy link
Member

@jrha jrha commented Jan 19, 2023

No description provided.

candlerb and others added 12 commits November 19, 2019 11:56
* New values for choices
* Use IPAddressWithMaskVar
* Make VM role optional
Remove IPAddress.family which was removed from Netbox data model in v2.8.0
Updated for Netbox 2.9
Custom script run() method must take a 'commit' argument
Otherwise it's possible to create objects which bypass the ORM
validation rules.
Add object.full_clean() when creating objects
Also use f"..." formatting and remove unnecessary field_order
Correct way of assigning tags to objects
@jrha jrha force-pushed the scripts branch 2 times, most recently from c352011 to 9b530e2 Compare January 19, 2023 13:51
@jrha jrha requested a review from drossy January 19, 2023 14:50
Copy link
Member

@drossy drossy left a comment

Choose a reason for hiding this comment

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

Feels like most of these could/should be a pull request against the original script. Is it feasible to make the existing fields you've made mandatory configurable somehow (via a config file possibly)?

@jrha
Copy link
Member Author

jrha commented Jan 19, 2023

Perhaps, I'll give it a go.

@jrha jrha force-pushed the scripts branch 2 times, most recently from 255c341 to d5ab892 Compare January 20, 2023 08:27
@jrha
Copy link
Member Author

jrha commented Jan 23, 2023

I've used my best Python introspection skills and turned it into a configurable monstrosity, will see about making a PR against upstream.

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.

6 participants