diff --git a/scripts/test-add-multiple-devices.sh b/scripts/test-add-multiple-devices.sh new file mode 100755 index 0000000000000000000000000000000000000000..159180dc03fad1788d2f939cd5b1f9a19940dd6b --- /dev/null +++ b/scripts/test-add-multiple-devices.sh @@ -0,0 +1,15 @@ +if [ $# -eq 0 ] + then + echo 'you need to provide the password for the admin user and the amount of devices to add' + exit 1 +fi + +./artifacts/gosdnc login --controller 127.0.0.1:55055 --u admin --p $1 +./artifacts/gosdnc pnd use 5f20f34b-cbd0-4511-9ddc-c50cf6a3b49d + +for i in {0..$2} +do + ./artifacts/gosdnc device create -a 172.100.0.11:6030 -u admin -p admin --name="test-ceos-$i" +done + +./artifacts/gosdnc device list diff --git a/scripts/test-add-pnd.sh b/scripts/test-add-pnd.sh index cee5db7f1317de6858600ac5b1d297ca35ad2dbd..fc8a36129e55d2c76a35bfcfc90e78abdbfb3847 100755 --- a/scripts/test-add-pnd.sh +++ b/scripts/test-add-pnd.sh @@ -1,3 +1,9 @@ -./artifacts/gosdnc init --controller 127.0.0.1:55055 +if [ $# -eq 0 ] + then + echo 'you need to provide the password for the admin user' + exit 1 +fi + +./artifacts/gosdnc login --controller 127.0.0.1:55055 --u admin --p $1 ./artifacts/gosdnc pnd create --name test-pnd-1 test ./artifacts/gosdnc list diff --git a/scripts/test-list-pnd.sh b/scripts/test-list-pnd.sh index c96335f56cc2bb7394e8ba408145367e5f3c0560..700ccb9e81f4c736b8ca95b6bcfb460410d21925 100755 --- a/scripts/test-list-pnd.sh +++ b/scripts/test-list-pnd.sh @@ -1,2 +1,8 @@ -./artifacts/gosdnc init --controller 127.0.0.1:55055 +if [ $# -eq 0 ] + then + echo 'you need to provide the password for the admin user' + exit 1 +fi + +./artifacts/gosdnc login --controller 127.0.0.1:55055 --u admin --p $1 ./artifacts/gosdnc list