Sunday, March 31, 2019

Is Nornir Idempotent

I want to create an automation script using Nornir to update the vlan configuration on device interfaces. I want to have a version controlled file with something like:

int gig1/1:vlan10

int gig1/2:vlan10

Then when someone changes the file like to say int git1/2:vlan20 and successfully merges the file with a production branch of the file the config is implemented idempotently (So vlan1/1 is not affected even though its in the file that the script is being run against).

Can nornir do this? Easily?



No comments:

Post a Comment