Skip to content

Commit

Permalink
Feat(eos_designs): Relax mode in structured config (aristanetworks#4784)
Browse files Browse the repository at this point in the history
Co-authored-by: Claus Holbech <[email protected]>
  • Loading branch information
2 people authored and emilarista committed Dec 17, 2024
1 parent 9a68a50 commit 5bffcb4
Show file tree
Hide file tree
Showing 22 changed files with 172 additions and 25 deletions.
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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ all:
children:
CLEAN_UNIT_TESTS: # Single Devices testing one specific case and only using hostvars
hosts:
relaxed-structured-config-validation:
always-configure-ip-routing:
bgp-options:
connected_endpoints:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ keys:
type:
type: str
valid_values: ["none", "start-stop", "stop-only"]
required: true
group:
description: Group Name.
type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ keys:
name:
type: str
description: Access-list Name.
convert_types: [ int ]
convert_types:
- int
counters_per_entry:
type: bool
permit_response_traffic:
Expand Down
25 changes: 25 additions & 0 deletions 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.

Loading

0 comments on commit 5bffcb4

Please sign in to comment.