Skip to content

Commit

Permalink
Merge pull request #2769 from ajones-rvbd/ajones-frr-reload
Browse files Browse the repository at this point in the history
tools/frr: make frr reload error message clearer on missing frr-reload.py
  • Loading branch information
donaldsharp committed Aug 1, 2018
2 parents 037f162 + 8b5f787 commit 6960cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/frr
Expand Up @@ -574,7 +574,11 @@ case "$1" in

reload)
# Just apply the commands that have changed, no restart necessary
[ ! -x "$RELOAD_SCRIPT" ] && echo "frr-reload script not available" && exit 0
if [ ! -x "$RELOAD_SCRIPT" ]; then
echo "Please install frr-pythontools package. Required for reload"
exit 0
fi

NEW_CONFIG_FILE="${2:-$C_PATH/frr.conf}"
[ ! -r $NEW_CONFIG_FILE ] && echo "Unable to read new configuration file $NEW_CONFIG_FILE" && exit 1
echo "Applying only incremental changes to running configuration from frr.conf"
Expand Down

0 comments on commit 6960cd0

Please sign in to comment.