blob: 254ab1b86acb97e566037bde7f3e416efa6e03b7 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001#!/usr/bin/env python
2'''
3Created on 22-Nov-2012
4
5@author: Anil Kumar (anilkumar.s@paxterrasolutions.com)
6
7
8 TestON is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
12
13 TestON is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with TestON. If not, see <http://www.gnu.org/licenses/>.
20
21
22'''
23
24import struct, fcntl, os, sys, signal
25import sys, re
26sys.path.append("../")
27
28from drivers.component import Component
29class API(Component):
30 '''
31 This will define common functions for CLI included.
32 '''
33 def __init__(self):
34 super(Component, self).__init__()
35
36 def connect(self):
37 '''
38 Connection will establish to the remote host using ssh.
39 It will take user_name ,ip_address and password as arguments<br>
40 and will return the handle.
41 '''
42 super(API, self).connect()
43
44 return main.TRUE