Using YAML and Python to build a simple orchestrator.
Credit: https://yaml.org/

Using YAML and Python to build a simple orchestrator.

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?

STOP! VIEW THE FULL ARTICLE FOR FREE at?TorsTechTalk.com

Pamela Saar, M.Ed.

Littler CaseSmart Paralegal/Adjunct Faculty

3 年

Look at you go!

要查看或添加评论,请登录

Tory Davenport的更多文章

社区洞察

其他会员也浏览了