---
src/conf/domain_conf.c | 2 ++
src/conf/domain_conf.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index b97c1f0..454f631 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -2593,8 +2593,10 @@ virDomainNetDefParseXML(virCapsPtr caps,
(const char *)macaddr);
goto error;
}
+ def->mac_generated = false;
} else {
virCapabilitiesGenerateMac(caps, def->mac);
+ def->mac_generated = true;
}
if (devaddr) {
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 30aeccc..84e95a1 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -346,6 +346,7 @@ typedef virDomainNetDef *virDomainNetDefPtr;
struct _virDomainNetDef {
enum virDomainNetType type;
unsigned char mac[VIR_MAC_BUFLEN];
+ bool mac_generated;
char *model;
union {
struct {
--
1.7.4