Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for line in f:
- line = line.rstrip()
- if re.match("da",line):
- (da,ID) = (line.split())[1:3]
- try:
- da_dict[da].append(ID)
- except KeyError:
- da_dict[da] = [ID]
- if re.match("cc",line):
- cc = (line.split())[1]
- if re.match("user",line):
- user = (line.split())[1]
- if re.match("pass",line):
- passwd = (line.split())[1]
- aDummyHandler = Dummy()
- protocol.rci_facility.handlers[:0] = [aDummyHandler]
- for key in da_dict.iterkeys():
- for an_id in key:
- devices = device_slimulator.connect_devices(key, 1,
- cc,da_dict[key][an_id],username=user,password=passwd,protocol=protocol)
Add Comment
Please, Sign In to add comment