Skip to content

Conversation

iriseden
Copy link
Contributor

@iriseden iriseden commented Aug 1, 2025

This commit add "airflow" and "profile" to moduletype tests to allow using those objects.

@iriseden iriseden marked this pull request as ready for review August 1, 2025 15:59
@Copilot Copilot AI review requested due to automatic review settings August 1, 2025 15:59
Copy link
Contributor

@Copilot Copilot AI left a 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": {
Copy link
Collaborator

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

Copy link
Contributor Author

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.

Copy link
Collaborator

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

Copy link
Contributor Author

@iriseden iriseden Aug 5, 2025

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.

@harryajc harryajc added status: revisions needed This issue requires additional information to be actionable status: under review A Pull Request (PR) or Issue that is current in review by a maintainer labels Aug 4, 2025
@harryajc harryajc mentioned this pull request Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: revisions needed This issue requires additional information to be actionable status: under review A Pull Request (PR) or Issue that is current in review by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants