This Page

testbed.emulab — Emulab testbed implementation

class testbed.emulab.EmulabTestbed(**hint)
amAVirtualNode()

return true if I am a virtual node (i.e. not a physical node or virtual host)

getCAFile()

The CA file location, may cause lookup of project/experiment

getCIDRForNet(net)

return a CIDR object that represents the address range for a net

getControlForNode(node)
getControlIF()
getControlIP()
getControlIfData()
getCurrentUser()
getExperiment()
getExperimentID()
getHostForName(name)
getIPForNet(net)

return IP list for the net

getIPForNode(node)

return IP list for the node

getIfFor(inet, mac)
getIfconfigData()
getInterfaceInfo(ip)

return IFObj for ip

getInterfaceList()

return the list of IFObj’s

getLocalIFList()

returns list of IF

getLocalIPList()

returns list of IP

getLocalVirtualNodes()

Get all the virtual nodes hosted by this machine

getNetForIP(ip)

returns the net name that this IP address is on

getNicknameData()
getNodeFile()

The node file location, may cause lookup of project/experiment

getNodeForIP(ip)

returns the node name with the IP address

getNodeIP(node, net)

returns the IP address for node interface connected to net

getNodeName()
getProject()
getSwapperData()
getTopomapData()
getVirtualHosts()

Get all the virtual hosting nodes for this experiment

loadControlInfo()

Load the control IP address and IF name files

loadEID()

Load the nickname file to get the node, experiment and project names

loadIfConfig()

Load all of the interface info from emulab/boot/tmcc/ifconfig

loadSwapper()
loadTopoFile()

# nodes: vname,links control,link5:10.1.1.3 node1,link5:10.1.1.2 # lans: vname,mask,cost link5,255.255.255.0,1

parseVarLine(line)
runCommandOn(node, command)

Run the command on another node in the testbed, only used during vnode emulab setup flaw for now