"errorCount": 2,
"errors": [
{
"error": "> ruter bgp 1111% Invalid input (at token 0: 'ruter') at line 4",
"lineNo": " 4"
},
{
"error": "> neighbor 1.1.1.1 remote-bs 10% Invalid input (at token 0: 'neighbor') at line 5",
"lineNo": " 5"
}
],
"warningCount": 1,
"warnings": [
"! Interface does not exist. The configuration will not take effect until the module is inserted. at line 1\\n\\n\\n\\n"
]
Describe the solution you'd like
leverage existing validate_config_for_device and validate_configlets_for_device functions from cvprac
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Enhancement summary
The use case is to validate configlets before/after task creation and listing the errors & warnings through the same Ansible playbook
Which component of AVD is impacted
cv_device_v3
Use case example
Running a playbook like this
where
net10
configlet contains:would result in something like:
Describe the solution you'd like
leverage existing validate_config_for_device and validate_configlets_for_device functions from cvprac
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct