Skip to content

Commit

Permalink
Small tweaks to rc reconfig from live
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed May 24, 2024
1 parent 0254119 commit 037abd6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/runtime/route-collectors/reconfigure-rc-bird2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [[ -n $1 && $1 = '--quiet' ]]; then
export QUIET=1
else
export QUIET=0
echo -en "\Route Collector BGPd Lisenters\n==============================\n\n"
echo -en "\nRoute Collector BGPd Lisenters\n==============================\n\n"
echo -e "Verbose mode enabled. Issue --quiet for non-verbose mode (--debug also available)\n"
fi

Expand Down Expand Up @@ -158,11 +158,6 @@ for handle in $HANDLES; do
continue
fi

if [[ $( cat $dest | grep "protocol bgp pb_" | wc -l ) -lt 2 ]]; then
echo "ERROR: fewer than 2 BGP protocol definitions in config file $dest - something has gone wrong..."
continue
fi

# parse and check the config
cmd="${BIRDBIN} -p -c $dest"
if [[ $DEBUG -eq 1 ]]; then echo $cmd; fi
Expand Down Expand Up @@ -248,7 +243,7 @@ for handle in $HANDLES; do
echo "Bird running and no reload required so skipping configure";
fi

log "NO OP \tIXP Manager Updated: "
log "NO RECONFIG \tIXP Manager Updated: "
fi


Expand Down

0 comments on commit 037abd6

Please sign in to comment.