Merge "Setup hugepages on SA host(sriov, ovs_dpdk)"
authorAbhijit Sinha <abhijit.sinha@intel.com>
Wed, 7 Nov 2018 17:48:44 +0000 (17:48 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 7 Nov 2018 17:48:44 +0000 (17:48 +0000)
1  2 
yardstick/benchmark/contexts/standalone/ovs_dpdk.py
yardstick/network_services/vnf_generic/vnf/sample_vnf.py
yardstick/tests/unit/benchmark/contexts/standalone/test_ovs_dpdk.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py

@@@ -389,8 -385,10 +385,10 @@@ class OvsDpdkContextTestCase(unittest.T
          self.ovs_dpdk._enable_interfaces(0, ["private_0"], 'test')
          mock_add_ovs_interface.assert_called_once_with(
              'fake_path', 0, self.NETWORKS['private_0']['vpci'],
 -            self.NETWORKS['private_0']['mac'], 'test')
 +            self.NETWORKS['private_0']['mac'], 'test', 1)
  
+     @mock.patch.object(ovs_dpdk.OvsDpdkContext, '_check_hugepages')
+     @mock.patch.object(common_utils, 'setup_hugepages')
      @mock.patch.object(model.StandaloneContextHelper, 'check_update_key')
      @mock.patch.object(model.Libvirt, 'write_file')
      @mock.patch.object(model.Libvirt, 'build_vm_xml')