main app done

This commit is contained in:
2022-03-25 12:25:59 -03:00
parent 43e8325890
commit 1c6bdddbdc
5 changed files with 189 additions and 132 deletions

13
test.py
View File

@@ -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")