Add lightynode support to testutils.py
[transportpce.git] / tests / install_honeynode.sh
index 41db54fd7d772c4ef6cd39264ca7e135465a0d9e..a4c21ba1b1fef4761d2f3325fff5618c1a2daeff 100755 (executable)
@@ -18,11 +18,14 @@ fi
 for VERSION in $VERSIONS_LIST
 do
     case "$VERSION" in
-        "1.2.1") PLUGIN_VERSION=1.0.4
+        "1.2.1") PLUGIN_VERSION=1.0.9
+        #update 1.2.1 openroadm device configuration samples to be compliant with honeynode
+        #device models ("multi-wavelegnth" instead of "multi-wavelength" whose typo has been solved with 2.2.1 device models)
+        sed -i_ 's/multi-wavelegnth/multi-wavelength/g' $(dirname $0)/sample_configs/openroadm/1.2.1/oper-ROADM*.xml
         ;;
-        "2.2.1") PLUGIN_VERSION=2.0.6
+        "2.2.1") PLUGIN_VERSION=2.0.10
         ;;
-        "7.1") PLUGIN_VERSION=7.1.2
+        "7.1") PLUGIN_VERSION=7.1.9
         ;;
         *) echo "unsupported device version" >&2
         continue
@@ -44,7 +47,7 @@ do
     #complete source code can be found at https://gitlab.com/Orange-OpenSource/lfn/odl/honeynode-simulator.git
 
     echo "Installing honeynode for $VERSION devices to $INSTALL_DIR directory "
-    curl -sS --location --request GET $TARGET_URL -o $ARTIFACT_ZIPFILE
+    curl --retry-delay 10 --retry 3 -sS --location --request GET $TARGET_URL -o $ARTIFACT_ZIPFILE || exit 2
     unzip -q $ARTIFACT_ZIPFILE -d $TARGET_DIR
     rm -f $ARTIFACT_ZIPFILE