def METHOD_NAME(self):
    METHOD_NAME = self.ports.copy()
    for port in self.ports.keys():
        if METHOD_NAME[port]['type'] in ['', 'internal']:
            del METHOD_NAME[port]
    return METHOD_NAME