'''
__author__="Alfonso Tierno, Gerardo Garcia, Pablo Montes"
__date__ ="$26-aug-2014 11:09:29$"
-__version__="0.4.36-r467"
-version_date="Mar 2016"
+__version__="0.4.38-r470"
+version_date="Apr 2016"
database_version="0.10" #expected database schema version
import httpserver
# Read parameters and configuration file
try:
opts, args = getopt.getopt(sys.argv[1:], "hvc:V:p:P:", ["config", "help", "version", "port", "vnf-repository", "adminport"])
- except getopt.GetoptError, err:
+ except getopt.GetoptError as err:
# print help information and exit:
print "Error:", err # will print something like "option -a not recognized"
usage()
echo OK
printf "%-50s" "Updating external nets in openmano: "
- result=`openmano datacenter-net-update -f TOS-dc`
+ result=`openmano datacenter-netmap-delete -f --all`
+ [[ $? != 0 ]] && echo "FAIL" && echo " $result" && $_exit 1
+ result=`openmano datacenter-netmap-upload -f`
[[ $? != 0 ]] && echo "FAIL" && echo " $result" && $_exit 1
echo OK
for sce in simple complex2
do
printf "%-50s" "Deploying scenario '$sce':"
- result=`openmano scenario-deploy $sce ${sce}-instance`
+ result=`openmano instance-scenario-create --scenario $sce --name ${sce}-instance`
instance=`echo $result |gawk '{print $1}'`
! is_valid_uuid $instance && echo FAIL && echo " $result" && $_exit 1
echo $instance