Fix whitespace issues
Change-Id: I7c96843996f4847f9e15022f1dc6cd85e8a092f7
diff --git a/TestON/bin/cli.py b/TestON/bin/cli.py
index f6417a6..b515486 100755
--- a/TestON/bin/cli.py
+++ b/TestON/bin/cli.py
@@ -17,7 +17,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with TestON. If not, see <http://www.gnu.org/licenses/>.
+ along with TestON. If not, see <http://www.gnu.org/licenses/>.
'''
@@ -102,7 +102,7 @@
test.start()
else :
print main.TEST+ " test execution paused, please resume that before executing to another test"
-
+
def do_resume(self, line):
'''
resume command will continue the execution of paused test.
@@ -115,20 +115,20 @@
testthread.play()
else :
print "There is no test to resume"
-
+
def do_nextstep(self,line):
'''
- nextstep will execute the next-step of the paused test and
+ nextstep will execute the next-step of the paused test and
it will pause the test after finishing of step.
-
+
teston> nextstep
Will pause the test's execution, after completion of this step.....
-
+
teston> [2013-01-07 21:24:26.286601] [PoxTest] [STEP] 1.8: Checking the host reachability using pingHost
2013-01-07 21:24:26,455 - PoxTest - INFO - Expected Prompt Found
.....
teston>
-
+
'''
if testthread:
main.log.info("Executing the nextstep, Will pause test execution, after completion of the step")
@@ -137,17 +137,17 @@
testthread.pause()
else:
print "There is no paused test "
-
+
def do_dumpvar(self,line):
'''
dumpvar will print all the test data in raw format.
- usgae :
+ usgae :
teston>dumpvar main
Here 'main' will be the test object.
-
- teston>dumpvar params
+
+ teston>dumpvar params
here 'params' will be the parameters specified in the params file.
-
+
teston>dumpvar topology
here 'topology' will be topology specification of the test specified in topo file.
'''
@@ -161,25 +161,25 @@
print e
else :
print "There is no paused test "
-
+
def do_currentcase(self,line):
'''
currentcase will return the current case in the test execution.
-
+
teston>currentcase
Currently executing test case is: 2
-
+
'''
if testthread:
print "Currently executing test case is: "+str(main.CurrentTestCaseNumber)
else :
print "There is no paused test "
-
-
+
+
def do_currentstep(self,line):
'''
currentstep will return the current step in the test execution.
-
+
teston>currentstep
Currently executing test step is: 2.3
'''
@@ -187,25 +187,25 @@
print "Currently executing test step is: "+str(main.CurrentTestCaseNumber)+'.'+str(main.stepCount)
else :
print "There is no paused test "
-
-
+
+
def do_stop(self,line):
'''
Will stop the paused test, if any !
'''
if testthread:
testthread.stop()
-
+
return 'exited by user command'
-
+
def do_gettest(self,line):
'''
gettest will return the test name which is under execution or recently executed.
-
+
Test under execution:
- teston>gettest
+ teston>gettest
Currently executing Test is: PoxTest
-
+
Test recently executed:
Recently executed test is: MininetTest
'''
@@ -214,10 +214,10 @@
print "Currently executing Test is: "+main.TEST
else :
print "Recently executed test is: "+main.TEST
-
+
except NameError:
print "There is no previously executed Test"
-
+
def do_showlog(self,line):
'''
showlog will show the test's Log
@@ -231,22 +231,22 @@
try :
if testthread :
print "Currently executing Test's log is: "+main.LogFileName
-
+
else :
print "Last executed test's log is : "+main.LogFileName
-
+
logFile = main.LogFileName
logFileHandler = open(logFile, 'r')
for msg in logFileHandler.readlines() :
print msg,
-
+
logFileHandler.close()
-
+
except NameError:
print "There is no previously executed Test"
-
-
-
+
+
+
def parseArgs(self,args,options):
'''
This will parse the command line arguments.
@@ -263,9 +263,9 @@
options['testname'] = option
except IndexError,e:
print e
-
+
return options
-
+
def initOptions(self,options):
'''
This will initialize the commandline options.
@@ -276,8 +276,8 @@
options['testdir'] = None
options['testcases'] = None
options['onoscell'] = None
- return options
-
+ return options
+
def testcasesInRange(self,index,option,args,options):
'''
This method will handle testcases list,specified in range [1-10].
@@ -293,16 +293,16 @@
i = start_case
while i <= end_case:
testcases.append(i)
- i= i+1
+ i= i+1
else :
print "Please specify testcases properly like 1-5"
else :
options[option] = args[index]
return options
options[option] = str(testcases)
-
+
return options
-
+
def cmdloop(self, intro=introduction):
print introduction
while True:
@@ -330,23 +330,23 @@
def do_py( self, line ):
'''
Evaluate a Python expression.
-
+
py main.log.info("Sample Log Information")
2013-01-07 12:07:26,804 - PoxTest - INFO - Sample Log Information
-
+
'''
try:
exec( line )
except Exception, e:
output( str( e ) + '\n' )
-
+
def do_interpret(self,line):
'''
interpret will translate the single line openspeak statement to equivalent python script.
-
+
teston> interpret ASSERT result EQUALS main.TRUE ONPASS "Ping executed successfully" ONFAIL "Ping failed"
utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Ping executed successfully",onfail="Ping failed")
-
+
'''
from core import openspeak
ospk = openspeak.OpenSpeak()
@@ -355,7 +355,7 @@
print translated_code
except AttributeError, e:
print 'Dynamic params are not allowed in single statement translations'
-
+
def do_do (self,line):
'''
Do will translate and execute the openspeak statement for the paused test.
@@ -371,21 +371,21 @@
print 'Dynamic params are not allowed in single statement translations'
else :
print "Do will translate and execute the openspeak statement for the paused test.\nPlease use interpret to translate the OpenSpeak statement."
-
+
def do_compile(self,line):
'''
compile will translate the openspeak (.ospk) file into TestON test script (python).
- It will receive the openspeak file path as input and will generate
- equivalent test-script file in the same directory.
-
+ It will receive the openspeak file path as input and will generate
+ equivalent test-script file in the same directory.
+
usage:
-----
teston>compile /home/openflow/TestON/PoxTest.ospk
-
+
Auto-generated test-script file is /home/openflow/TestON/PoxTest.py
'''
from core import openspeak
- openspeak = openspeak.OpenSpeak()
+ openspeak = openspeak.OpenSpeak()
openspeakfile = line
if os.path.exists(openspeakfile) :
openspeak.compiler(openspeakfile=openspeakfile,writetofile=1)
@@ -397,7 +397,7 @@
"Exit"
if testthread:
testthread.stop()
-
+
sys.exit()
return 'exited by user command'
@@ -419,16 +419,16 @@
'''
Read shell commands from an input file and execute them sequentially.
cmdsource.txt :
-
+
"pwd
ls "
-
+
teston>source /home/openflow/cmdsource.txt
/home/openflow/TestON/bin/
cli.py __init__.py
-
+
'''
-
+
args = line.split()
if len(args) != 1:
error( 'usage: source <file>\n' )
@@ -443,15 +443,15 @@
break
except IOError:
error( 'error reading file %s\n' % args[ 0 ] )
-
+
def do_updatedriver(self,line):
'''
updatedriver will update the given driver name which exists into mentioned config file.
It will receive two optional arguments :
-
- 1. Config File Path
+
+ 1. Config File Path
2. Drivers List to be updated.
-
+
Default : config file = "~/TestON/config/updatedriver" ,
Driver List = all drivers specified in config file .
'''
@@ -464,28 +464,28 @@
index = index + 1
config = args[index]
elif option == 'drivers' :
- index = index + 1
+ index = index + 1
drivers = args[index]
except IndexError:
- pass
+ pass
import updatedriver
converter = updatedriver.UpdateDriver()
-
+
if config == '':
path = re.sub("(bin)$", "", os.getcwd())
config = path + "/config/updatedriver.cfg"
configDict = converter.configparser(config)
-
+
else :
converter.configparser(config)
configDict = converter.configparser(config)
-
-
+
+
converter.writeDriver(drivers)
-
-
-
-
+
+
+
+
def do_time( self, line ):
"Measure time taken for any command in TestON."
start = time.time()
@@ -535,7 +535,7 @@
result = self.test_on.cleanup()
self.is_stop = True
- __builtin__.testthread = False
+ __builtin__.testthread = False
def pause(self):
'''
@@ -551,17 +551,17 @@
'''
self._stopevent.clear()
cli.pause = False
-
+
def stop(self):
'''
Will stop the test execution.
'''
-
+
print "Stopping the test"
self.is_stop = True
cli.stop = True
__builtin__.testthread = False
-
+
def output(msg):
'''
Simply, print the message in console
diff --git a/TestON/bin/generatedriver.py b/TestON/bin/generatedriver.py
index 80dbd08..0bd3a0a 100644
--- a/TestON/bin/generatedriver.py
+++ b/TestON/bin/generatedriver.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
'''
Created on 11-Oct-2012
-
+
@authors: Anil Kumar (anilkumar.s@paxterrasolutions.com),
TestON is free software: you can redistribute it and/or modify
@@ -15,10 +15,10 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with TestON. If not, see <http://www.gnu.org/licenses/>.
+ along with TestON. If not, see <http://www.gnu.org/licenses/>.
-
+
'''
import pexpect
import struct, fcntl, os, sys, signal
@@ -27,7 +27,7 @@
class GenerateDriver():
'''
- This will
+ This will
'''
def __init__(self):
self.default = ''
@@ -47,28 +47,28 @@
sys.exit()
print self.config_details
self.device_name = ''
-
+
def connect(self,**connectargs):
'''
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.
+ and will return the handle.
'''
for key in connectargs:
vars(self)[key] = connectargs[key]
-
+
ssh_newkey = 'Are you sure you want to continue connecting'
refused = "ssh: connect to host "+self.ip_address+" port 22: Connection refused"
if self.port:
self.handle =pexpect.spawn('ssh -p '+self.port+' '+self.user_name+'@'+self.ip_address,maxread=50000)
else :
self.handle =pexpect.spawn('ssh '+self.user_name+'@'+self.ip_address,maxread=50000)
-
+
self.logfile_handler = open(os.getcwd()+"/GenerateDriver.log","w+")
self.handle.logfile = self.logfile_handler
i=self.handle.expect([ssh_newkey,'password:',pexpect.EOF,pexpect.TIMEOUT,refused],10)
-
- if i==0:
+
+ if i==0:
self.handle.sendline('yes')
i=self.handle.expect([ssh_newkey,'password:',pexpect.EOF,pexpect.TIMEOUT])
return self.handle
@@ -80,16 +80,16 @@
print "ssh: connect to host "+self.ip_address+": Error"
return False
elif i==3: #timeout
-
+
print "ssh: connect to host "+self.ip_address+": Connection timed out"
return False
elif i==4:
print "ssh: connect to host "+self.ip_address+": Connection refused"
return False
- self.handle.sendline("\r")
+ self.handle.sendline("\r")
return self.handle
-
+
def execute(self, **execparams):
'''
This method will execute the command and will check for the expected prompt.
@@ -98,10 +98,10 @@
defaultPrompt = '.*[\$>\#]'
for key in execparams:
vars(self)[key] = execparams[key]
-
+
self.handle.sendline(self.cmd)
- timeoutVar = self.timeout if self.timeout else 10
-
+ timeoutVar = self.timeout if self.timeout else 10
+
index = self.handle.expect([self.prompt, "byte\s\d+", 'Command not found.', pexpect.TIMEOUT,"\n:",pexpect.EOF], timeout = timeoutVar)
if index == 0:
self.LASTRSP = self.LASTRSP + self.handle.before
@@ -118,10 +118,10 @@
self.LASTRSP = self.LASTRSP + self.handle.before
#print self.LASTRSP
elif index ==2:
- print "Command not found"
+ print "Command not found"
self.LASTRSP = self.LASTRSP + self.handle.before
elif index ==3:
- print "Expected Prompt not found , Time Out!!"
+ print "Expected Prompt not found , Time Out!!"
return False
elif index == 4:
@@ -134,21 +134,21 @@
indexMore = self.handle.expect(["\n:", self.prompt,".*",pexpect.EOF,pexpect.TIMEOUT], timeout = timeoutVar)
self.LASTRSP = self.LASTRSP + self.handle.before
-
+
return self.LASTRSP
-
+
def configure(self):
'''
Will start the Configure mode of the device.
'''
config_result = self.execute(cmd="configure",prompt='\#',timeout=10)
return config_result
-
+
def get_command_help(self,command):
'''
Will get the help of the Command
'''
-
+
self.handle.setecho(False)
help_keyword = self.config_details['device'][self.device_name]['help_keyword']
interrupt_key = self.config_details['device'][self.device_name]['interrupt_key']
@@ -157,12 +157,12 @@
self.handle.sendcontrol(interrupt_key)
#print command_details
return command_details
-
+
def get_command_details(self,command):
'''
Will Update the command_dictionary with the available commands details
'''
-
+
temp_dictionary = {}
command_resulut = self.get_command_help(command)
try :
@@ -183,15 +183,15 @@
match_command = match.group(0)
print match_command
options_list.append(match_command)
-
- temp_dictionary[command] = options_list
+
+ temp_dictionary[command] = options_list
self.command_dictionary[command] = options_list
self.print_details(self.command_dictionary)
print "temp dir: --------"
print temp_dictionary
print "-------------"
return temp_dictionary
-
+
def print_details(self,command_dictionary):
'''
Will print the details in Tree Format
@@ -207,10 +207,10 @@
if len(self.commnads_ordered_list[i]) > len(self.commnads_ordered_list[i+1]):
sorted = False
self.commnads_ordered_list[i], self.commnads_ordered_list[i+1] = self.commnads_ordered_list[i+1], self.commnads_ordered_list[i]
-
+
for key in self.commnads_ordered_list:
- print key +"\t "+str(command_dictionary[key])
- print "\n\n"
+ print key +"\t "+str(command_dictionary[key])
+ print "\n\n"
def get_details_recursive(self,main_comand):
@@ -222,7 +222,7 @@
if main_result_dcitionary :
for key in main_result_dcitionary.keys():
for index, each_option in enumerate(main_result_dcitionary[key]) :
-
+
if re.search(self.config_details['device'][self.device_name]['end_pattern']+"|^\.|^\d",str(main_result_dcitionary[key][index])):
print "Reached the last argument for this "+main_comand+" "+str(each_option)+"\n"
main_result_dcitionary[key].remove(each_option)
@@ -232,14 +232,14 @@
main_result_dcitionary[key].remove(each_option)
break
result_dcitionary = self.get_details_recursive(main_comand+" "+str(each_option))
-
+
return
def create_driver(self):
name = self.device_name
driver_file_data = 'class '+name +":\n"
driver_file_data = driver_file_data + " def __init__( self ):\n"
driver_file_data = driver_file_data + " self.prompt = '(.*)'\n self.timeout = 60 \n\n"
-
+
for index,command in enumerate(self.commnads_ordered_list) :
api_data = ' def '
command_as_api = re.sub(" ","_" , command, 0)
@@ -259,11 +259,11 @@
command_temp = command_temp + c
if command_temp[len(command_temp)-1] == "_":
command_temp = command_temp[0:len(command_temp)-1]
- command_as_api = command_temp
+ command_as_api = command_temp
#options = ''
#for option in self.command_dictionary[command]:
#options = options+',' + option
-
+
#options = re.sub("^\s*,|,$","" , options, 0)
api_data = api_data + command_as_api+"(self, *options, **def_args ):\n"
api_data = api_data + " '''Possible Options :"+str(self.command_dictionary[command])+"'''\n"
@@ -272,19 +272,19 @@
api_data = api_data + " arguments = arguments + option +' ' \n"
api_data = api_data + " prompt = def_args.setdefault('prompt',self.prompt)\n"
api_data = api_data + " timeout = def_args.setdefault('timeout',self.timeout)\n"
-
+
api_data = api_data + " self.execute( cmd= \""+ command + " \"+ arguments, prompt = prompt, timeout = timeout ) \n"
api_data = api_data + " return main.TRUE\n"
-
+
driver_file_data = driver_file_data + api_data +"\n"
driver_file = open(os.getcwd()+"/"+name.lower()+".py", 'w')
driver_file.write(driver_file_data)
print driver_file_data
-
+
def disconnect(self):
result = True
return result
-
+
import pexpect
if __name__ == "__main__":
@@ -305,11 +305,11 @@
for root_command in commandlist :
generate.get_details_recursive(root_command)
-
+
generate.create_driver()
generate.disconnect()
#generate.get_command_details(main_command)
else :
print "Connection Failed to the host"
-
-
+
+
diff --git a/TestON/bin/nec.py b/TestON/bin/nec.py
index f5e652a..ac95238 100644
--- a/TestON/bin/nec.py
+++ b/TestON/bin/nec.py
@@ -1,545 +1,545 @@
class NEC:
def __init__( self ):
self.prompt = '(.*)'
- self.timeout = 60
+ self.timeout = 60
def show(self, *options, **def_args ):
'''Possible Options :[' access-filter ', ' accounting ', ' acknowledgments ', ' auto-config ', ' axrp ', ' cfm ', ' channel-group ', ' clock ', ' config-lock-status ', ' cpu ', ' dhcp ', ' dot1x ', ' dumpfile ', ' efmoam ', ' environment ', ' file ', ' flash ', ' gsrp ', ' history ', ' igmp-snooping ', ' interfaces ', ' ip ', ' ip-dual ', ' ipv6-dhcp ', ' license ', ' lldp ', ' logging ', ' loop-detection ', ' mac-address-table ', ' mc ', ' memory ', ' mld-snooping ', ' netconf ', ' netstat ', ' ntp ', ' oadp ', ' openflow ', ' port ', ' power ', ' processes ', ' qos ', ' qos-flow ', ' sessions ', ' sflow ', ' spanning-tree ', ' ssh ', ' system ', ' tcpdump ', ' tech-support ', ' track ', ' version ', ' vlan ', ' vrrpstatus ', ' whoami ']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_ip(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show ip "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show ip "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_mc(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show mc "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show mc "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_cfm(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show cfm "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show cfm "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_ntp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show ntp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show ntp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_ssh(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show ssh "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show ssh "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_qos(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show qos "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show qos "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_cpu(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show cpu "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show cpu "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_vlan(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show vlan "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show vlan "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_lldp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show lldp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show lldp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_dhcp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show dhcp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show dhcp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_axrp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show axrp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show axrp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_oadp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show oadp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show oadp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_gsrp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show gsrp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show gsrp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_port(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show port "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show port "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_file(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show file "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show file "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_power(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show power "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show power "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_clock(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show clock "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show clock "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_dot1x(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show dot1x "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show dot1x "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_sflow(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show sflow "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show sflow "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_track(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show track "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show track "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_flash(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show flash "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show flash "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_system(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show system "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show system "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_whoami(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show whoami "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show whoami "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_efmoam(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show efmoam "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show efmoam "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_memory(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show memory "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show memory "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_tcpdump(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show tcpdump "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show tcpdump "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_history(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show history "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show history "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_logging(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show logging "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show logging "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_license(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show license "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show license "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_netstat(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show netstat "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show netstat "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_version(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show version "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show version "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_netconf(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show netconf "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show netconf "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_ipdual(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show ip-dual "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show ip-dual "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_sessions(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show sessions "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show sessions "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_qosflow(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show qos-flow "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show qos-flow "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_openflow(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show openflow "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show openflow "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_dumpfile(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show dumpfile "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show dumpfile "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_ipv6dhcp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show ipv6-dhcp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show ipv6-dhcp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_processes(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show processes "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show processes "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_vrrpstatus(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show vrrpstatus "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show vrrpstatus "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_environment(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show environment "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show environment "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_autoconfig(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show auto-config "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show auto-config "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_techsupport(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show tech-support "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show tech-support "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_mldsnooping(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show mld-snooping "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show mld-snooping "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_igmpsnooping(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show igmp-snooping "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show igmp-snooping "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_channelgroup(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show channel-group "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show channel-group "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_spanningtree(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show spanning-tree "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show spanning-tree "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_loopdetection(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show loop-detection "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show loop-detection "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_acknowledgments(self, *options, **def_args ):
'''Possible Options :[' interface ']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show acknowledgments "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show acknowledgments "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_macaddresstable(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show mac-address-table "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show mac-address-table "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_configlockstatus(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show config-lock-status "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show config-lock-status "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_acknowledgments_interface(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show acknowledgments interface "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show acknowledgments interface "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
diff --git a/TestON/bin/pronto.py b/TestON/bin/pronto.py
index b6dcffd..0d1b834 100644
--- a/TestON/bin/pronto.py
+++ b/TestON/bin/pronto.py
@@ -1,45 +1,45 @@
class Pronto:
def __init__( self ):
self.prompt = '(.*)'
- self.timeout = 60
+ self.timeout = 60
def status(self, *options, **def_args ):
'''Possible Options :['Pronto-CLI']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "status "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "status "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def port_show_*(self, *options, **def_args ):
'''Possible Options :['Pronto-CLI']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "port show * "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "port show * "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def status_ProntoCLI(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "status Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "status Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def port_show_*_ProntoCLI(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "port show * Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "port show * Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
diff --git a/TestON/bin/updatedriver.py b/TestON/bin/updatedriver.py
index b023e5d..bd6974d 100644
--- a/TestON/bin/updatedriver.py
+++ b/TestON/bin/updatedriver.py
@@ -17,7 +17,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with TestON. If not, see <http://www.gnu.org/licenses/>.
+ along with TestON. If not, see <http://www.gnu.org/licenses/>.
'''
@@ -29,18 +29,18 @@
self.configFile = "/home/openflow/TestON/config/ofadriver.cfg"
self.methodDict = {}
self.fileDict = {}
-
+
def getmethods(self,modulePath,Class) :
'''
This will get the list of methods in given module or class.
- It accepts the module path and class name. If there is no
+ It accepts the module path and class name. If there is no
class name then it has be mentioned as None.
'''
methodList = []
moduleList = modulePath.split("/")
newModule = ".".join([moduleList[len(moduleList) - 2],moduleList[len(moduleList) - 1]])
- print "Message : Method list is being obatined , Please wait ..."
+ print "Message : Method list is being obatined , Please wait ..."
try :
if Class :
Module = __import__(moduleList[len(moduleList) - 1], globals(), locals(), [Class], -1)
@@ -55,8 +55,8 @@
self.ClassList = ClassList
except :
print "Error : " +str(sys.exc_info()[1])
-
-
+
+
self.method = methodList
return self.method
@@ -101,7 +101,7 @@
'''
It will parse the config file (ofa.cfg) and return as dictionary
'''
-
+
matchFileName = re.match(r'(.*)\.cfg', fileName, re.M | re.I)
if matchFileName:
self.configFile = fileName
@@ -111,28 +111,28 @@
return self.configDict
except :
print "Error : Config file " + self.configFile + " not defined properly or file path error"
-
-
+
+
def getList(self):
'''
- This method will maintain the hash with module->class->methodList or
+ This method will maintain the hash with module->class->methodList or
module -> methodList .It will return the same Hash.
'''
classList = []
try :
moduleList = self.configDict['config-driver']['importTypes'][self.driver]['modules'].keys()
except KeyError,e:
- print "Error : Module Does not Exists"
+ print "Error : Module Does not Exists"
print e
return False
-
+
for index,value in enumerate(moduleList):
modulePath = self.configDict['config-driver']['importTypes'][self.driver]['modules'][value]['path']
moduleName = self.configDict['config-driver']['importTypes'][self.driver]['modules'][value]['name']
try :
pathList = self.configDict['config-driver']['importTypes'][self.driver]['modules'][value]['set-path'].split(",")
- sys.path.extend(pathList)
+ sys.path.extend(pathList)
except KeyError :
print "Error : No System Path is given "
pass
@@ -159,9 +159,9 @@
def class_ignoreList(self,module) :
'''
- It removes the ignored classes for each module mention in ofadriver.cfg
+ It removes the ignored classes for each module mention in ofadriver.cfg
'''
- class_ignoreList = []
+ class_ignoreList = []
if self.configDict['config-driver']['importTypes'][self.driver]['modules'][module]['classes'] == None :
pass
else :
@@ -176,7 +176,7 @@
if className in self.methodDict[moduleName].keys():
del self.methodDict[moduleName][className]
except AttributeError:
- pass
+ pass
return self.methodDict
def method_ignoreList(self,module,className):
@@ -195,7 +195,7 @@
try :
method_ignoreList = str(self.configDict['config-driver']['importTypes'][self.driver]['modules'][module]['classes'][className]['methods']['ignore-list']).split(",")
except TypeError :
- pass
+ pass
except KeyError :
print "Message : No Ignore-List Exists , proceeding for looking add method"
self.add_method(module,className)
@@ -213,7 +213,7 @@
print "Message : Method " + method + "Does not exist in module " + moduleName + ", Continue to rest execution"
pass
- else :
+ else :
if method in self.methodDict[moduleName][className] :
self.methodDict[moduleName][className].remove(method)
self.add_method(module,className)
@@ -221,7 +221,7 @@
def add_method(self,module,className) :
'''
- This will add the methods(mentioned in ofadriver.cfg file) into method list if it doesnot exists in list.
+ This will add the methods(mentioned in ofadriver.cfg file) into method list if it doesnot exists in list.
'''
method_List = []
try :
@@ -235,13 +235,13 @@
method_List = str(self.configDict['config-driver']['importTypes'][self.driver]['modules'][module]['classes'][className]['methods']['add-list']).split(",")
except TypeError :
pass
-
+
except KeyError :
print "Message : No Add-List Exists , Proceeding with all available methods"
return True
moduleName = self.configDict['config-driver']['importTypes'][self.driver]['modules'][module]['name']
for index, method in enumerate(method_List) :
- if className == None :
+ if className == None :
self.methodDict[moduleName] = []
self.methodDict[moduleName].append(method)
else :
@@ -256,19 +256,19 @@
moduleList = modulePath.split("/")
newModule = ".".join([moduleList[len(moduleList) - 2],moduleList[len(moduleList) - 1]])
if className == None :
- methodArgs = self.getargs(newModule,None,self.methodDict[moduleName])
- self.fileDict[moduleName] = methodArgs
+ methodArgs = self.getargs(newModule,None,self.methodDict[moduleName])
+ self.fileDict[moduleName] = methodArgs
else :
methodArgs = self.getargs(newModule,className,self.methodDict[moduleName][className])
self.fileDict[className] = methodArgs
return self.fileDict
-
+
def appendDriver(self,fileName):
'''
This will append the given driver file with methods along with arguments.
'''
matchFileName = re.match(r'(.*)\.py', fileName, re.M | re.I)
-
+
if matchFileName:
fileHandle = None
try :
@@ -294,7 +294,7 @@
print "Error : Driver file " + fileName + "does not exists"
else :
print "Error : File name " + fileName + "is not python module"
- return False
+ return False
def writeDriver(self, driver) :
@@ -314,15 +314,15 @@
for index, driverName in enumerate(self.configDict['config-driver']['importTypes'].keys()):
self.driver = driverName
result = self.getList()
- if result :
+ if result :
self.getDriverPath()
self.appendDriver(self.driverPath + self.driver + ".py")
self.driverList.append(self.driverPath + self.driver + ".py")
else :
- return False
+ return False
else :
for index, driverName in enumerate(drivers) :
-
+
self.driver = driverName
result = self.getList()
if result :
@@ -330,40 +330,40 @@
self.appendDriver(self.driverPath + self.driver + ".py")
self.driverList.append(self.driverPath + self.driver + ".py")
else :
- return False
-
+ return False
+
print "=" * 90
print " " * 30 + "Output Driver File :"
- print ",\n".join(self.driverList)
+ print ",\n".join(self.driverList)
print "=" * 90
- return True
-
+ return True
-
+
+
def getDriverPath(self):
'''
- It will set the driver path and returns it.If driver path is not specified then it will take
+ It will set the driver path and returns it.If driver path is not specified then it will take
default path (/lib/updatedriver/).
- '''
+ '''
self.driverPath = ''
- try :
+ try :
self.driverPath = self.configDict['config-driver']['importTypes'][self.driver]['driver-path']
-
+
except KeyError :
- path = re.sub("(bin)$", "", os.getcwd())
+ path = re.sub("(bin)$", "", os.getcwd())
self.driverPath = path + "/lib/updatedriver/"
return self.driverPath
def printHeader(self,driver):
content = ''
-
+
print " " * 10 +"=" * 90 + "\n"
- content = content + " " * 30 + "*-- Welcome to Updated Driver --*\n"
+ content = content + " " * 30 + "*-- Welcome to Updated Driver --*\n"
content = content + "\n" + " " * 10 + " " * 10 + "Config File : " + "/home/openflow/TestON/config/ofadriver.py"
- content = content + "\n" + " " * 10 + " " * 10 + "Drivers Name : " + driver
- print content
- print " " * 10 + "=" * 90
+ content = content + "\n" + " " * 10 + " " * 10 + "Drivers Name : " + driver
+ print content
+ print " " * 10 + "=" * 90
diff --git a/TestON/bin/vyatta.py b/TestON/bin/vyatta.py
index 31bb57e..225e578 100644
--- a/TestON/bin/vyatta.py
+++ b/TestON/bin/vyatta.py
@@ -11,692 +11,692 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with TestON. If not, see <http://www.gnu.org/licenses/>.
+ along with TestON. If not, see <http://www.gnu.org/licenses/>.
'''
class Vyatta:
def __init__( self ):
self.prompt = '(.*)'
- self.timeout = 60
+ self.timeout = 60
def show_interfaces(self, *options, **def_args ):
'''Possible Options :['ethernet', 'loopback']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet(self, *options, **def_args ):
'''Possible Options :['eth0', 'eth1']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_loopback(self, *options, **def_args ):
'''Possible Options :['lo']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces loopback "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces loopback "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet(self, *options, **def_args ):
'''Possible Options :['eth0', 'eth1']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_loopback_lo(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces loopback lo "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces loopback lo "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0(self, *options, **def_args ):
'''Possible Options :['address', 'bond-group', 'bridge-group', 'description', 'dhcpv6-options', 'DHCPv6', 'disable', 'disable-flow-control', 'Disable', 'disable-link-detect', 'Ignore', 'duplex', 'firewall', 'hw-id', 'ip', 'ipv6', 'mac', 'mirror', 'mtu', 'policy', 'pppoe']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1(self, *options, **def_args ):
'''Possible Options :['address', 'duplex', 'hw-id', 'smp_affinity', 'speed']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0(self, *options, **def_args ):
'''Possible Options :['duplex', 'hw-id', 'smp_affinity', 'speed']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip(self, *options, **def_args ):
'''Possible Options :['enable-proxy-arp', 'Enable', 'ospf', 'rip']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_hwid(self, *options, **def_args ):
'''Possible Options :['Media']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_DHCPv6(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 DHCPv6 "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 DHCPv6 "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_duplex(self, *options, **def_args ):
'''Possible Options :['auto', 'half', 'full']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_hwid(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 hw-id "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 hw-id "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_speed(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 speed "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 speed "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_speed(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 speed "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 speed "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_hwid(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_Ignore(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 Ignore "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 Ignore "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_duplex(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 duplex "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 duplex "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_duplex(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf(self, *options, **def_args ):
'''Possible Options :['authentication', 'OSPF', 'bandwidth', 'cost', 'dead-interval', 'Interval', 'hello-interval', 'Interval', 'mtu-ignore', 'network', 'priority', 'retransmit-interval', 'Interval', 'transmit-delay', 'Link']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_Disable(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 Disable "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 Disable "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_disable(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 disable "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 disable "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_address(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 address "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 address "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall(self, *options, **def_args ):
'''Possible Options :['in', 'local', 'out']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_address(self, *options, **def_args ):
'''Possible Options :['192.168.56.81/24']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 address "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 address "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_Enable(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip Enable "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip Enable "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_bondgroup(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 bond-group "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 bond-group "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_duplex_half(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 duplex half "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 duplex half "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_in(self, *options, **def_args ):
'''Possible Options :['ipv6-name', 'name']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall in "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall in "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_speed_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 speed auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 speed auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_description(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 description "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 description "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_speed_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 speed auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 speed auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_hwid_Media(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 hw-id Media "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 hw-id Media "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_duplex_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_duplex_full(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 duplex full "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 duplex full "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_duplex_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_OSPF(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf OSPF "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf OSPF "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_out(self, *options, **def_args ):
'''Possible Options :['ipv6-name', 'name']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall out "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall out "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_bridgegroup(self, *options, **def_args ):
'''Possible Options :['bridge', 'cost', 'priority']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 bridge-group "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 bridge-group "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_duplex_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_cost(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf cost "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf cost "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_smp_affinity(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_smp_affinity(self, *options, **def_args ):
'''Possible Options :['auto']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_local(self, *options, **def_args ):
'''Possible Options :['ipv6-name', 'name']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall local "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall local "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_dhcpv6options(self, *options, **def_args ):
'''Possible Options :['parameters-only', 'Acquire', 'temporary']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_in_name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall in name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall in name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_bridgegroup_cost(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 bridge-group cost "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 bridge-group cost "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_out_name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall out name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall out name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_bandwidth(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf bandwidth "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf bandwidth "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth0_smp_affinity_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth0 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth0 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def show_interfaces_ethernet_eth1_smp_affinity_auto(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "show interfaces ethernet eth1 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "show interfaces ethernet eth1 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_enableproxyarp(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip enable-proxy-arp "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip enable-proxy-arp "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_disablelinkdetect(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 disable-link-detect "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 disable-link-detect "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_local_name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall local name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall local name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_bridgegroup_bridge(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 bridge-group bridge "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 bridge-group bridge "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_disableflowcontrol(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 disable-flow-control "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 disable-flow-control "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_bridgegroup_priority(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 bridge-group priority "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 bridge-group priority "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_in_ipv6name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall in ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall in ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_dhcpv6options_Acquire(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options Acquire "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options Acquire "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_out_ipv6name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall out ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall out ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_authentication(self, *options, **def_args ):
'''Possible Options :['md5', 'plaintext-password', 'Plain']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_firewall_local_ipv6name(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 firewall local ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 firewall local ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_dhcpv6options_temporary(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options temporary "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options temporary "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_authentication_md5(self, *options, **def_args ):
'''Possible Options :['key-id']'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_authentication_Plain(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication Plain "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication Plain "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_dhcpv6options_parametersonly(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options parameters-only "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options parameters-only "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_authentication_md5_keyid(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 key-id "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 key-id "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE
def set_interfaces_ethernet_eth0_ip_ospf_authentication_plaintextpassword(self, *options, **def_args ):
'''Possible Options :[]'''
arguments= ''
for option in options:
- arguments = arguments + option +' '
+ arguments = arguments + option +' '
prompt = def_args.setdefault('prompt',self.prompt)
timeout = def_args.setdefault('timeout',self.timeout)
- self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication plaintext-password "+ arguments, prompt = prompt, timeout = timeout )
+ self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication plaintext-password "+ arguments, prompt = prompt, timeout = timeout )
return main.TRUE