Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 037abd6

Browse files
committed
Small tweaks to rc reconfig from live
1 parent 0254119 commit 037abd6

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tools/runtime/route-collectors/reconfigure-rc-bird2.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [[ -n $1 && $1 = '--quiet' ]]; then
6666
export QUIET=1
6767
else
6868
export QUIET=0
69-
echo -en "\Route Collector BGPd Lisenters\n==============================\n\n"
69+
echo -en "\nRoute Collector BGPd Lisenters\n==============================\n\n"
7070
echo -e "Verbose mode enabled. Issue --quiet for non-verbose mode (--debug also available)\n"
7171
fi
7272

@@ -158,11 +158,6 @@ for handle in $HANDLES; do
158158
continue
159159
fi
160160

161-
if [[ $( cat $dest | grep "protocol bgp pb_" | wc -l ) -lt 2 ]]; then
162-
echo "ERROR: fewer than 2 BGP protocol definitions in config file $dest - something has gone wrong..."
163-
continue
164-
fi
165-
166161
# parse and check the config
167162
cmd="${BIRDBIN} -p -c $dest"
168163
if [[ $DEBUG -eq 1 ]]; then echo $cmd; fi
@@ -248,7 +243,7 @@ for handle in $HANDLES; do
248243
echo "Bird running and no reload required so skipping configure";
249244
fi
250245

251-
log "NO OP \tIXP Manager Updated: "
246+
log "NO RECONFIG \tIXP Manager Updated: "
252247
fi
253248

254249

0 commit comments

Comments
 (0)