Adding bm deploy all option 12/3512/1
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Tue, 26 May 2020 21:47:08 +0000 (21:47 +0000)
committerKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Tue, 26 May 2020 21:47:08 +0000 (21:47 +0000)
Co-authored-by: Chen, Tingjie <tingjie.chen@intel.com>
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamduhan.ramarkishnan@intel.com>
Change-Id: Ic37023f6f11adcd7188afe9690f85541e99fd996

Makefile
env/ubuntu/bootloader-env/02_clean_bootloader_package_req.sh

index d435c3a..00f73ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -166,7 +166,7 @@ verify_nestedk8s: prerequisite \
        clean_bm_packages
 
 bm_verify_nestedk8s: prerequisite \
-        kud_bm_deploy_e2e \
+        kud_bm_deploy \
         kud_bm_reset \
        clean_bm_packages
 
index a2130a0..9be06fc 100755 (executable)
@@ -99,8 +99,8 @@ function clean_all {
     systemctl disable kubelet
     systemctl disable dockershim
     systemctl disable criproxy
-    ip link delete virbr0-nic
-    ip link delete virbr0
+    if ip link show | grep virbr0-nic > /dev/null; then ip link delete virbr0-nic; fi
+    if ip link show | grep virbr0 > /dev/null; then ip link delete virbr0; fi
 }
 
 function clean_apt_cache {