SXP: Add RPC redirecting tests
[integration/test.git] / csit / scripts / car_people_shard.sh
1 echo "Add car-people shards file"
2 cat > ${WORKSPACE}/custom_shard_config.txt <<EOF
3 FRIENDLY_MODULE_NAMES[1]='inventory'
4 MODULE_NAMESPACES[1]='urn:opendaylight:inventory'
5 FRIENDLY_MODULE_NAMES[2]='topology'
6 MODULE_NAMESPACES[2]='urn:TBD:params:xml:ns:yang:network-topology'
7 FRIENDLY_MODULE_NAMES[3]='toaster'
8 MODULE_NAMESPACES[3]='http://netconfcentral.org/ns/toaster'
9 FRIENDLY_MODULE_NAMES[4]='car'
10 MODULE_NAMESPACES[4]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car'
11 FRIENDLY_MODULE_NAMES[5]='people'
12 MODULE_NAMESPACES[5]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:people'
13 FRIENDLY_MODULE_NAMES[6]='car-people'
14 MODULE_NAMESPACES[6]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-people'
15 EOF
16
17 for i in `seq 1 ${NUM_ODL_SYSTEM}`
18 do
19     CONTROLLERIP=ODL_SYSTEM_${i}_IP
20     echo "Copy shard config to member-${i} with IP address ${!CONTROLLERIP}"
21     scp ${WORKSPACE}/custom_shard_config.txt ${!CONTROLLERIP}:/tmp/
22 done