Skip to content

Commit cfff78d

Browse files
fmaximusyadvr
authored andcommitted
CLOUDSTACK-10233: Use namespace in Libvirt domain metadata. (#2410)
The documentation of Libvirt specifies the requirement of using an XML namespace, when having metadata in the Domain XML. The Nuage extenstion metadata was not adhering to this specification, and the lastest Libvirt version ignores it in that case.
1 parent a9fdb31 commit cfff78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ public void addNuageExtension(String macAddress, String vrIp) {
15441544
public String toString() {
15451545
StringBuilder fsBuilder = new StringBuilder();
15461546
for (Map.Entry<String, String> address : addresses.entrySet()) {
1547-
fsBuilder.append("<nuage-extension>\n")
1547+
fsBuilder.append("<nuage-extension xmlns='nuagenetworks.net/nuage/cna'>\n")
15481548
.append(" <interface mac='")
15491549
.append(address.getKey())
15501550
.append("' vsp-vr-ip='")

0 commit comments

Comments
 (0)