Skip to content

gobgp complains about NextHop Attribute containing IPV6 address #605

@Arvinderpal

Description

@Arvinderpal

For IPv6 route advertisements, MP-BGP extensions should be used. Recent PR #578 does this; however it also inserts the IPV6 address in the NEXTHOP field. This causes gobgp to produce the following error:

I1212 05:06:46.172157 22013 network_routes_controller.go:332] Processing bgp route advertisement from peer
WARN[0019] the received Update message was treated as withdraw Key="fd00::9" State=BGP_FSM_ESTABLISHED Topic=Peer error="invalid nexthop address"

A recent PR in gobgp (osrg/gobgp#1893) does not produce he above error/warning for IPv6 addresses in NEXTHOP field; however, according to rfc4760, NEXTHOP is only for IPV4 addresses. https://tools.ietf.org/html/rfc4760

Suggested fix: remove the IPV6 address insertion into NEXTHOP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions