-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Import mode for design lifecycle (#195)
* feat: ✨ Import mode for design lifecycle * add change description * Apply suggestions from code review Co-authored-by: Andrew Bates <[email protected]> * Adjust tests --------- Co-authored-by: Andrew Bates <[email protected]>
- Loading branch information
Showing
13 changed files
with
316 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ rules: | |
ignore: | | ||
.venv/ | ||
compose.yaml | ||
.vscode/ |
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 @@ | ||
Import feature for deployment mode that provides incorporating existing data into a design deployment when the identifiers match. |
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
4 changes: 4 additions & 0 deletions
4
nautobot_design_builder/tests/designs/templates/simple_design_1.yaml.j2
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,4 @@ | ||
--- | ||
manufacturers: | ||
- "!create_or_update:name": "Test Manufacturer" | ||
"description": "Test description" |
28 changes: 28 additions & 0 deletions
28
nautobot_design_builder/tests/designs/templates/simple_design_4.yaml.j2
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,28 @@ | ||
--- | ||
manufacturers: | ||
- "!create_or_update:name": "Test Manufacturer" | ||
"description": "Test description" | ||
roles: | ||
- "!create_or_update:name": "Switch" | ||
color: "3f51b5" | ||
content_types: | ||
- "!get:app_label": "dcim" | ||
"!get:model": "device" | ||
device_types: | ||
- "!create_or_update:model": "Test Device Type" | ||
"manufacturer__name": "Test Manufacturer" | ||
location_types: | ||
- "!create_or_update:name": "Test Location Type" | ||
content_types: | ||
- "!get:app_label": "dcim" | ||
"!get:model": "device" | ||
locations: | ||
- "!create_or_update:name": "Test Location" | ||
"location_type__name": "Test Location Type" | ||
"status__name": "Active" | ||
devices: | ||
- "!create_or_update:name": "Test Device" | ||
"role__name": "Switch" | ||
"device_type__model": "Test Device Type" | ||
"location__name": "Test Location" | ||
"status__name": "Active" |
4 changes: 4 additions & 0 deletions
4
nautobot_design_builder/tests/designs/templates/simple_design_5.yaml.j2
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,4 @@ | ||
--- | ||
manufacturers: | ||
- "!update:name": "Test Manufacturer" | ||
"description": "Test description" |
Oops, something went wrong.