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 ##############################################################################
17 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 cleanup_network $net.yaml
26 echo "Create OVN Network $net network"
27 init_network $net.yaml
29 kubectl apply -f onap-ovn4nfvk8s-network.yaml
30 setup $ovn4nfv_deployment_name
33 deployment_pod=$(kubectl get pods | grep $ovn4nfv_deployment_name | awk '{print $1}')
34 echo "===== $deployment_pod details ====="
35 kubectl exec -it $deployment_pod -- ip a
36 multus_nic=$(kubectl exec -it $deployment_pod -- ifconfig | grep "net1")
37 if [ -z "$multus_nic" ]; then
38 echo "The $deployment_pod pod doesn't contain the net1 nic"
43 teardown $ovn4nfv_deployment_name
44 cleanup_network ovn-priv-net.yaml
45 cleanup_network ovn-port-net.yaml