Hello guys,
There is something that i would like to shed some light on.
Data resolution in Nornir works by iterating recursively over all the parent groups and try to see if that parent group (or any of it’s parents) contains the data.
BUT, to me it does not seem to work as smootly as it seems.
(You do have to read the documentation, Section ’ Inheritance model ', to better understand my issue.
https://github.com/nornir-automation/nornir/blob/develop/docs/tutorial/inventory.ipynb)
Now that you read it, the problem that i have is that, for me and from what i understood
the output of :
leaf01_bma[“domain”]
should not be ‘acme.local’ but ‘global.local’.
As leaf01_bma belongs to the group ‘bma’ which in turn belongs to the groups ‘eu’ and ‘global’.
If Nornir does not find the key ‘domain’ in the hosts.yaml file, then it should go check EACH parent group.
But i lab this up and it seems that it only check one parent from the list.
For exemple here, it will only check ‘eu’ group and then go straight to the default.yaml file instead of following up on the ‘global’ group.
Let me know if you need any clarification.
(Sorry i was limited to one image, i’m a new user)