def validate(self, task):
        driver_info = _parse_driver_info(task.node)

        if driver_info['virt_type'] != 'virsh':
            raise exception.InvalidParameterValue(_(
                "not supported for non-virsh types"))

        if not driver_info['terminal_port']:
            raise exception.MissingParameterValue(_(
                "Missing 'ssh_terminal_port' parameter in node's "
                "'driver_info'"))
Validate the Node console info.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ssh.py/ShellinaboxConsole.validate