RemoteMininetCliDriver is the basic driver which will handle the
Mininet functions. The main different between this and the
MininetCliDriver is that this one does not build the mininet. It assumes
that there is already a mininet running on the target.
|
|
|
connect(self,
**connectargs)
,user_name, ip_address, pwd,options ): Here the main is the TestON
instance after creating all the log handles. |
source code
|
|
|
checkForLoss(self,
pingList)
Returns main.FALSE for 0% packet loss and Returns main.ERROR if
"found multiple mininet" is found and Returns main.TRUE
else |
source code
|
|
|
pingLong(self,
**pingParams)
Starts a continuous ping on the mininet host outputting to a file in
the /tmp dir. |
source code
|
|
|
pingstatus(self,
**pingParams)
Tails the respective ping output file and check that there is a
moving "64 bytes" |
source code
|
|
|
|
|
|
|
pingHostOptical(self,
**pingParams)
This function is only for Packet Optical related ping Use the next
pingHost() function for all normal scenarios ) Ping from one mininet
host to another Currently the only supported Params: SRC and TARGET |
source code
|
|
|
pingHost(self,
**pingParams)
Pings between two hosts on remote mininet |
source code
|
|
|
checknum(self,
num)
Verifies the correct number of switches are running |
source code
|
|
|
startTcpdump(self,
filename,
intf="eth0",
port="port 6633",
user="admin")
Runs tcpdump on an interface and saves the file intf can be
specified, or the default eth0 is used |
source code
|
|
|
|
|
runOpticalMnScript(self,
name='onos',
ctrllerIP=None) |
source code
|
|
|
attachLincOESession(self)
Since executing opticalTest.py will give you mininet prompt, you
would at some point require to get onto console of LincOE
((linc@onosTestBench)1>) to execute commands like bring a optical
port up or down on a ROADM You can attach to console of Linc-OE
session by a cmd: sudo ~/linc-oe/rel/linc/bin/linc attach |
source code
|
|
|
|
|
setIpTablesOUTPUT(self,
dstIp,
dstPort,
action='add',
packetType='tcp',
rule='DROP')
Description:
add or remove iptables rule to DROP ( default )
packets from specific IP and PORT
Usage:
* specify action ( 'add' or 'remove' )
when removing, pass in the same argument as you would add. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from component.Component :
__getattr__ ,
cleanup ,
close_log_handles ,
config ,
experimentRun ,
get_version ,
log
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|