diff options
author | Emma Foley <emma.l.foley@intel.com> | 2018-02-12 10:06:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-12 10:06:15 +0000 |
commit | 3be467e6b6d3251958e92ac5efbab31669a23596 (patch) | |
tree | 98a8a059d349d13320def15618745e39fc7a3a8c /tests | |
parent | caa5354c05e567ee4c6753ed77c819dfa4e2a37e (diff) | |
parent | 944523e14720956402e1904f9838abe7a020d581 (diff) |
Merge "vpe: convert DPKD_PORT to LINK ID"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py b/tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py index 1abc53688..6dc6df0d8 100644 --- a/tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py +++ b/tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py @@ -163,6 +163,11 @@ class TestConfigCreate(unittest.TestCase): self.assertEqual(config_create.downlink_ports, ['xe1']) self.assertEqual(config_create.socket, 2) + def test_dpdk_port_to_link_id(self): + vnfd_helper = VnfdHelper(self.VNFD_0) + config_create = ConfigCreate(vnfd_helper, 2) + self.assertEqual(config_create.dpdk_port_to_link_id_map, {'xe0': 0, 'xe1': 1}) + def test_vpe_initialize(self): vnfd_helper = VnfdHelper(self.VNFD_0) config_create = ConfigCreate(vnfd_helper, 2) |