summaryrefslogtreecommitdiffstats
path: root/vnfs/vnf
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2016-05-03 13:59:16 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-03 13:59:16 +0000
commit25969600ac9508ecc54a25d7b0f628e0713a82a2 (patch)
tree5c31446ed024229ef0e6d10c1e0648b38dd2b307 /vnfs/vnf
parent0d171984c55e61b634983f4fc073ca67792f17c6 (diff)
parent3a535d0252be0a6fc014e654b61e06620cc615a0 (diff)
Merge "integration: Support of PVP and PVVP integration TCs"
Diffstat (limited to 'vnfs/vnf')
-rw-r--r--vnfs/vnf/vnf.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/vnfs/vnf/vnf.py b/vnfs/vnf/vnf.py
index 483faf38..3dae2733 100644
--- a/vnfs/vnf/vnf.py
+++ b/vnfs/vnf/vnf.py
@@ -122,6 +122,19 @@ class IVnf(tasks.Process):
self.execute(cmd)
self.wait(prompt=prompt, timeout=timeout)
+ def validate_start(self, dummy_result):
+ """ Validate call of VNF start()
+ """
+ if self._child and self._child.isalive():
+ return True
+ else:
+ return False
+
+ def validate_stop(self, result):
+ """ Validate call of fVNF stop()
+ """
+ return not self.validate_start(result)
+
@staticmethod
def reset_vnf_counter():
"""