blob: 0d1b834149e2405dc8cb910492f6fc711bfd36b2 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001class Pronto:
2 def __init__( self ):
3 self.prompt = '(.*)'
Jon Hall4ba53f02015-07-29 13:07:41 -07004 self.timeout = 60
adminbae64d82013-08-01 10:50:15 -07005
6 def status(self, *options, **def_args ):
7 '''Possible Options :['Pronto-CLI']'''
8 arguments= ''
9 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070010 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070011 prompt = def_args.setdefault('prompt',self.prompt)
12 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070013 self.execute( cmd= "status "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070014 return main.TRUE
15
16 def port_show_*(self, *options, **def_args ):
17 '''Possible Options :['Pronto-CLI']'''
18 arguments= ''
19 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070020 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070021 prompt = def_args.setdefault('prompt',self.prompt)
22 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070023 self.execute( cmd= "port show * "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070024 return main.TRUE
25
26 def status_ProntoCLI(self, *options, **def_args ):
27 '''Possible Options :[]'''
28 arguments= ''
29 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070030 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070031 prompt = def_args.setdefault('prompt',self.prompt)
32 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070033 self.execute( cmd= "status Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070034 return main.TRUE
35
36 def port_show_*_ProntoCLI(self, *options, **def_args ):
37 '''Possible Options :[]'''
38 arguments= ''
39 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070040 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070041 prompt = def_args.setdefault('prompt',self.prompt)
42 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070043 self.execute( cmd= "port show * Pronto-CLI "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070044 return main.TRUE
45