-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
type: bugSomething isn't working as expectedSomething isn't working as expected
Description
Environment
- Python version: N/A
- Nautobot version: 3.0 but should be the same in 2.x
- nautobot-design-builder version: 3.0.0
Expected Convenient/Desired Behavior
During a Design Deployment run, deletions happen before creations. This way it will be both conceptually more sound but also much more convenient when the object at hand has to be unique (e.g. a Device has to be fully replaced).
Observed Behavior
Creations happen before deletions. (relevant code lines)
Steps to Reproduce
- Have a Design that
creates_or_updatesa Device with a specific DeviceType.
devices:
- "create_or_update:name": "SW01"
"create_or_update:device_type__model": "C1000"
role__name: "Core Router"
status__name: "Planned"
platform: "!ref:junos_platform"
- Change the Design to use a different DeviceType.
devices:
- "create_or_update:name": "SW01"
"create_or_update:device_type__model": "C2000"
role__name: "Core Router"
status__name: "Planned"
platform: "!ref:junos_platform"
- You get a validation error due to the Device's uniqueness.
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't working as expectedSomething isn't working as expected