2 ##############################################################################
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
15 source _common_test.sh
18 csar_id=a1c5b53e-d7ab-11e8-85b7-525400e8c29a
21 populate_CSAR_ovn4nfv $csar_id
23 pushd ${CSAR_DIR}/${csar_id}
24 for net in ovn-priv-net ovn-port-net; do
25 echo "Create OVN Network $net network"
26 kubectl apply -f $net.yaml
28 kubectl apply -f onap-ovn4nfvk8s-network.yaml
29 setup $ovn4nfv_deployment_name
32 deployment_pod=$(kubectl get pods | grep $ovn4nfv_deployment_name | awk '{print $1}')
33 echo "===== $deployment_pod details ====="
34 kubectl exec -it $deployment_pod -- ip a
36 ovn_nic=$(kubectl exec -it $deployment_pod -- ip a )
37 if [[ $ovn_nic != *"net1"* ]]; then
38 echo "The $deployment_pod pod doesn't contain the net1 nic"
41 echo "Test Completed!"
45 teardown $ovn4nfv_deployment_name
46 for net in ovn-priv-net ovn-port-net; do
47 echo "Delete OVN Network $net network"
48 kubectl delete -f $net.yaml