blob: 2a7a1a3bc80976d04bfc2a0f5a598fcb57443e12 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001#!/usr/bin/env python
kelvin8ec71442015-01-15 16:57:00 -08002"""
3Created on 22-Nov-2012
Jeremy Songsterae01bba2016-07-11 15:39:17 -07004Modified 2015 by ON.Lab
5
6Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
7the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
8or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg>
adminbae64d82013-08-01 10:50:15 -07009
kelvin8ec71442015-01-15 16:57:00 -080010author:: Anil Kumar ( anilkumar.s@paxterrasolutions.com )
adminbae64d82013-08-01 10:50:15 -070011
12
13 TestON is free software: you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 2 of the License, or
kelvin8ec71442015-01-15 16:57:00 -080016 ( at your option ) any later version.
adminbae64d82013-08-01 10:50:15 -070017
18 TestON is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
kelvin8ec71442015-01-15 16:57:00 -080024 along with TestON. If not, see <http://www.gnu.org/licenses/>.
adminbae64d82013-08-01 10:50:15 -070025
26
kelvin8ec71442015-01-15 16:57:00 -080027"""
adminbae64d82013-08-01 10:50:15 -070028from drivers.component import Component
kelvin8ec71442015-01-15 16:57:00 -080029
30
31class API( Component ):
32
33 """
adminbae64d82013-08-01 10:50:15 -070034 This will define common functions for CLI included.
kelvin8ec71442015-01-15 16:57:00 -080035 """
36 def __init__( self ):
Devin Limdc78e202017-06-09 18:30:07 -070037 super( API, self ).__init__()
kelvin8ec71442015-01-15 16:57:00 -080038
39 def connect( self ):
40 """
adminbae64d82013-08-01 10:50:15 -070041 Connection will establish to the remote host using ssh.
42 It will take user_name ,ip_address and password as arguments<br>
kelvin8ec71442015-01-15 16:57:00 -080043 and will return the handle.
44 """
45 super( API, self ).connect()
46
47 return main.TRUE
48