#!/bin/bash # Copyright 2015 Metaswitch Networks exec > /tmp/calico_route_reflector.log 2>&1 set -x echo "Hi, I'm a route_reflector node!" this_node_address=$(python get_node_ip.py `hostname`) controller_node_addresses=$(python get_node_ips_by_role.py controller) client_peers=$(python get_node_ips_by_role.py compute) route_reflector_peers=("${controller_node_addresses[@]/$this_node_address}") # Generate basic config for a BIRD BGP route reflector. cat > /etc/bird/bird.conf <> /etc/bird/bird.conf <> /etc/bird/bird.conf <> /etc/bird/bird.conf <> /etc/bird/bird.conf <