'Return connection info for a vnc console.'

def _get_vnc_console_connection(self, instance):

    vm_ref = vm_util.get_vm_ref(self._session, instance)
    opt_value = self._session._call_method(vutil, 'get_object_property', vm_ref, vm_util.VNC_CONFIG_KEY)
    if opt_value:
        port = int(opt_value.value)
    else:
        raise exception.ConsoleTypeUnavailable(console_type='vnc')
    return {'port': port, 'internal_access_path': None}
