summaryrefslogtreecommitdiffstats
path: root/scripts/lib.sh
blob: b825b9cdd1817d326df48c7ec0561fb45d0bc543 (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
overcloud_file_name=overcloudrc # change this if needed
odl_username=admin
odl_password=admin
odl_port=8081
odl_dir=/opt/opendaylight
hc_username=admin
hc_password=admin
hc_netconf_port=2831
NODE_PATTERN=overcloud
overcloudrc_path=/root/$overcloud_file_name
overcloud_fds_repo_loc=/root
overcloud_script_loc=$overcloud_fds_repo_loc/fds/scripts

in_array() {
    key=$1
    shift
    items=$@
    for item in $items
    do
        if [ $item == $key ]
        then
            return 0
            break
        fi
    done
    return 1
}