main app done
This commit is contained in:
13
test.py
13
test.py
@@ -19,15 +19,15 @@ conf = conn.configfile("test.yaml")
|
||||
# conf.saveconfig("test.yaml")
|
||||
# ***
|
||||
# test = conn.node("test", "10.21.96.45")
|
||||
# xr=conn.node("xr@home", **conf.connections["home"]["xr"], config=conf)
|
||||
# xr=conn.node("xr@home", **conf.getitem("xr@home"), 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"])
|
||||
# xroutput = xr.run(["show ip bgp", "show ip bgp summ"], folder="test")
|
||||
# ios.run("show run")
|
||||
# xroutput = xr.run("show run")
|
||||
# ios.run("show run", folder=".",stdout=True)
|
||||
# norman.run(["ls -la", "pwd"])
|
||||
# test = eve.run(["ls -la", "pwd"])
|
||||
# print(norman.output)
|
||||
@@ -36,3 +36,10 @@ conf = conn.configfile("test.yaml")
|
||||
# test.interact()
|
||||
# ***
|
||||
conn.connapp(conf, conn.node)
|
||||
# ***
|
||||
# list = ["xr@home","ios@home","router228@bbva","router142@bbva"]
|
||||
# for i in list:
|
||||
# data = conf.getitem(i)
|
||||
# routeri = conn.node(i,**data,config=conf)
|
||||
# routeri.run(["term len 0","show run"], folder="test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user