You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is part of the FRR test framework and I'm working on migrating from ExaBGP 3.4 to 4.x.
)
However ExaBGP 4.x has problem parsing that line. I've managed to get it running with the following patch:
--- /usr/local/lib/python3.8/dist-packages/exabgp/configuration/flow/parser.py 2020-11-09 13:23:47.452170848 +0000+++ /home/rzalamena/exabgp-fixed/configuration/flow/parser.py 2020-11-09 13:20:24.863148297 +0000@@ -299,8 +299,17 @@
return NoNextHop, ExtendedCommunities().add(TrafficRedirect(asn, route_target))
else:
elements = data.split(':')
- ip = ':'.join(elements[:-1])- asn = int(elements[-1])+ if count == 2:+ ip = data+ return IP.create(ip), ExtendedCommunities().add(TrafficNextHopSimpson(False))+ else:+ ip = ':'.join(elements[:-1])+ asn = int(elements[-1])+ return IP.create(ip), ExtendedCommunities().add(TrafficRedirectIPv6(ip, asn))
The patch makes FRR's configuration test work, but it is not correct because it assumes IPv6 addresses will only have two ::. I think the more correct fix is to enclose the IPv6 address with something (e.g. [1:2:3:4]:5000) so there is no confusion when using plain IPv6 or when using redirect with ASN/community.
(don't forget to use that patch with these PRs to get it working: #1002 and #1003)
Please let me know what should be the solution here (if there is any). I'm no expert in this so that is why I'm opening this issue.
To Reproduce
Just run exabgp --validate on the configuration above.
Expected behavior
It should work like in ExaBGP 3.4.17.
Environment
OS: Ubuntu 20.04
Version: any ExaBGP 4.x
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
ExaBGP 3.4.17 works with the following configuration file:
(
A bit more of context:
origin: https://github.com/FRRouting/frr/blob/master/tests/topotests/bgp_flowspec/peer1/exabgp.cfg
This is part of the FRR test framework and I'm working on migrating from ExaBGP 3.4 to 4.x.
)
However ExaBGP 4.x has problem parsing that line. I've managed to get it running with the following patch:
The patch makes FRR's configuration test work, but it is not correct because it assumes IPv6 addresses will only have two
::
. I think the more correct fix is to enclose the IPv6 address with something (e.g.[1:2:3:4]:5000
) so there is no confusion when using plain IPv6 or when using redirect with ASN/community.(don't forget to use that patch with these PRs to get it working: #1002 and #1003)
Please let me know what should be the solution here (if there is any). I'm no expert in this so that is why I'm opening this issue.
To Reproduce
Just run
exabgp --validate
on the configuration above.Expected behavior
It should work like in ExaBGP 3.4.17.
Environment
The text was updated successfully, but these errors were encountered: