aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
blob: 455168c17a6a2db03b2befaf429ecee8269533cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash

#sudo apt-get -y install libpython2.7-dev

#VIRL_VMS="10.30.51.53,10.30.51.51,10.30.51.52"
#IFS=',' read -ra ADDR <<< "${VIRL_VMS}"
#
#function ssh_do() {
#    echo
#    echo "### "  ssh $@
#    ssh -i priv_key -o StrictHostKeyChecking=no $@
#}

#for addr in "${ADDR[@]}"; do
#    echo
#    echo ${addr}
#    echo
#
#    ssh_do cisco@${addr} hostname || true
#    ssh_do cisco@${addr} "ifconfig -a" || true
#    ssh_do cisco@${addr} "lspci -Dnn | grep 0200" || true
#    ssh_do cisco@${addr} "free -m" || true
#    ssh_do cisco@${addr} "cat /proc/meminfo" || true
#    ssh_do cisco@${addr} "dpkg -l vpp\*" || true
#    ssh_do cisco@${addr} "lshw -c network" || true
#    ssh_do cisco@${addr} "sudo -S sh -c 'echo exec show  hardware | vpp_api_test '"
#done

virtualenv env
. env/bin/activate

echo pip install
pip install -r requirements.txt

PYTHONPATH=`pwd` pybot -L TRACE \
    -v TOPOLOGY_PATH:topologies/available/virl.yaml \
    --include vm_env \
    --include 3_NODE_SINGLE_LINK_TOPO \
    --exclude 3_node_double_link_topoNOT3_node_single_link_topo \
    --exclude PERFTEST \
    tests/