Skip to content

Commit ae869f5

Browse files
authored
[T2][Anchor] Fix type check in prefix_list script (#23803)
Fix incorrect checking introduced by #22337 When invoking prefix_list script in supported roles, the checking function should return rather than exit 0. Exiting 0 would directly terminate the script
1 parent db21a11 commit ae869f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockers/docker-fpm-frr/base_image_files/prefix_list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ check_spine_router() {
3939

4040
# only supported on UpstreamLC or UpperSpineRouter
4141
if [[ ("$type" == "SpineRouter" && "$subtype" == "UpstreamLC") || "$type" == "UpperSpineRouter" ]]; then
42-
exit 0
42+
return
4343
fi
4444

4545
echo "Operation is only supported on Upstream SpineRouter." >&2

0 commit comments

Comments
 (0)