Document usage of variable "asn" in configuration #71
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are a few issues that refer using the
asn =
configuration option as a list and then somehow that list of ASNs can be used in large communities.But I could not figure out how to even use the simple
asn = 65534
in communities.Say, I have:
And then a large community beginning with this ASN:
If I understand correctly, somehow the
asn
variable could be used in place of the ASN in the community.I have tested:
None of these work and the large community 65534:123:45 is undetected in Alice-LG.
Am I understanding the purpose of the
asn
variable correctly? What is the syntax of using it?This should be documented in my opinion - or an example of usage in the example config file.
Some other points, I'd prefer not to open more issues without feedback if these are valid issues or user errors:
Skipping malformed BGP community:
but no line is listed aspkg/backend/config.go
would indicate. As a test I commented out all 3 community stanza from configuration and then this line was displayed 3 times... could not locate where this error comes from.The way this variable is used is a bit unfortunate and has some legacy background. This should be cleaned up to support multiple asns.
It is not used in the communities.
The communities provide a text mapping with a wildcard and $1, $2, ($3) matching the parts of the community representation: 1234:*:789 = "text $2 $1"
Will be used in the frontend to evalutate the community "1234:56:789" to "text 789 56"
This seems like a bug. Is the configration for
single_table
ormulti_table
?Yes I found out about
$1
etc, thanks. So I guess I have misunderstood theasn
configuration parameter. It is not exactly clear what it is used for then... I myself do not need multiple ASNs.It is a single table setup.