]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virDomainNetDefParseXML: Fix error message for unknown value of //mac/@type
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 2 Nov 2020 19:49:38 +0000 (20:49 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 2 Nov 2020 19:49:38 +0000 (20:49 +0100)
In v6.6.0-rc1~124 we've introduced a new mechanism for MAC
addresses for ESX: ignore all checks (type='static') that libvirt
or ESX would do (and possibly fail) for specified MAC address.
Accepted values for the @type attribute are "generated" and
"static". But the error message mentions a different attribute.

Fixes 454e5961abf40c14f8b6d7ee216229e68fd170bf
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1892130
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c

index f4f017cf83d5439337c2023b190eff143b77318d..b47f43afd943023fcee7d8d9f2302986cc367c44 100644 (file)
@@ -12248,7 +12248,7 @@ virDomainNetDefParseXML(virDomainXMLOptionPtr xmlopt,
         int tmp;
         if ((tmp = virDomainNetMacTypeTypeFromString(macaddr_type)) <= 0) {
             virReportError(VIR_ERR_XML_ERROR,
-                           _("invalid mac address check value: '%s'. Valid "
+                           _("invalid mac address type value: '%s'. Valid "
                              "values are \"generated\" and \"static\"."),
                            macaddr_type);
             goto error;