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

App Config Schema #181

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions nautobot_bgp_models/app-config-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$id": "https://raw.githubusercontent.com/nautobot/nautobot-app-bgp-models/develop/nautobot_bgp_models/app-config-schema.json",
"$comment": "TBD: Update $id, replace `develop` with specific commit hash",
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the plan for addressing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

id field should point to the stable location, on GH it should be a reference using a git tag. Before the release of the package, develop should be replaced with the future git tag.

It's a manual process now, we can add some automation in the future.

"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"default_statuses":{
"type": "object",
"properties": {
"AutonomousSystem": {
"type": "array",
"items": {
"type": "string"
},
"default": ["Active", "Available", "Planned"]
},
"BGPRoutingInstance": {
"type": "array",
"items": {
"type": "string"
},
"default": ["Planned", "Active", "Decommissioned"]
},
"Peering": {
"type": "array",
"items": {
"type": "string"
},
"default": ["Active", "Decommissioned", "Deprovisioning", "Offline", "Planned", "Provisioning"]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
Loading