summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-08-12Fix extended-nexthop & add-path capability parsing.Konrad Zemek
The capabilities' DecodeFromBytes() was eating as much data as given, while these functions would normally be called with all the data remaining to parse - e.g. including following capabilities. Fixes osrg/gobgp#2399
2021-08-08Add support for the gRPC client to connect on a unix domain socketbbassingthwaite
2021-08-08server: fix ListVrf api to handle Name memberFUJITA Tomonori
Currently, just ignored. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-08-01v2.30.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-07-25Use `BGP_HEADER_LENGTH` instead of `19` in the codeKirill Smorodinnikov
2021-07-25fixed possible crash if nlriToIPNet result is nullzvfvrv
2021-07-01v2.29.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-06-30Handle ttl-security option correctlyDonatas Abraitis
It wasn't configurable at all. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-06-30added check on data length for SRv6EndpointBehaviorStructure and ↵zvfvrv
SegmentTypeB, others minor fix
2021-06-30fix UnmarshalSRSegments for SegmentTypeBzvfvrv
2021-06-30add support of the optional "SRv6 Endpoint Behavior and SID Structure" in ↵zvfvrv
segment type b
2021-06-30fix marshal and unmarshalzvfvrv
2021-06-30wip SegmentTypeB without SRv6 Endpoint Behavior and Structurezvfvrv
2021-06-30SegmentTypeB proto definitionzvfvrv
2021-06-27zebra: close the incoming channelLukas Bischofberger
In general the writer should close the channel, thus we can close the channel here directly. If zebra has disconnected the `closeChannel` method will in most cases not even close the channel because no more messages can be received on it.
2021-06-27Add support for encap tunnel in extended communities in policy.md.Guangtong Cao
2021-06-13Add support for encapsulation tunnel type in the extended community support ↵Guangtong Cao
in gobgp policy.
2021-06-07v2.28.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-06-07fix: fix check according to golang s1025Imcom Jin
https://staticcheck.io/docs/checks#S1025
2021-06-07refactor: nlri/nexthop requires MP will get MP explicitly already.Imcom Jin
so we can safely remove the MP_REACH_NLRI from ipv4_uc with ipv4 nexthop
2021-05-24Add FQDN capabilityDonatas Abraitis
It's not kinda RFC (draft), but it's implemented and used in various other open-source software like FRRouting, Bird, ExaBGP. It's very handy when dealing with lots of peers. Exampe between GoBGP and FRRouting: ``` % ./cmd/gobgp/gobgp neighbor 192.168.10.123 | grep -A4 fqdn: fqdn: advertised and received Local: name: donatas-pc, domain: Remote: name: exit1-debian-9, domain: ``` ``` % vtysh -c 'show bgp neighbors 192.168.10.17 json' | jq .'"192.168.10.17".neighborCapabilities.hostName' { "advHostName": "exit1-debian-9", "advDomainName": "n/a", "rcvHostName": "donatas-pc", "rcvDomainName": "n/a" } ``` Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-05-10Fixed dead lock bug caused by hold-time expiryzhouzijiang
Signed-off-by: zhouzijiang <zhouzijiang@jd.com>
2021-05-06cmd/rpki: support delete apiFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-05-03v2.27.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-04-22Do not suppress initial non-established peer state in MonitorPeerCarl Baldwin
The issue with the initial update was that sometimes a connection had not yet been established. Trying to get remote and local connection data caused a segmentation violation because `fsm.conn` was nil. Also adds a flag to MonitorPeerRequest in the GRPC API to enable the new behavior to avoid backward incompatibility. fixes #2047
2021-04-02v2.26.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-29Update protoMarcus Wichelmann
2021-03-29Added ListDynamicNeighbor message to APIMarcus Wichelmann
2021-03-29Added DeleteDynamicNeighbor message to APIMarcus Wichelmann
2021-03-29Added ListPeerGroup message to APIMarcus Wichelmann
2021-03-19Add GENEVE encapsulation supportRavi Aysola
2021-03-16Add support for the gRPC server to listen on a unix domain socketbbassingthwaite
Fixes #2230
2021-03-14add support for tunnel egress endpoint sub-TLVMikael Magnusson
As specified in draft-ietf-idr-tunnel-encaps-22. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2021-03-13tools: don't use a shebang for bash completionVincent Bernat
They are not expected to be executed. This seems a silly path, but some people bother filing bug reports about it, so if you are OK with it, it could be "fixed".
2021-03-06docs: fix typoFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-06docs: add next-hop action examplesFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-03policy: add nexthop unchangedFaicker Mo
Support config set-next-hop = "unchanged" and also cli command. Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
2021-03-03bugfix: should check if next-hop attr exists or not before appendImcom Jin
2021-03-03fixing an issue when gobgp sits between a MP-capable peer and a ↵Imcom Jin
non-MP-capable peer whereby MP-capable peer uses MP_REACH_NLRI to send updates to gobgp gobgp accepts it but without setting NEXT_HOP pathattr then gobgp propagates the paths to the non-MP-capable peer with update.NLRI set but without NEXT_HOP the non-MP-capable peer will treat the update as withdraw message cause routes cannot propagate properly
2021-03-02v2.25.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-01Fix LsTLVIgpRouterID.DecodeFromBytesKirill Smorodinnikov
According to https://tools.ietf.org/html/rfc7752#section-3.2.1.4, IGPRouterID could be 4-octet for OSPFv2 or OSPFv3 non-pseudonode.
2021-02-27Extend LsLinkDescriptor.StringKirill Smorodinnikov
Cover additional cases when only one part of the link is presented.
2021-02-25goreleaser: improve portabilityDamien Claisse
- Use tags=netgo to ensure net package won't use cgo - Rebuild stdlib (go build -a) to really disable cgo as it was tried in https://github.com/osrg/gobgp/pull/2300 - Remove static ldflags as it would statically compile cgo
2021-02-24Fix ParseValue's bug for BMPStatsTLV32xskingdom
2021-02-24server: fix AdministrativeCommunication message parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-02-13ci: fix release actionHEADmasterFUJITA Tomonori
release action should be triggered only when a tag is pushed. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-02-13feat: add option to bind listener to a (VRF) deviceMilan Lenco
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2021-02-03v2.24.0FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-01-27go fmtedSergey Elantsev
2021-01-23fixed panics on parsing malicious bgp packetsSergey Elantsev