-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Redirect IPv6 extended communities (for Flowspec Redirect-IPv6) #927
Comments
Actually, when configuring
|
which draft overrides the other one : draft-ietf-idr-flow-spec-v6-09 or draft-ietf-idr-flowspec-redirect-ip ? |
I do not believe that https://tools.ietf.org/html/rfc5701 was implemented. What you are finding is the Flowspec next hop redirect RFC. It should however be quite straight forward to implement. |
I can however see a 20 byte ipv6 ext community forged, but with wrong type and subtype. |
It is the correct type and subtype, but you're looking for a different feature. 🙂 The patchset recently added is for redirect to next hop (draft-ietf-idr-flowspec-redirect-ip), this is for explicitly writing the next hop ip address. This is action type 0x000c, as documented here https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml (search for 0x000c). What you're asking about is redirect ipv6, action type 0x800b. This is for redirecting traffic into a VRF, picked by a specific ipv6 address being in its import policy. This is not implemented. In general, rfcs that say nexthop are going to be a simple next hop IP rewrite. Anything that says redirect without "nexthop" in the name is going to be some form of local VRF redirection. |
As for rfc5701 specifically - support for it was added to be able to send the ipv6 extended community for the 0x000c next hop action. I don't believe anything else in the exa codebase currently uses it, but it would be easy to modify if you want to support additional ipv6 extended communities. |
Thanks @elindsey for the comments; actually the draft from I would be ok to specify the command. for the implementation, I also would be happy to help for that; alittle guidance could be helpful however. |
I don't speak for exa or Thomas, so anything he says overrides me - but I'll voice my thoughts
I would first see if this functionality can be attached to the existing
This recent pull request is a useful reference. This commented out stub was going to add support for an ipv4:asn vrf redirect and may be relevant. |
I have to admit that the format is equal to me, provided that the feature can be put into exabgp. |
adding the new syntax to |
…o test code included)
@elindsey thank you for your help figuring out what the type and sub-type needed to be :p @pguibert6WIND can you please try and tell us if it is working as you expect. I have no way to test. If it is ok, then I will add some code for self-testing the generation and decoding of the attributes. The code is untested though. |
Ahh, thanks for the fix. 🙂 I think the 0x0002 in the patch is incorrect. RFC 5701 specifies a route target format of type 0x0002, but draft-ietf-idr-flow-spec-v6-08 is the actual flowspec redirect ipv6 action that happens to reuse that format for a different purpose with type 0x800B. 0x80 is from the experimental use range, which is why I assume it's not in the IANA registry - this redirect ipv6 draft doesn't look finished or adopted. @pguibert6WIND have you seen any vendor gear that claims support for draft-ietf-idr-flow-spec-v6-08? I haven't been able to turn up any. |
…vious patch) a bug introduced by #923
@elindsey happy to change the 0x0002 to whatever is seen in production ... |
@elindsey perhaps I am mixing redirect with adding an IPv6 RT and Origin support ..It has been quite a few years since I last looked at the community RFCs. |
Hi @thomas-mangin ,
the behaviour is ok from my side.
and I tried to run exabgp, but with no success.
did I make someting wrong? |
adding to this, currently it is possible to have the following as for simpson draft:
My expectation is that redirect either takes an IP (v4 or v6 like for simpson draft with IP included in NLRI) or an IPv6 route target ( the new draft for redirect vrf). |
Need to look how I can do the parsing .. |
|
Hi Thomas, use case 1 : simpson way: nexthop IPV6 added in NLRI IPv6 : NOK
16:07:44 | 20468 | configuration | problem parsing configuration file line 15 use case 2 : draft ietf flowspec ipv6 way: nexthop IPV6 encoded with AS2B in IPv6 ext comm : NOK
|
Thanks .. will investigate |
not sure what I should do to close this ... |
Hi Thomas, |
Hello,
Is the RFC 5701 supported ?
If not, this would be good to have in order to have support for Redirect-IPv6 from [0]
Thanks,
Philippe
[0] https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-09
The text was updated successfully, but these errors were encountered: