allowing the gre if local asn to be dynamically assigned as well

This commit is contained in:
toby 2018-10-23 16:59:12 +02:00
parent d67b225792
commit 82146158cd
1 changed files with 2 additions and 3 deletions

View File

@ -87,13 +87,12 @@ case "$1" in
if [[ $ifname = gre? ]] && [[ ! -z $ifalias ]]; then
ifmtu=$(dig_txt mtu.${ifname}.${HOSTNAME})
local=$(dig_txt local.${ifname}.${HOSTNAME})
localasn=$(dig_txt localasn.${ifname}.${HOSTNAME})
remote=$(dig_txt remote.${ifname}.${HOSTNAME})
## for the GRE tunnel to not have to deal with ibgp/full-mesh or reflectors prepending a private AS
TIER_ID=$(echo $LOOPBACKv4 | cut -d . -f 3)
NODE_ID=$(echo $LOOPBACKv4 | cut -d . -f 4)
FRR_GRE_ASN="4200$(printf "%03d" $TIER_ID)$(printf "%03d" $NODE_ID)"
FRR_GRE_ASN="$localasn"
## build FRR interface config to enable ND adv for ipv6 unmanaged