X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fbenchmark%2Fcontexts%2Fsriov.py;h=fe27d2579f41ada6f55fcc01cb6f9b14b52967fd;hb=95d9798e15d54270f73692b22b138b44f9defd7a;hp=da143cc4be9596907ed0358f8c44b088aaa7c693;hpb=11a136fdbdc2a0440092a212ea21c58d50c39aad;p=yardstick.git diff --git a/yardstick/benchmark/contexts/sriov.py b/yardstick/benchmark/contexts/sriov.py index da143cc4b..fe27d2579 100644 --- a/yardstick/benchmark/contexts/sriov.py +++ b/yardstick/benchmark/contexts/sriov.py @@ -392,7 +392,7 @@ class Sriov(StandaloneContext): for i in range(0, 10): self.connection.execute( "virsh vcpupin vm1 {0} {1}".format( - i, nodes[str(num_nodes - 1)][i])) + i, nodes[str(num_nodes - 1)][i % len(nodes[str(num_nodes - 1)])])) def get_numa_nodes(self): nodes_sysfs = glob.iglob("/sys/devices/system/node/node*")