def _ports_for_container(self, container):
        ports = []
        for portmap in container.ports:
            ports.append(Port(
                internal_port=portmap.internal_port,
                external_port=portmap.external_port
            ))
        return ports
Determine the network ports that are exposed by the given container.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/_container.py/ApplicationNodeDeployer._ports_for_container