'Locate a port by name.
@param name: A port name.
@type name: str
@return: The port object.
@rtype: L{Port}'

def port(self, name):

    for p in self.ports:
        if (p.name == name):
            return p
    return None
