Lines Matching refs:port_name
139 def __init__(self, object_name, port_name, index):
141 self.port_name = port_name
147 object_name, port_name, whole_index, index = m.groups()
153 return PortConnection(object_name, port_name, index)
156 return '%s.%s[%d]' % (self.object_name, self.port_name, self.index)
159 return cmp((self.object_name, self.port_name, self.index),
160 (right.object_name, right.port_name, right.index))
289 for port_name, port in obj.__class__._ports.items():
291 peers = self.config.get_port_peers(object_name, port_name)
311 (from_port.object_name, from_port.port_name)] = 0
315 (port.object_name, port.port_name)] == port.index
319 (port.object_name, port.port_name)] += 1
353 setattr(from_object, from_port.port_name,
354 getattr(to_object, to_port.port_name))
411 def get_port_peers(self, object_name, port_name):
413 object.port(\[index\])?) of the port object_name.port_name"""
447 def get_port_peers(self, object_name, port_name):
448 if self.parser.has_option(object_name, port_name):
449 peer_string = self.parser.get(object_name, port_name)
517 def get_port_peers(self, object_name, port_name):
523 if port_name in obj and 'peer' in obj[port_name] and \
524 'role' in obj[port_name]:
525 peers = to_list(obj[port_name]['peer'])