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 "frr-reload script not installed - Executing full restart instead"
+ $0 restart
+ exit $?
+ 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
+ if [ ! -r $NEW_CONFIG_FILE ]; then
+ echo "Unable to read configuration file $NEW_CONFIG_FILE. Only supporting integrated config - Executing full restart instead"
+ $0 restart
+ exit $?
+ fi
echo "Applying only incremental changes to running configuration from frr.conf"
"$RELOAD_SCRIPT" --reload /etc/frr/frr.conf
exit $?