Skip to content
Snippets Groups Projects
test-add-multiple-devices.sh 431 B
Newer Older
  • Learn to ignore specific revisions
  • Malte Bauch's avatar
    Malte Bauch committed
    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
    
    
    Malte Bauch's avatar
    Malte Bauch committed
    for i in $(seq 1 $2)
    
    Malte Bauch's avatar
    Malte Bauch committed
    do
        ./artifacts/gosdnc device create -a 172.100.0.11:6030 -u admin -p admin --name="test-ceos-$i"
    done
    
    ./artifacts/gosdnc device list