Skip to content

Commit

Permalink
Fixup SRv6 config
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Feb 2, 2024
1 parent 90f1e43 commit 7cba7e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srv6/template-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ fi

IFS=$'\n'
HOOKS_SUB=""
for HOOKS in ${HOOKS}; do
for HOOK in ${HOOKS}; do
if [ -n "${HOOK}" ]; then
HOOKS_SUB="${HOOKS_SUB}\n ${HOOK}"
fi
done

if [ -n "${HEADENDS}" ]; then
HEADENDS_SUB="headends: "
for HEADENDS in ${HEADENDS}; do
for HEADEND in ${HEADENDS}; do
if [ -n "${HEADEND}" ]; then
HEADENDS_SUB="${HEADENDS_SUB}\n ${HEADEND}"
fi
done
fi

ENDPOINTS_SUB=""
for ENDPOINTS in ${ENDPOINTS}; do
for ENDPOINT in ${ENDPOINTS}; do
if [ -n "${ENDPOINT}" ]; then
ENDPOINTS_SUB="${ENDPOINTS_SUB}\n ${ENDPOINT}"
fi
Expand Down

0 comments on commit 7cba7e7

Please sign in to comment.