updates + ad requriements

This commit is contained in:
2022-03-18 16:16:31 -03:00
parent 255b2bd4ef
commit 5113aef8c2
3 changed files with 33 additions and 17 deletions

18
test.py
View File

@@ -17,13 +17,17 @@ conf = conn.configfile("test.yaml")
# print(yaml.dump(conf.profiles))
# conf.saveconfig("test.yaml")
# ***
xr=conn.node("xr@home", **conf.connections["home"]["xr"], config=conf)
ios=conn.node("ios@home", **conf.connections["home"]["ios"], config=conf)
norman = conn.node("norman@home", **conf.connections["home"]["norman"], config=conf)
eve = conn.node("eve@home", **conf.connections["home"]["eve"], config=conf)
# xr=conn.node("xr@home", **conf.connections["home"]["xr"], config=conf)
# ios=conn.node("ios@home", **conf.connections["home"]["ios"], config=conf)
# norman = conn.node("norman@home", **conf.connections["home"]["norman"], config=conf)
# eve = conn.node("eve@home", **conf.connections["home"]["eve"], config=conf)
router228 = conn.node("router228@bbva", **conf.connections["bbva"]["router228"], config=conf)
# router228.interact()
router228.run(["term len 0","show ip int br"])
# xr.run(["term len 0","show ip bgp", "show ip bgp summ"], folder="test")
# ios.run(["term len 0","show ip bgp", "show ip bgp summ"], folder="test")
# ios.run(["term len 0","show ip bgp", "show ip bgp summ"])
# norman.run(["ls -la", "pwd"], folder = "test")
# eve.run(["ls -la", "pwd"], folder = "test")
xr.interact()
# test = eve.run(["ls -la", "pwd"])
print(router228.output)
# xr.interact()