Skip to content

Commit

Permalink
Add debug logs to reloader
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Paolinelli <[email protected]>
  • Loading branch information
fedepaol committed Jul 23, 2024
1 parent 2b7ae27 commit 4802d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frr-tools/reloader/frr-reloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ reload_frr() {
kill_sleep

echo "Checking the configuration file syntax"
if ! python3 /usr/lib/frr/frr-reload.py --test --stdout "$FILE_TO_RELOAD" 2>"$LAST_ERROR_FILE" | sed 's/password.*/password <retracted>/g'; then
if ! python3 /usr/lib/frr/frr-reload.py --debug --test --stdout "$FILE_TO_RELOAD" 2>"$LAST_ERROR_FILE" | sed 's/password.*/password <retracted>/g'; then
echo "Syntax error spotted: aborting.. $SECONDS seconds"
cat "$LAST_ERROR_FILE" | sed 's/password.*/password <retracted>/g'
echo -n "$(date +%s) failure" > "$STATUSFILE"
Expand All @@ -26,7 +26,7 @@ reload_frr() {
fi

echo "Applying the configuration file"
if ! python3 /usr/lib/frr/frr-reload.py --reload --overwrite --stdout "$FILE_TO_RELOAD" 2>&1 | sed 's/password.*/password <retracted>/g'; then
if ! python3 /usr/lib/frr/frr-reload.py --debug --reload --overwrite --stdout "$FILE_TO_RELOAD" 2>&1 | sed 's/password.*/password <retracted>/g'; then
echo "Failed to fully apply configuration file $SECONDS seconds"
echo -n "$(date +%s) failure" > "$STATUSFILE"
save_status
Expand Down

0 comments on commit 4802d02

Please sign in to comment.