diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 32668d43376e29a0cf3265d3a88ccd86c7dab32e..7d28314e77aaf5ac4b35f36daa8d34255e9d2eea 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -17600,14 +17600,18 @@ virDomainActualNetDefContentsFormat(virBufferPtr buf, if (def->type == VIR_DOMAIN_NET_TYPE_NETWORK && !inSubelement) { /* When we're putting our output into the * subelement rather than the main , the - * network name isn't included in the because the - * main interface element's has the same info - * already. If we've been called to output directly into - * the main element's though (the case here - - * "!inSubElement"), we *do* need to output the network - * name, because the caller won't have done it). + * network name and portgroup don't need to be included in + * the here because the main interface element's + * has the same info already. If we've been + * called to output directly into the main element's + * though (the case here - "!inSubElement"), we + * *do* need to output network/portgroup, because the + * caller won't have done it). */ - virBufferEscapeString(buf, " network='%s'", def->data.network.name); + virBufferEscapeString(buf, " network='%s'", + def->data.network.name); + virBufferEscapeString(buf, " portgroup='%s'", + def->data.network.portgroup); } if (actualType == VIR_DOMAIN_NET_TYPE_BRIDGE || actualType == VIR_DOMAIN_NET_TYPE_NETWORK) {