5-instantiate-ns.sh 1.03 KiB
Newer Older
aticig's avatar
aticig committed
#!/bin/bash
echo "========================================================================"
echo "Setting env variables"
echo "========================================================================"
Ubuntu's avatar
Ubuntu committed
export K8S_NET=osm-ext
aticig's avatar
aticig committed
export PDNS_NS_NAME=powerdns_ns

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

Ubuntu's avatar
Ubuntu committed
osm ns-create --ns_name $PDNS_NS_NAME --nsd_name powerdns_ns --vim_account openstack --config "{vld: [ {name: mgmtnet, vim-network-name: $K8S_NET}]}"
osm ns-list
aticig's avatar
aticig committed
echo "========================================================================"
echo "NS_NAME: $PDNS_NS_NAME"
echo "NS_ID: $PDNS_NS_NAME deployed"
echo "========================================================================"

echo "========================================================================"
Ubuntu's avatar
Ubuntu committed
echo "Check NS status using osm ns-list, osm ns-show $PDNS_NS_NAME"
echo "========================================================================"