Hi Iustin,

> > - the same goes if the user does not specify an IP version, the cluster
> > default IP version is X and the user specifies an interface without IPvX
> IPs
>


> I think step (3) should be change to work automatically. Let's assume we
> have public only IPv6, but an internal interface is IPv4 only. It should
> (IMHO) work automatically, without any warnings.


Well, then the constants.IFACE_BINDING_USE_DEFAULT_IP_VERSION doesn't have
any real reason to exist :)

If the user does not set a spice_ip_version, just infer it from:
- the IP address specified
- the interface specified, if it has only addresses of a given IP version

If the user specifies an interface and then it has different versions of IP
addresses, throw an error, start whining and ask him to be more specific.

Or am I missing something?

Thanks,
Andrea

Reply via email to