This Page

testbed.base — SEER testbed interface

class testbed.base.IFObj(ip, name, mac, mask)

Simple struct for maintining a tuple of interface information but with access by name

testbed.base.NIE()

Throw exception that something wasn’t implemented

class testbed.base.Testbed

Base testbed class that provides the ‘interface’ that user expect as well as providing property access for certain values

amAVirtualNode()

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

arch

Get the architecture string for this node

cafile

location of the CA certificate

controlif

local control interface name

controlip

local control interface IP address

eid

the experiment ‘id’ string

experiment

the experiment name

getCIDRForNet(net)

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

getControlForNode(node)

return IP or hostname to connect to the control interface of a node

getIPForNet(net)

return IP list for the net

getIPForNode(node)

return IP list for the node

getInterfaceInfo(ip)

returns a single IFObj for ip

getInterfaceList()

returns a list of IFObj’s

getLocalIFList()

returns list of interface names for this node

getLocalIPList()

returns list of IP addresses for this node

getLocalVirtualNodes()

Get all the virtual nodes hosted by this machine

getNetForIP(ip)

returns the net name that this IP address is on

getNetRoutes()

Get a dict with keys = networks in the topology and vals = IP of next hop

getNetsForNode(node)

returns the net that the node is connected to

getNodeBinaryTag(node)

return the binary string to use for looking up binary SEER packages

getNodeForIP(ip)

returns the node name with the IP address

getNodeIP(node, net)

returns the IP address for node interface connected to net

getNodeRoutes()

Get a dict with keys = nodes in the topology and vals = IP of next hop

getNodesForNet(net)

returns the nodes connected to a net

getVirtualHosts()

Get all the virtual hosting nodes for this experiment

installed

The file to list installed/failed modules in

nodefile

location of the node certificate

nodename

local node name

prefix

The seer base install prefix

project

the project name

readAllLines(fp)

‘macro’ for reading all lines of a file pointer and closing

readFirstLine(fp)

‘macro’ for reading the first line of a file pointer and closing

runCommandOn(node, command)

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

user

the experiment user