Proposal: what if we introduced a SUPPORTED_MODES hypervisor constant in
base, with code to check that the one chosen is one of those, and then made
each hv override just the constant?

Thanks,

Guido
On Jun 6, 2011 4:39 PM, "Apollon Oikonomopoulos" <[email protected]>
wrote:
> On 16:36 Mon 06 Jun , Michael Hanselmann wrote:
>> Am 6. Juni 2011 14:37 schrieb Apollon Oikonomopoulos <
[email protected]>:
>> > --- a/lib/hypervisor/hv_xen.py
>> > +++ b/lib/hypervisor/hv_xen.py
>> > +_VALID_NIC_MODES = [constants.NIC_MODE_ROUTED,
constants.NIC_MODE_BRIDGED]
>>
>> Please use constants.NIC_VALID_MODES.
>>
>> Michael
>
> constants.NIC_VALID_MODES includes all valid NIC modes, including
> "manual" introduced by this patchset. We want to explicitly allow only
> bridged and routed instances, that Xen knows how to handle.
>
> Apollon

Reply via email to