Package TestON :: Package drivers :: Package common :: Package cli :: Module dpclidriver :: Class DPCliDriver
[hide private]
[frames] | no frames]

Class DPCliDriver

source code


Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
connect(self, **connectargs)
Connection will establish to the remote host using ssh.
source code
 
create_interfaces(self, net, number, start)
Creates a number,specified by 'number,' of subinterfaces on eth0.
source code
 
pingall_interfaces(self, netsrc, netstrt, netdst, destlogin, destip)
Copies the /tmp/ip_table{ net }.txt file from the machine you wish to ping, then runs fping with a source address of { netsrc }.
source code
 
disconnect(self) 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 

Connection will establish to the remote host using ssh. It will take user_name ,ip_address and password as arguments<br> and will return the handle.

Overrides: component.Component.connect

create_interfaces(self, net, number, start)

source code 

Creates a number,specified by 'number,' of subinterfaces on eth0. Ip addresses start at 'net'.'start'.1.1 with a 24 bit netmask. Addresses increment sequentially in the third quad, therefore all interfaces are in different subnets on the same machine. When the third quad reaches 255, it is reset to 1 and the second quad is incremented. Every single ip address is placed in a file in /tmp titled 'ip_table{net}.txt'. The file is used by 'pingall_interfaces()' as a fping argument

This method returns true if all interfaces are created without a hitch, and false if a single interface has issues

pingall_interfaces(self, netsrc, netstrt, netdst, destlogin, destip)

source code 

Copies the /tmp/ip_table{ net }.txt file from the machine you wish to ping, then runs fping with a source address of { netsrc }.{ netstrt }.1.1 on the copied file. Check every single response for reachable or unreachable. If all are reachable, function returns true. If a SINGLE host is unreachable, then the function stops and returns false. If fping is not installed, this function will install fping then run the same command

disconnect(self)

source code 
Overrides: component.Component.disconnect