Skip to content

Commit

Permalink
docs: improve design_mode docs (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadell authored Jun 13, 2024
1 parent 91fa149 commit bf8caf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/design_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Design files specifies a list of Jinja template that should be used to produce t

### `design_mode`

The `design_mode` indicates how this design's state will be tracked in Nautobot. By default, the design mode is set to `CLASSIC` mode, which means that objects are created in an ad-hoc fashion and no change sets are created. Classic mode is how all designs worked prior to the introduction of the design lifecycle features. If a design is intended to be tracked as a deployment, then design mode should be set to `DEPLOYMENT` in order to implement the full lifecycle.
The `design_mode` indicates how this design's state will be tracked in Nautobot. By default, the design mode is set to `CLASSIC` mode, which means that objects are created in an ad-hoc fashion and no change sets are created. Classic mode is how all designs worked prior to the introduction of the design lifecycle features. If a design is intended to be tracked as a deployment, then design mode should be set to `DEPLOYMENT` in order to implement the full lifecycle. See the [Design Lifecycle section](./design_lifecycle.md) for more details.

### `context_class`

Expand Down
11 changes: 11 additions & 0 deletions docs/user/design_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ In the next figure, the Designs table view exposes the previous information. Not

From the `Design`, the user can manage the associated `Job` configuration (yellow edit icon), check the docs (doc icon), and trigger its execution (run blue icon).

In order to select the new **mode** (by default, the classic/ad hoc is selected), you have to set it in the `Meta` class of the `DesignJob`:

```py
from nautobot_design_builder.choices import DesignModeChoices

class ExampleDesign(DesignJob):
...
class Meta:
design_mode = DesignModeChoices.DEPLOYMENT
```

## Design Deployment or `DesignDeployment`

Once a design (with the `DEPLOYMENT` mode) is deployed in Nautobot, a Design Deployment is created with the report of the changes implemented (i.e. `ChangeSets`), and with actions to update or decommission it (see next subsections).
Expand Down

0 comments on commit bf8caf4

Please sign in to comment.