def diag_port(self, context, port_id, **kwargs):
LOG.info("<STR_LIT>" % port_id)<EOL>try:<EOL><INDENT>port = self._client.show_port(port_id)<EOL><DEDENT>except Exception as e:<EOL><INDENT>msg = "<STR_LIT>" % (str(e))<EOL>LOG.exception(msg)<EOL>raise IronicException(msg=msg)<EOL><DEDENT>return {"<STR_LIT>": port}<EOL>
Diagnose a port.

        :param context: neutron api request context.
        :param port_id: neutron port id.
        :param kwargs: optional kwargs.
        :raises IronicException: If the client is unable to fetch the
            downstream port for any reason, the exception will be
            logged and IronicException raised.