blob: 19bfbf2311f32bcc15a6c8398a1e63320d414071 [file] [log] [blame]
Masayoshi Kobayashif704d302013-03-25 23:55:13 +00001#! /bin/sh
2
Masayoshi Kobayashi972b8462013-06-21 15:46:38 -07003. `dirname $0`/func.sh
Masayoshi Kobayashif704d302013-03-25 23:55:13 +00004
5basename=$ONOS_CLUSTER_BASENAME
6nr_nodes=$ONOS_CLUSTER_NR_NODES
7
8for n in `seq 1 $nr_nodes`; do
9 echo "Host node$n"
10 echo "User ubuntu"
11 echo "HostName ${basename}${n}"
12done > ~/.ssh/config
13
14cd ${HOME}/bin
15for n in `seq 1 $nr_nodes`; do
16 ln -s ssh_exec node${n}
17done