aristanetworks / ansible-cvp

Ansible modules for Arista CloudVision
http://cvp.avd.sh
Apache License 2.0
66 stars 61 forks source link

Option on cv_device to ignore missing devices #579

Closed ClausHolbechArista closed 1 year ago

ClausHolbechArista commented 1 year ago

Enhancement summary

Currently cv_device fails if a device is not present in CVP. It is possible to set the is_deployed fact on the device, to ignore the missing device, but I would like a feature where we could automatically ignore any missing device. Maybe warn in the output when we ignore such devices.

Which component of AVD is impacted

cv_device_v3

Use case example

Customer is driving Ansible inventory directly from a source-of-truth DB, so as soon as you add a new device to the DB, it must either be on CVP or have a flag set to trigger is_deployed:false. This is not very useful in dynamic environements.

Describe the solution you'd like

New argument: ignore_missing_devices: true

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct