allowing the gre if local asn to be dynamically assigned as well
This commit is contained in:
parent
d67b225792
commit
82146158cd
|
@ -87,13 +87,12 @@ case "$1" in
|
||||||
if [[ $ifname = gre? ]] && [[ ! -z $ifalias ]]; then
|
if [[ $ifname = gre? ]] && [[ ! -z $ifalias ]]; then
|
||||||
ifmtu=$(dig_txt mtu.${ifname}.${HOSTNAME})
|
ifmtu=$(dig_txt mtu.${ifname}.${HOSTNAME})
|
||||||
local=$(dig_txt local.${ifname}.${HOSTNAME})
|
local=$(dig_txt local.${ifname}.${HOSTNAME})
|
||||||
|
localasn=$(dig_txt localasn.${ifname}.${HOSTNAME})
|
||||||
remote=$(dig_txt remote.${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
|
## 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)
|
FRR_GRE_ASN="$localasn"
|
||||||
NODE_ID=$(echo $LOOPBACKv4 | cut -d . -f 4)
|
|
||||||
FRR_GRE_ASN="4200$(printf "%03d" $TIER_ID)$(printf "%03d" $NODE_ID)"
|
|
||||||
|
|
||||||
|
|
||||||
## build FRR interface config to enable ND adv for ipv6 unmanaged
|
## build FRR interface config to enable ND adv for ipv6 unmanaged
|
||||||
|
|
Loading…
Reference in New Issue