Show
Ignore:
Timestamp:
03/19/12 02:00:09 (14 months ago)
Author:
edent
Message:

fix nodebooter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/trunk/tools/cornetApps/DomainMan/models.py

    r11070 r11071  
    1919    """ 
    2020    def __init__(self, thisFloor, thisNum): 
    21         ip = getIP(thisFloor, thisNum) 
    22         port = getPort(thisFloor,thisNum) 
    23         floor = thisFloor 
    24         num = thisNum 
     21        self.ip = self.getIP(thisFloor, thisNum) 
     22        self.port = self.getPort(thisFloor,thisNum) 
     23        self.floor = thisFloor 
     24        self.num = thisNum 
    2525         
    2626    def __unicode__(self): 
     
    5858        else: 
    5959            raise Exception("Floor input must be greater than 0 and less than 5") 
     60         
     61class SSHClientList(): 
     62    clientList = {}; 
     63     
     64    def addClient(self, id, client): 
     65        clientList = {id: client}; 
     66     
     67    def getClient(self, id): 
     68        if clientList.__contains__(id): 
     69            return clientList.get(id) 
     70        else: 
     71            raise Exception("no".__add__(id).__add__("found"))