官术网_书友最值得收藏!

Idempotent network device interaction

The term idempotency has different meanings, depending on its context. But in this chapter's context, the term means when the client makes the same call to the device, the result should always be the same. I believe we can all agree that this is necessary. Imagine a time when each time you execute the script you get a different result back. This is a scary thought indeed and would render our automation effort useless.

Since Pexpect and Paramiko are blasting out a series of commands interactively, the chance of having a non-idempotent interaction is higher. Going back to the fact that the return results needed to be screen scraped for useful elements, the risk is much higher that something might have changed between the time we wrote the script to the time when the script is executed for the 100th time. For example, if the vendor makes a screen output change between releases, it might be okay for human engineers, but it will break your script.

If we need to rely on the script for production, we need the script to be idempotent as much as possible.

主站蜘蛛池模板: 桂东县| 婺源县| 叶城县| 凤庆县| 漳浦县| 蓬溪县| 攀枝花市| 东乡族自治县| 台前县| 丹寨县| 泌阳县| 衡东县| 武邑县| 塔河县| 旅游| 新民市| 宁都县| 南木林县| 疏勒县| 龙山县| 政和县| 图片| 梧州市| 浠水县| 锡林浩特市| 芮城县| 维西| 三原县| 鄢陵县| 容城县| 桃园县| 滨海县| 梁河县| 崇明县| 吴堡县| 商都县| 渑池县| 泰宁县| 鲁甸县| 海淀区| 株洲市|