Using YAML and Python to build a simple orchestrator.
Tory Davenport
?? Your Trusted Network Uplink | ?? Empowering tech minds, one packet at a time | ?? Pushing the boundaries of network engineering | ?? Torstechtalk.com
This is part 1 of a multipart article series.
I have a small library of scripts I'm writing up to work with some network devices and accomplish tasks for me.
They all take arguments and are based on the same 'template', so the format of the arguments are all the same, but the output of the script and the actions it takes would be different.
They each take device_ip (string), config_set (python list) and debug (bool True or False).
They run from the CLI in a similar format to:
python example_script.py x.x.x.x ['commands.yaml'] false
<OUTPUT OMITTED >
But what if I wanted to orchestrate changes during a change window?
Littler CaseSmart Paralegal/Adjunct Faculty
3 年Look at you go!