-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add "airflow" and "profile" to moduletype test #3364
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for two new properties in the moduletype JSON schema: "airflow" and "profile" to align with NetBox functionality and enable better module type definitions.
- Adds "airflow" property with reference to the existing airflow schema definition
- Adds "profile" property as a string type for NetBox v4.3 compatibility
@@ -71,6 +74,9 @@ | |||
}, | |||
"comments": { | |||
"type": "string" | |||
}, | |||
"profile": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add the airflow, however the profile option will require some more work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, what kind of fix would you like? The problem with profile is that it is not standard and can be defined by the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First we would only support the default netbox profiles in this repo, secondly I was having a look the other day, but still not quite sure how the profile attributes are imported/or if that is even possible at this stage, I know in 4.3.4 they added support for importing the module profiles themselves, but currently don't see any information on importing the attributes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have no idea if we can import the attributes, I'll test it. Regarding the default profiles, I'll correct the commit.
This commit add "airflow" and "profile" to moduletype tests to allow using those objects.