Package TestON :: Package drivers :: Package common :: Package cli :: Package emulator :: Module lincoedriver :: Class LincOEDriver
[hide private]
[frames] | no frames]

Class LincOEDriver

source code


LincOEDriver class will handle all emulator functions

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
connect(self, **connectargs)
Create ssh handle for Linc-OE cli
source code
 
startConsole(self) source code
 
build(self)
Build Linc-OE with the specified settings
source code
 
setInterfaceUp(self, intfs)
Specify interface to bring up.
source code
 
startSwitch(self, swId)
Start a logical switch using switch id
source code
 
stopSwitch(self, swId)
Stop a logical switch using switch id
source code
 
getDatapathId(self, swId)
Get datapath id of a specific switch by switch id
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
 
listPorts(self, swId)
List all ports of a switch by switch id
source code
 
portUp(self, swId, ptId)
Bring port up using switch id and port id
source code
 
portDown(self, swId, ptId)
Bring port down using switch id and port id
source code
 
stopLincOEConsole(self)
This function is only used for packet optical testing Send disconnect prompt to Linc-OE CLI ( CTRL+C ) and kill the linc process
source code
 
disconnect(self)
Send disconnect prompt to Linc-OE CLI ( CTRL+C ) and kill the linc process
source code
 
execute(self, **execparams)
It facilitates the command line execution of a given command. (Inherited from TestON.drivers.common.clidriver.CLI)
source code
 
onfail(self) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
remove_contol_chars(self, response) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
runAsSudoUser(self, handle, pwd, default) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
secureCopy(self, user_name, ip_address, filepath, pwd, dst_path)
Connection will establish to the remote host using ssh. (Inherited from TestON.drivers.common.clidriver.CLI)
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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

connect(self, **connectargs)

source code 

Create ssh handle for Linc-OE cli

Overrides: component.Component.connect

setInterfaceUp(self, intfs)

source code 

Specify interface to bring up. When Linc-OE is started, tap interfaces should be created. They must be brought up manually

disconnect(self)

source code 

Send disconnect prompt to Linc-OE CLI ( CTRL+C ) and kill the linc process

Overrides: component.Component.disconnect