Closed dt-arrcus closed 4 years ago
Failing with lint issue https://dashboard.zuul.ansible.com/t/ansible/build/6d1e3519f91d4ba08cd59b8c01cc4546/console
After fixing you run locally tox -e black
and tox -e linters
in the collection root directory to test it.
SUMMARY
Adding the ability for the fetch action to continue even if a model is not fetched. There a couple of cases in ArcOS where this is helpful.
1) There are a few yang models in ArcOS that have the word 'import' in a leaf description. This causes this module to try to import this module, which doesn't exist e.g. in the
tail-f-common.yang
model there is this text:this causes this collection to try to fetch model
x
The other use case is sometimes ArcOS will list a model in the get-schema RPC call but the full model might not exist on a specific version or a specific HW model Therefore if the
all
keyword is used in this collection and a model doesn't not exist on the device this task will fail.ISSUE TYPE
Feature Pull Request
COMPONENT NAME
community.yang.fetch
ADDITIONAL INFORMATION
Here is an example run with the tasks failing:
With my change the following attribute is added:
continue_on_failure
With this being run we are able to continue past the failed models and return a list of failed models
This attribute defaults to False so the current behavior is unchanged and the user must opt in to allow for the continuation to happen.