summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-23 21:04:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-23 21:04:00 +0000
commitfaf7ef045dbb08d00e0a19374c6075d85ff5ad60 (patch)
tree899b6aab1fe362720607d888f83e22859255cfd6 /tests/unit
parentc894c814d62f0c839d381b7370f3d20bf02db0b0 (diff)
parentdc3434a60f5d675d2822927afc271d2cd5c6dddd (diff)
Merge "samplevnf_helper: use network address"
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/network_services/helpers/test_samplevnf_helper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/network_services/helpers/test_samplevnf_helper.py b/tests/unit/network_services/helpers/test_samplevnf_helper.py
index b89668577..608f31747 100644
--- a/tests/unit/network_services/helpers/test_samplevnf_helper.py
+++ b/tests/unit/network_services/helpers/test_samplevnf_helper.py
@@ -198,6 +198,8 @@ class TestMultiPortConfig(unittest.TestCase):
opnfv_vnf.get_ports_gateway6 = mock.Mock(return_value=u'1.1.1.1')
opnfv_vnf.get_netmask_gateway6 = mock.Mock(return_value=u'255.255.255.0')
opnfv_vnf.txrx_pipeline = ''
+ opnfv_vnf.vnfd = self.VNFD['vnfd:vnfd-catalog']['vnfd'][0]
+ opnfv_vnf.interfaces = opnfv_vnf.vnfd['vdu'][0]['external-interface']
opnfv_vnf.rules = ''
self.assertIsNotNone(opnfv_vnf.generate_rule_config())
opnfv_vnf.rules = 'new'