FOS supports 4-byte Autonomous System Numbers (ASNs), but it doesn't support using them in BGP communities (rfc5668).
For this reason, a new optional parameter is introduced:
{% set short_community_as = '65000' %}
Its effect is the following:
For regions with as < 65536 (2-byte ASN), this parameter is ignored. The actual ASN of the region is used in the BGP communities applied by Jinja.
For regions with as >= 65536 (4-byte ASN), this parameter is used in BGP communities applied by Jinja.
For example, Jinja applies the following community (in "03-Edge-Routing.j2" and "03-Hub-Routing.j2"):
edit "SLA_OK"
config rule
edit 1
set set-community "{{ community_as }}:99"
next
end
next
For a region with a 2-byte ASN = 65001, the SLA_OK community will simply have a value of "65001:99".
For a region with a 4-byte ASN > 65536, the SLA_OK community will use the new parameter. Its default value is "65000", so that the SLA_OK community will, by default, have a value of "65000:99" for such regions.
FOS supports 4-byte Autonomous System Numbers (ASNs), but it doesn't support using them in BGP communities (rfc5668).
For this reason, a new optional parameter is introduced:
Its effect is the following:
as
< 65536 (2-byte ASN), this parameter is ignored. The actual ASN of the region is used in the BGP communities applied by Jinja.as
>= 65536 (4-byte ASN), this parameter is used in BGP communities applied by Jinja.For example, Jinja applies the following community (in "03-Edge-Routing.j2" and "03-Hub-Routing.j2"):
For a region with a 2-byte ASN = 65001, the SLA_OK community will simply have a value of "65001:99". For a region with a 4-byte ASN > 65536, the SLA_OK community will use the new parameter. Its default value is "65000", so that the SLA_OK community will, by default, have a value of "65000:99" for such regions.