forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(eos_designs): Relax mode in structured config (aristanetworks#4784)
Co-authored-by: Claus Holbech <[email protected]>
- Loading branch information
1 parent
9a68a50
commit 5bffcb4
Showing
22 changed files
with
172 additions
and
25 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...molecule/eos_designs_unit_tests/intended/configs/relaxed-structured-config-validation.cfg
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,25 @@ | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname relaxed-structured-config-validation | ||
! | ||
vrf instance MGMT | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
aaa accounting exec console start-stop group node_group | ||
no ip routing vrf MGMT | ||
! | ||
end |
28 changes: 28 additions & 0 deletions
28
...s_designs_unit_tests/intended/structured_configs/relaxed-structured-config-validation.yml
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 @@ | ||
hostname: relaxed-structured-config-validation | ||
is_deployed: true | ||
service_routing_protocols_model: multi-agent | ||
vlan_internal_order: | ||
allocation: ascending | ||
range: | ||
beginning: 1006 | ||
ending: 1199 | ||
aaa_root: | ||
disabled: true | ||
config_end: true | ||
enable_password: | ||
disabled: true | ||
transceiver_qsfp_default_mode_4x10: true | ||
vrfs: | ||
- name: MGMT | ||
ip_routing: false | ||
management_api_http: | ||
enable_vrfs: | ||
- name: MGMT | ||
enable_https: true | ||
ip_igmp_snooping: | ||
globally_enabled: true | ||
aaa_accounting: | ||
exec: | ||
console: | ||
group: node_group | ||
type: start-stop |
19 changes: 19 additions & 0 deletions
19
...ecule/eos_designs_unit_tests/inventory/host_vars/relaxed-structured-config-validation.yml
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,19 @@ | ||
--- | ||
# The required key 'type' is added via custom_structured_configuration. | ||
custom_structured_configuration_aaa_accounting: | ||
exec: | ||
console: | ||
type: start-stop | ||
|
||
type: l2leaf | ||
|
||
l2leaf: | ||
nodes: | ||
- name: relaxed-structured-config-validation | ||
structured_config: | ||
aaa_accounting: | ||
exec: | ||
console: | ||
# Adding group here but not including the required key 'type'. | ||
# This will not raise a validation error because of relax mode in the schema. | ||
group: node_group |
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: 2 additions & 2 deletions
4
...e_collections/arista/avd/roles/eos_cli_config_gen/docs/tables/aaa-accounting.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
python-avd/pyavd/_eos_cli_config_gen/schema/eos_cli_config_gen.schema.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
25 changes: 25 additions & 0 deletions
25
python-avd/pyavd/_eos_designs/schema/eos_designs.schema.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.