Skip to content

Commit c683de4

Browse files
kvm: fix unit test LibvirtReplugNicCommandWrapperTest (#7908)
1 parent 47b6f0f commit c683de4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtReplugNicCommandWrapperTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ public void setUp() throws Exception {
236236
bridgeVifDriver.configure(params);
237237
ovsVifDriver.configure(params);
238238
}
239+
240+
LibvirtVMDef.setGlobalLibvirtVersion(6400000L);
239241
}
240242

241243
@Test
@@ -246,6 +248,10 @@ public void testReplugNic() throws LibvirtException {
246248
+ "<target dev='vnet10'/>\n"
247249
+ "<mac address='02:00:7c:98:00:02'/>\n"
248250
+ "<model type='virtio'/>\n"
251+
+ "<bandwidth>\n"
252+
+ "<inbound average='25600' peak='25600'/>\n"
253+
+ "<outbound average='25600' peak='25600'/>\n"
254+
+ "</bandwidth>\n"
249255
+ "<link state='up'/>\n"
250256
+ "</interface>\n";
251257
final String expectedAttachXml =

0 commit comments

Comments
 (0)