#!/bin/bash
echo "========================================================================"
echo "Setting env variables"
echo "========================================================================"

export VNF_NAME=powerdns
export KDU_NAME=powerdns
export PDNS_NS_NAME=powerdns_ns

echo "========================================================================"
echo "Deploying NS"
echo "========================================================================"

export PDNS_NS_ID=`osm ns-create --ns_name $PDNS_NS_NAME --nsd_name powerdns_ns --vim_account openstack --config "{vld: [ {name: mgmtnet, vim-network-name: $K8S_NET}]}"`

echo "========================================================================"
echo "NS_NAME: $PDNS_NS_NAME"
echo "NS_ID: $PDNS_NS_NAME deployed"
echo "========================================================================"

echo "========================================================================"
echo "Check NS status using osm ns-list, osm ns-show $PDNS_NS_ID"
echo "========================================================================"