Skip to content

Commit

Permalink
Feat(eos_validate_state): Added the validation for AVT path for stati…
Browse files Browse the repository at this point in the history
…c peers and role of device (#4200)
  • Loading branch information
MaheshGSLAB authored Oct 8, 2024
1 parent 7d5efb8 commit 1600398
Show file tree
Hide file tree
Showing 11 changed files with 3,436 additions and 3,017 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,63 @@ anta.tests.aaa:
- exec
- commands
- dot1x
anta.tests.avt:
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.1.2
next_hop: 10.255.1.2
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.1.2, Nexthop VTEP: 10.255.1.2'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.255.10
next_hop: 10.255.255.10
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.255.10, Nexthop VTEP: 10.255.255.10'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.255.20
next_hop: 10.255.255.20
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.255.20, Nexthop VTEP: 10.255.255.20'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.1.2
next_hop: 10.255.1.2
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.1.2, Nexthop VTEP: 10.255.1.2'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.255.10
next_hop: 10.255.255.10
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.255.10, Nexthop VTEP: 10.255.255.10'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.255.20
next_hop: 10.255.255.20
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.255.20, Nexthop VTEP: 10.255.255.20'
- VerifyAVTRole:
role: edge
anta.tests.configuration:
- VerifyZeroTouch: null
- VerifyRunningConfigDiffs: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,63 @@ anta.tests.aaa:
- exec
- commands
- dot1x
anta.tests.avt:
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.1.1
next_hop: 10.255.1.1
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.1.1, Nexthop VTEP: 10.255.1.1'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.255.10
next_hop: 10.255.255.10
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.255.10, Nexthop VTEP: 10.255.255.10'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-CONTROL-PLANE
destination: 10.255.255.20
next_hop: 10.255.255.20
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-CONTROL-PLANE, VRF: default, Destination
IPv4 Address: 10.255.255.20, Nexthop VTEP: 10.255.255.20'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.1.1
next_hop: 10.255.1.1
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.1.1, Nexthop VTEP: 10.255.1.1'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.255.10
next_hop: 10.255.255.10
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.255.10, Nexthop VTEP: 10.255.255.10'
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: DEFAULT-POLICY-DEFAULT
destination: 10.255.255.20
next_hop: 10.255.255.20
vrf: default
result_overwrite:
custom_field: 'AVT profile: DEFAULT-POLICY-DEFAULT, VRF: default, Destination
IPv4 Address: 10.255.255.20, Nexthop VTEP: 10.255.255.20'
- VerifyAVTRole:
role: edge
anta.tests.configuration:
- VerifyZeroTouch: null
- VerifyRunningConfigDiffs: null
Expand Down
3,028 changes: 1,521 additions & 1,507 deletions ansible_collections/arista/avd/molecule/eos_validate_state/reports/FABRIC-state.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 1600398

Please sign in to comment.