-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed compliance_feature, compliance_rule, config_remove, config_re…
…place, and config_remediation detail views to new component UI
- Loading branch information
1 parent
0b00113
commit c64c800
Showing
17 changed files
with
998 additions
and
1,095 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Changed compliance_feature, compliance_rule, config_remove, config_replace, and config_remediation detail views to new component UI. | ||
Changed the supported Nautobot to 2.4.0. |
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
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,67 @@ | ||
"""Object Detail components for golden config.""" | ||
|
||
from nautobot.apps import ui | ||
from nautobot.core.templatetags import helpers | ||
|
||
compliance_feature = ui.ObjectDetailContent( | ||
panels=( | ||
ui.ObjectFieldsPanel( | ||
section=ui.SectionChoices.LEFT_HALF, | ||
weight=100, | ||
fields="__all__", | ||
), | ||
), | ||
) | ||
|
||
compliance_rule = ui.ObjectDetailContent( | ||
panels=( | ||
ui.ObjectFieldsPanel( | ||
section=ui.SectionChoices.LEFT_HALF, | ||
weight=100, | ||
fields="__all__", | ||
value_transforms={ | ||
"match_config": [helpers.pre_tag], | ||
}, | ||
), | ||
), | ||
) | ||
|
||
config_remove = ui.ObjectDetailContent( | ||
panels=( | ||
ui.ObjectFieldsPanel( | ||
section=ui.SectionChoices.LEFT_HALF, | ||
weight=100, | ||
fields="__all__", | ||
value_transforms={ | ||
"regex": [helpers.pre_tag], | ||
}, | ||
), | ||
), | ||
) | ||
|
||
config_replace = ui.ObjectDetailContent( | ||
panels=( | ||
ui.ObjectFieldsPanel( | ||
section=ui.SectionChoices.LEFT_HALF, | ||
weight=100, | ||
fields="__all__", | ||
value_transforms={ | ||
"regex": [helpers.pre_tag], | ||
"replace": [helpers.pre_tag], | ||
}, | ||
), | ||
), | ||
) | ||
|
||
config_remediation = ui.ObjectDetailContent( | ||
panels=( | ||
ui.ObjectFieldsPanel( | ||
section=ui.SectionChoices.LEFT_HALF, | ||
weight=100, | ||
fields="__all__", | ||
value_transforms={ | ||
"remediation_options": [helpers.render_json], | ||
}, | ||
), | ||
), | ||
) |
37 changes: 0 additions & 37 deletions
37
nautobot_golden_config/templates/nautobot_golden_config/compliancefeature_retrieve.html
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
nautobot_golden_config/templates/nautobot_golden_config/compliancerule_retrieve.html
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
nautobot_golden_config/templates/nautobot_golden_config/configremove_retrieve.html
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
nautobot_golden_config/templates/nautobot_golden_config/configreplace_retrieve.html
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
nautobot_golden_config/templates/nautobot_golden_config/remediationsetting_retrieve.html
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.