updates + ad requriements
This commit is contained in:
18
test.py
18
test.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user