]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Add a comment warning about boolean feature XML
authorCole Robinson <crobinso@redhat.com>
Tue, 17 Apr 2018 16:44:56 +0000 (12:44 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 3 May 2018 20:37:41 +0000 (16:37 -0400)
This is the old style and we really shouldn't be adding any more
examples like this. Add a comment to warn devs away

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/conf/domain_conf.c

index c92725dd25beb837c8bcd9a6042d364d0ec9a28a..4e2de46d4502dd7707863458728e190ec634002c 100644 (file)
@@ -26894,6 +26894,8 @@ virDomainDefFormatInternal(virDomainDefPtr def,
             case VIR_DOMAIN_FEATURE_PAE:
             case VIR_DOMAIN_FEATURE_VIRIDIAN:
             case VIR_DOMAIN_FEATURE_PRIVNET:
+                /* NOTE: This is for old style <opt/> booleans. New XML
+                 * should use the explicit state=on|off output below */
                 switch ((virTristateSwitch) def->features[i]) {
                 case VIR_TRISTATE_SWITCH_ABSENT:
                     break;