-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: overhaul development docs section
- Loading branch information
1 parent
32b9713
commit ff8a9ce
Showing
8 changed files
with
133 additions
and
133 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
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 @@ | ||
Overhauled developer documentation structure. |
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 @@ | ||
Fixed SSoT jobs only allowing dry run unless you overwrote the `run` method. |
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,21 @@ | ||
# Reference: Common Issues and Solutions | ||
|
||
This pages describes common issues when implementing SSoT integrations and their respective solutions. | ||
|
||
## Converting Types Between Database and Pydantic | ||
|
||
Developers are able to override the default loading of basic parameters to control how that parameter is loaded from Nautobot. | ||
|
||
This only works with basic parameters belonging to the model and does not override more complex parameters (foreign keys, custom fields, custom relationships, etc.). | ||
|
||
To override a parameter, add a method with the name `load_param_{param_key}` to your adapter class inheriting from `NautobotAdapter`: | ||
|
||
```python | ||
from nautobot_ssot.contrib import NautobotAdapter | ||
|
||
class YourSSoTNautobotAdapter(NautobotAdapter): | ||
... | ||
def load_param_time_zone(self, parameter_name, database_object): | ||
"""Custom loader for `time_zone` parameter.""" | ||
return str(getattr(database_object, parameter_name)) | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
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