提交 975056af 编写于 作者: J Ján Tomko

conf: network: use virXMLNamespaceFormatNS

Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
上级 7c3534e0
...@@ -2434,8 +2434,8 @@ virNetworkDefFormatBuf(virBufferPtr buf, ...@@ -2434,8 +2434,8 @@ virNetworkDefFormatBuf(virBufferPtr buf,
bool hasbridge = false; bool hasbridge = false;
virBufferAddLit(buf, "<network"); virBufferAddLit(buf, "<network");
if (def->namespaceData && def->ns.href) if (def->namespaceData && def->ns.format)
virBufferAsprintf(buf, " %s", (def->ns.href)()); virXMLNamespaceFormatNS(buf, &def->ns);
if (!(flags & VIR_NETWORK_XML_INACTIVE) && (def->connections > 0)) if (!(flags & VIR_NETWORK_XML_INACTIVE) && (def->connections > 0))
virBufferAsprintf(buf, " connections='%d'", def->connections); virBufferAsprintf(buf, " connections='%d'", def->connections);
if (def->ipv6nogw) if (def->ipv6nogw)
......
...@@ -244,7 +244,7 @@ networkDnsmasqDefNamespaceFormatXML(virBufferPtr buf, ...@@ -244,7 +244,7 @@ networkDnsmasqDefNamespaceFormatXML(virBufferPtr buf,
static const char * static const char *
networkDnsmasqDefNamespaceHref(void) networkDnsmasqDefNamespaceHref(void)
{ {
return "xmlns:dnsmasq='" DNSMASQ_NAMESPACE_HREF "'"; return DNSMASQ_NAMESPACE_HREF;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册