Package TestON :: Package drivers :: Package common :: Package cli :: Package remotesys :: Module hpswitchdriver
[hide private]
[frames] | no frames]

Source Code for Module TestON.drivers.common.cli.remotesys.hpswitchdriver

 1  #!/usr/bin/env python 
 2  ''' 
 3  Created on 12-Feb-2013 
 4   
 5  @author: Anil Kumar (anilkumar.s@paxterrasolutions.com) 
 6   
 7  HPSwitchDriver is the basic driver which will handle the Mininet functions 
 8  ''' 
 9   
10  import pexpect 
11  import struct 
12  import fcntl 
13  import os 
14  import signal 
15  import re 
16  import sys 
17  import time 
18  import core.ofautomation 
19  sys.path.append("../") 
20  from drivers.common.clidriver import CLI 
21   
22 -class HPSwitchDriver(CLI):
23 ''' 24 HPSwitchDriver is the basic driver which will handle the Mininet functions 25 '''
26 - def __init__(self):
27 super(CLI, self).__init__()
28
29 - def connect(self,**connectargs):
30 for key in connectargs: 31 vars(self)[key] = connectargs[key] 32 33 self.name = self.options['name'] 34 35 self.handle = super(HPSwitchDriver,self).connect(user_name = self.user_name, ip_address = self.ip_address,port = self.port, pwd = self.pwd)
36