blob: b6dcffd0dc07697b494d426ff30a12724d401cd3 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001class Pronto:
2 def __init__( self ):
3 self.prompt = '(.*)'
4 self.timeout = 60
5
6 def status(self, *options, **def_args ):
7 '''Possible Options :['Pronto-CLI']'''
8 arguments= ''
9 for option in options:
10 arguments = arguments + option +' '
11 prompt = def_args.setdefault('prompt',self.prompt)
12 timeout = def_args.setdefault('timeout',self.timeout)
13 self.execute( cmd= "status "+ arguments, prompt = prompt, timeout = timeout )
14 return main.TRUE
15
16 def port_show_*(self, *options, **def_args ):
17 '''Possible Options :['Pronto-CLI']'''
18 arguments= ''
19 for option in options:
20 arguments = arguments + option +' '
21 prompt = def_args.setdefault('prompt',self.prompt)
22 timeout = def_args.setdefault('timeout',self.timeout)
23 self.execute( cmd= "port show * "+ arguments, prompt = prompt, timeout = timeout )
24 return main.TRUE
25
26 def status_ProntoCLI(self, *options, **def_args ):
27 '''Possible Options :[]'''
28 arguments= ''
29 for option in options:
30 arguments = arguments + option +' '
31 prompt = def_args.setdefault('prompt',self.prompt)
32 timeout = def_args.setdefault('timeout',self.timeout)
33 self.execute( cmd= "status Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
34 return main.TRUE
35
36 def port_show_*_ProntoCLI(self, *options, **def_args ):
37 '''Possible Options :[]'''
38 arguments= ''
39 for option in options:
40 arguments = arguments + option +' '
41 prompt = def_args.setdefault('prompt',self.prompt)
42 timeout = def_args.setdefault('timeout',self.timeout)
43 self.execute( cmd= "port show * Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
44 return main.TRUE
45