• C
    conf: Make net model enum compare case insensitive · 79c8bc7d
    Cole Robinson 提交于
    vbox and vmx drivers do net case insensitive net model comparisons,
    so for example 'VMXNET3' and 'vmxnet3' and 'VmxNeT3' in the XML will
    translate to the same driver configuration. To convert these drivers
    to use net model enum, we will need to do case insensitive comparisons
    as well.
    
    Essentially we implement virEnumToString, but with case insensitive
    comparison. XML will always be formatted with the enum model string
    we track internally, but we will accept any case insensitive variant.
    Acked-by: NMichal Privoznik <mprivozn@redhat.com>
    Signed-off-by: NCole Robinson <crobinso@redhat.com>
    79c8bc7d
domain_conf.c 972.4 KB