|
SAFplus Runtime Director API
3.0.5
|
Variables | |
| string | note = "This example is not meant to be run directly, but rather for you to\ncut-and-paste each line into a python buffer. It will not work if run directly\nsince it contains some model and directory specific items." |
| ci = clusterinfo.ci | |
| tuple | amf = aspAmf.Session() |
| list | su = ci.suList[0] |
| tuple | appDb = aspApp.AppDb(os.getenv("ASP_DIR","/tmp") + "/apps") |
| string | myNode = "ctrlI0" |
| tuple | liveNodes = filter(lambda x: x.isRunning(),ci.nodeList) |
| list | appFile = appDb.apps['virtualIp'] |
| tuple | newCfg = copy.deepcopy(appFile.cfg) |
| list | myNewSg = sgList[0] |
| mySgName = myNewSg.name | |
| list | mySg = ci.entities[mySgName] |
| tuple | umgr = upgrade.UpgradeMgr() |
| list | upSg = umgr.entities[mySgName] |
| tuple apiexample.amf = aspAmf.Session() |
| tuple apiexample.appDb = aspApp.AppDb(os.getenv("ASP_DIR","/tmp") + "/apps") |
| list apiexample.appFile = appDb.apps['virtualIp'] |
| apiexample.ci = clusterinfo.ci |
| tuple apiexample.liveNodes = filter(lambda x: x.isRunning(),ci.nodeList) |
| list apiexample.myNewSg = sgList[0] |
| string apiexample.myNode = "ctrlI0" |
| list apiexample.mySg = ci.entities[mySgName] |
| apiexample.mySgName = myNewSg.name |
| tuple apiexample.newCfg = copy.deepcopy(appFile.cfg) |
| string apiexample.note = "This example is not meant to be run directly, but rather for you to\ncut-and-paste each line into a python buffer. It will not work if run directly\nsince it contains some model and directory specific items." |
| list apiexample.su = ci.suList[0] |
| tuple apiexample.umgr = upgrade.UpgradeMgr() |
| list apiexample.upSg = umgr.entities[mySgName] |