summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Enguehard <mengueha+fdio@cisco.com>2017-03-24 16:28:52 +0100
committerMarcel Enguehard <mengueha+fdio@cisco.com>2017-03-24 16:28:52 +0100
commit15ee4c78051f3a02b73df3171bb415cfd0326904 (patch)
tree66367ef512ffbf6d8476f86ebcc5b2ea2ba90c79
parent85a341d645b57b7cd88a26ed2ea0a314704240ea (diff)
Packages+Error handling for VppHost
Change-Id: I3ef3711b21c385a191d09be3823588309eece2ca Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
-rw-r--r--vicn/resource/vpp/vpp_host.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vicn/resource/vpp/vpp_host.py b/vicn/resource/vpp/vpp_host.py
index 134e65b0..600d5566 100644
--- a/vicn/resource/vpp/vpp_host.py
+++ b/vicn/resource/vpp/vpp_host.py
@@ -75,7 +75,7 @@ class VPPHost(LinuxApplication):
description = 'Dpdk devices on the node',
multiplicity = Multiplicity.OneToMany)
- __package_names__ = ['dpdk', 'vpp', 'vpp-dpdk-dkms']
+ __package_names__ = ['dpdk', 'vpp-dpdk-dkms']
#--------------------------------------------------------------------------
# Constructor and Accessors
@@ -120,8 +120,8 @@ class VPPHost(LinuxApplication):
# container, vpp cannot create those devices, therefore we need to
# create them in the host and then mount them on each container running
# vpp (and using a physical nic)
- stop_vpp = BashTask(self.node, CMD_VPP_STOP_SERVICE)
- disable_vpp = BashTask(self.node, CMD_VPP_DISABLE)
+ stop_vpp = BashTask(self.node, CMD_VPP_STOP_SERVICE + " || true")
+ disable_vpp = BashTask(self.node, CMD_VPP_DISABLE + " || true")
disable_vpp = stop_vpp > disable_vpp
create_uio = EmptyTask()