Comment 16 for bug 1850642

Revision history for this message
Ryan Harper (raharper) wrote :

Looking at the hook script, I see the record separator is ', |'

 if [ -n "${new_classless_static_routes}" ]; then
                IFS=', |'

And then, each entry is either 0 (default route)
or, it's split on '.'

if [ ${target} = "0" ]; then
   new_routers="${static_routes[$i+1]}"
   continue
else
   prefix=${target%%.*}
   target=${target#*.}
   IFS="." target_arr=(${target})
   unset IFS
   ((pads=4-${#target_arr[@]}))
   for j in $(seq $pads); do
       target="${target}.0"
   done
fi