diff --git a/dockers/docker-fpm-frr/base_image_files/prefix_list b/dockers/docker-fpm-frr/base_image_files/prefix_list index 1ccf6552a6c..3c8ff0e2d98 100755 --- a/dockers/docker-fpm-frr/base_image_files/prefix_list +++ b/dockers/docker-fpm-frr/base_image_files/prefix_list @@ -39,7 +39,7 @@ check_spine_router() { # only supported on UpstreamLC or UpperSpineRouter if [[ ("$type" == "SpineRouter" && "$subtype" == "UpstreamLC") || "$type" == "UpperSpineRouter" ]]; then - exit 0 + return fi echo "Operation is only supported on Upstream SpineRouter." >&2