summaryrefslogtreecommitdiffstats
path: root/kud/tests/ovn4nfv.sh
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-04-27 15:39:21 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-27 15:39:21 +0000
commit619ccde3c59cdbf5066a667d2bbea465d4a68984 (patch)
treefbb48b848717c5af96ab8223e0b574524583d9e2 /kud/tests/ovn4nfv.sh
parent4a4ca50227f3442ffea819544527790d540a7e2a (diff)
parentd7a2267ece49e6a79e54f01a2c90a618f7efb811 (diff)
Merge "Fix multus and ovn tests"
Diffstat (limited to 'kud/tests/ovn4nfv.sh')
-rwxr-xr-xkud/tests/ovn4nfv.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/kud/tests/ovn4nfv.sh b/kud/tests/ovn4nfv.sh
index 37fddfd8..de8631f4 100755
--- a/kud/tests/ovn4nfv.sh
+++ b/kud/tests/ovn4nfv.sh
@@ -33,10 +33,13 @@ setup $ovn4nfv_deployment_name
deployment_pod=$(kubectl get pods | grep $ovn4nfv_deployment_name | awk '{print $1}')
echo "===== $deployment_pod details ====="
kubectl exec -it $deployment_pod -- ip a
-multus_nic=$(kubectl exec -it $deployment_pod -- ifconfig | grep "net1")
-if [ -z "$multus_nic" ]; then
+
+ovn_nic=$(kubectl exec -it $deployment_pod -- ip a )
+if [[ $ovn_nic != *"net1"* ]]; then
echo "The $deployment_pod pod doesn't contain the net1 nic"
exit 1
+else
+ echo "Test Completed!"
fi
# Teardown