-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cookie updated by NetworkToCode Cookie Drift Manager Tool (#401)
* Cookie updated by NetworkToCode Cookie Drift Manager Tool Template: ``` { "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git", "dir": "nautobot-app", "ref": "refs/tags/nautobot-app-v2.4.1", "path": null } ``` Cookie: ``` { "remote": "https://github.com/nautobot/nautobot-app-device-lifecycle-mgmt.git", "path": "/tmp/tmp9t0bkxk7/nautobot-app-device-lifecycle-mgmt", "repository_path": "/tmp/tmp9t0bkxk7/nautobot-app-device-lifecycle-mgmt", "dir": "", "branch_prefix": "drift-manager", "context": { "codeowner_github_usernames": "@josh5276 @jvanderaa @progala", "full_name": "Network to Code, LLC", "email": "[email protected]", "github_org": "nautobot", "app_name": "nautobot_device_lifecycle_mgmt", "verbose_name": "Device Lifecycle Management", "app_slug": "nautobot-device-lifecycle-mgmt", "project_slug": "nautobot-app-device-lifecycle-mgmt", "repo_url": "https://github.com/nautobot/nautobot-app-device-lifecycle-mgmt", "base_url": "nautobot-device-lifecycle-mgmt", "min_nautobot_version": "2.0.0", "max_nautobot_version": "2.9999", "camel_name": "NautobotDeviceLifecycleManagement", "project_short_description": "Device Lifecycle Management", "model_class_name": "HardwareLCM", "open_source_license": "Apache-2.0", "docs_base_url": "https://docs.nautobot.com", "docs_app_url": "https://docs.nautobot.com/projects/device-lifecycle/en/latest", "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git", "_output_dir": "/tmp/tmp9t0bkxk7", "_repo_dir": "/github/home/.cookiecutters/cookiecutter-nautobot-app/nautobot-app", "_checkout": "refs/tags/nautobot-app-v2.4.1" }, "base_branch": "develop", "remote_name": "origin", "pull_request_strategy": "PullRequestStrategy.CREATE", "post_actions": [ "PostAction.RUFF", "PostAction.POETRY" ], "baked_commit_ref": "9f5d82bd64864882fb5b6cd7edd997aa4b451a19", "draft": false } ``` CLI Arguments: ``` { "cookie_dir": "", "input": false, "json_filename": "", "output_dir": "", "push": true, "template": "", "template_dir": "", "template_ref": "refs/tags/nautobot-app-v2.4.1", "pull_request": null, "post_action": [ "ruff", "poetry" ], "disable_post_actions": true, "draft": false } ``` * Correct issues from Drift Management. * Add missing serializer. * Add another Drift Managed removal * OrganizationalModel does not have tags. * Add back app_name --------- Co-authored-by: bakebot <[email protected]> Co-authored-by: Stephen Kiely <[email protected]>
- Loading branch information
1 parent
da62cc9
commit 2aa785b
Showing
14 changed files
with
888 additions
and
877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Rebaked from the cookie `nautobot-app-v2.4.1`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,22 @@ | ||
"""API URLs for the Lifecycle Management app.""" | ||
"""Django API urlpatterns declaration for nautobot_device_lifecycle_mgmt app.""" | ||
|
||
from rest_framework import routers | ||
from nautobot.apps.api import OrderedDefaultRouter | ||
|
||
from nautobot_device_lifecycle_mgmt.api.views import ( | ||
ContactLCMView, | ||
ContractLCMView, | ||
CVELCMViewSet, | ||
DeviceSoftwareValidationResultListViewSet, | ||
HardwareLCMView, | ||
InventoryItemSoftwareValidationResultListViewSet, | ||
ProviderLCMView, | ||
SoftwareImageLCMViewSet, | ||
SoftwareLCMViewSet, | ||
ValidatedSoftwareLCMViewSet, | ||
VulnerabilityLCMViewSet, | ||
) | ||
from nautobot_device_lifecycle_mgmt.api import views | ||
|
||
router = routers.DefaultRouter() | ||
|
||
router.register("hardware", HardwareLCMView) | ||
router.register("contract", ContractLCMView) | ||
router.register("provider", ProviderLCMView) | ||
router.register("contact", ContactLCMView) | ||
router.register("software", SoftwareLCMViewSet) | ||
router.register("software-image", SoftwareImageLCMViewSet) | ||
router.register("validated-software", ValidatedSoftwareLCMViewSet) | ||
router.register("cve", CVELCMViewSet) | ||
router.register("vulnerability", VulnerabilityLCMViewSet) | ||
router.register("device-validated-software-result", DeviceSoftwareValidationResultListViewSet) | ||
router.register("inventory-item-validated-software-result", InventoryItemSoftwareValidationResultListViewSet) | ||
|
||
app_name = "nautobot_device_lifecycle_mgmt" # pylint: disable=invalid-name | ||
app_name = "nautobot_device_lifecycle_mgmt" | ||
router = OrderedDefaultRouter() | ||
# add the name of your api endpoint, usually hyphenated model name in plural, e.g. "my-model-classes" | ||
router.register("hardware", views.HardwareLCMView) | ||
router.register("contract", views.ContractLCMView) | ||
router.register("provider", views.ProviderLCMView) | ||
router.register("contact", views.ContactLCMView) | ||
router.register("software", views.SoftwareLCMViewSet) | ||
router.register("software-image", views.SoftwareImageLCMViewSet) | ||
router.register("validated-software", views.ValidatedSoftwareLCMViewSet) | ||
router.register("cve", views.CVELCMViewSet) | ||
router.register("vulnerability", views.VulnerabilityLCMViewSet) | ||
router.register("device-validated-software-result", views.DeviceSoftwareValidationResultListViewSet) | ||
router.register("inventory-item-validated-software-result", views.InventoryItemSoftwareValidationResultListViewSet) | ||
|
||
urlpatterns = router.urls |
Oops, something went wrong.