Re: [libvirt] [PATCH 3/4] Support bond interfaces attached to bridges in interface xml.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/01/2010 08:40 PM, Laine Stump wrote:

> +
> +    if (((parentIfType == VIR_INTERFACE_TYPE_BOND)
> +         && (type != VIR_INTERFACE_TYPE_ETHERNET))
> +        || ((parentIfType == VIR_INTERFACE_TYPE_BRIDGE)
> +            && (type != VIR_INTERFACE_TYPE_ETHERNET)
> +            && (type != VIR_INTERFACE_TYPE_BOND)
> +            && (type != VIR_INTERFACE_TYPE_VLAN))
> +        || (parentIfType == VIR_INTERFACE_TYPE_ETHERNET)
> +        || (parentIfType == VIR_INTERFACE_TYPE_VLAN))
> +        {
> +        virInterfaceReportError(conn, VIR_ERR_XML_ERROR,
> +                                _("interface has unsupported type '%s'"), type);
> +        goto error;
> +    }

Actually, I just built and the above line produces an error. 'type' is an int,
so can't be formatted with '%s'.

- Cole

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]