Exemplo n.º 1
0
 def __init__(self, node_name, intf_name):
     LTMessage.__init__(self)
     assert len(
         node_name) <= 30, 'node_name may only be up to 30 characters'
     assert len(intf_name) <= 5, 'intf_name may only be up to 5 characters'
     self.node_name = node_name.lower()
     self.intf_name = intf_name.lower()
Exemplo n.º 2
0
 def __init__(self, template_name, virtualHostID, src_filters):
     """src_filters should be a list of (ip, mask) tuples (an empty list is
     interpreted as having no source filters).  The IP addresses should be
     strings and the masks should be an integer (specifying the number of
     bits set in the mask)."""
     LTMessage.__init__(self)
     self.template_name = template_name
     self.vrhost = virtualHostID
     self.__set_src_filters(src_filters)
 def __init__(self, template_name, virtualHostID, src_filters):
     """src_filters should be a list of (ip, mask) tuples (an empty list is
     interpreted as having no source filters).  The IP addresses should be
     strings and the masks should be an integer (specifying the number of
     bits set in the mask)."""
     LTMessage.__init__(self)
     self.template_name = template_name
     self.vrhost = virtualHostID
     self.__set_src_filters(src_filters)
Exemplo n.º 4
0
 def __init__(self, interfaces):
     LTMessage.__init__(self)
     self.interfaces = interfaces
Exemplo n.º 5
0
 def __init__(self, topo_id):
     LTMessage.__init__(self)
     self.topo_id = int(topo_id)
 def __init__(self, msg):
     LTMessage.__init__(self)
     self.msg = str(msg)
 def __init__(self, interfaces):
     LTMessage.__init__(self)
     self.interfaces = interfaces
Exemplo n.º 8
0
 def __init__(self, msg):
     LTMessage.__init__(self)
     self.msg = str(msg)
Exemplo n.º 9
0
 def __init__(self, username, sha1_of_salted_pw):
     LTMessage.__init__(self)
     self.username = username
     self.ssp = sha1_of_salted_pw
 def __init__(self, virtualHostID, rtable):
     LTMessage.__init__(self)
     self.vrhost = virtualHostID
     self.rtable = str(rtable)
 def __init__(self, topo_id, virtualHostID, UID, pw):
     LTMessage.__init__(self)
     self.topo_id = int(topo_id)
     self.vhost = str(virtualHostID)
     self.user = str(UID)
     self.pw = str(pw)
Exemplo n.º 12
0
 def __init__(self, s):
     LTMessage.__init__(self)
     self.str = s
Exemplo n.º 13
0
 def __init__(self, n):
     LTMessage.__init__(self)
     self.num = n
Exemplo n.º 14
0
 def __init__(self, node_name, intf_name):
     LTMessage.__init__(self)
     assert len(node_name)<=30, 'node_name may only be up to 30 characters'
     assert len(intf_name)<=5,  'intf_name may only be up to 5 characters'
     self.node_name = node_name.lower()
     self.intf_name = intf_name.lower()
Exemplo n.º 15
0
 def __init__(self, topo_id, virtualHostID, UID, pw):
     LTMessage.__init__(self)
     self.topo_id = int(topo_id)
     self.vhost = str(virtualHostID)
     self.user = str(UID)
     self.pw = str(pw)
Exemplo n.º 16
0
 def __init__(self, virtualHostID, rtable):
     LTMessage.__init__(self)
     self.vrhost = virtualHostID
     self.rtable = str(rtable)
 def __init__(self, salt):
     LTMessage.__init__(self)
     self.salt = salt
Exemplo n.º 18
0
 def __init__(self, salt):
     LTMessage.__init__(self)
     self.salt = salt
 def __init__(self, username, sha1_of_salted_pw):
     LTMessage.__init__(self)
     self.username = username
     self.ssp = sha1_of_salted_pw
Exemplo n.º 20
0
 def __init__(self, auth_ok, msg):
     LTMessage.__init__(self)
     self.auth_ok = bool(auth_ok)
     self.msg = msg
 def __init__(self, auth_ok, msg):
     LTMessage.__init__(self)
     self.auth_ok = bool(auth_ok)
     self.msg = msg
Exemplo n.º 22
0
 def __init__(self, intf_name, ethernet_frame):
     LTMessage.__init__(self)
     self.intf_name = str(intf_name)
     self.ethernet_frame = str(ethernet_frame)
Exemplo n.º 23
0
 def __init__(self, xid=0):
     LTMessage.__init__(self)
     self.xid = xid
 def __init__(self, vhost):
     LTMessage.__init__(self)
     self.vhost = str(vhost)
Exemplo n.º 25
0
 def __init__(self, topo_id):
     LTMessage.__init__(self)
     self.topo_id = int(topo_id)
 def __init__(self, intf_name, ethernet_frame):
     LTMessage.__init__(self)
     self.intf_name = str(intf_name)
     self.ethernet_frame = str(ethernet_frame)
Exemplo n.º 27
0
 def __init__(self, vhost):
     LTMessage.__init__(self)
     self.vhost = str(vhost)