1
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
23 '''
24 HPSwitchDriver is the basic driver which will handle the Mininet functions
25 '''
28
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