summaryrefslogtreecommitdiffhomepage
path: root/pkg
AgeCommit message (Collapse)Author
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-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-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-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-13feat: add option to bind listener to a (VRF) deviceMilan Lenco
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2021-01-27go fmtedSergey Elantsev
2021-01-23fixed panics on parsing malicious bgp packetsSergey Elantsev
2021-01-23support UDP destination port sub-TLVMikael Magnusson
As specified in draft-ietf-idr-tunnel-encaps. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2021-01-20packet/bgp: Fix TunnelEncapSubTLV.DecodeFromBytesMikael Magnusson
Return data of the correct length from TunnelEncapSubTLV.DecodeFromBytes. This fixes a problem with TunnelEncapSubTLVUnknown which caused it to contain more bytes in its Value unless it was the last SubTLV. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2020-12-20fixed mistypeSergey Elantsev
2020-12-20fixed possible crashes on parsing of bgp messagesSergey Elantsev
2020-12-14change commentsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-12-09interop fixSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-30Unit tests and dependenciesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-30Code changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-29set shutdownWG to nil after stopBGP finishedDuan Jiong
otherwise gobgp will panic in handlefsmMsg when handle error condition Signed-off-by: Duan Jiong <duanjiong@yunify.com>
2020-11-25code changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-11-09server: fix conversion from api.RouteAction to config.DefaultPolicyTypeFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-11-09server: handle bogus addpath argumentFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-11-06Adding gRPC support for modified logging levelSteve Shaw
Signed-off-by: Steve Shaw <shaw38@gmail.com>
2020-11-06Fix missing args in server testsAlistair King
2020-11-06Use MonitorTableRequest.Name to filter by peerAlistair King
Filter returned Paths based on provided peer address (similar to GetTable). This should improve performance when using MonitorTable with ADJ_IN and Current for a single peer.
2020-10-21api: add ListPathRequest's option to get binary of nlri and attributesFUJITA Tomonori
put the binary of nlri and path attribute to the response. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-10-21fix stuck routeJordan Whited
2020-10-21packet: handle malformed prefix lenFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-10-20server: fix ListPolicyAssignment to handle empty policyFUJITA Tomonori
fix ListPolicyAssignment() return an assignment response even if the response doesn't have any policy. The assignment has default action policy so it's useful without any policy. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-09-16remove incomingCh when deleting dynamic peerChris Balmain
2020-07-13implement LsAddrPrefix marshal json functionJieJhih Jhang
2020-07-04server: don't send empty ExtendedNexthop capabilityFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-06-24Add //go:generate stringer directives for public enum types.Dmitri Nikulin
All such directives can be invoked by running $ go generate Stringer itself can be obtained by running $ go get golang.org/x/tools/cmd/stringer See https://github.com/osrg/gobgp/issues/2265
2020-06-24Regenerate stringer code for public enum types.Dmitri Nikulin
This adds support for several values which were added to enums without corresponding changes to the stringer generated code. New versions of stringer, including the one used for this change, add compile-time checks for whether any existing enum values have changed. Adding new values does not violate this check. Resolves https://github.com/osrg/gobgp/issues/2265
2020-05-13extend attributes proto for Prefix SID supportSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07address more static check failuresSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07Addressing review commentsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07remove debug messagesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-07Finish methods and restructure filesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-06code Decode and Serialize for Prefix SID types and add unit testsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-06add unit test to help with developmentSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05add object definitionsSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05additional changesSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-05coding the featureSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-05-04adding prefix_sid_attrSerguei Bezverkhi
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-04-26Refactoring Zebra and supporting frr7.3Hitoshi Irino
- Change const values to camel case from snake case to make zero golint's warnigns - Introduce convert functions (toEach, toCommon) between the newest version to older versions - Merge code about decode nexthop to reduce lines of code - Add frr7.3 statemet in allowable software for config - Rename and Update generated file by stringer
2020-04-24Add BGP-LS SRLG supportTom Shine
2020-03-31packet: fix typosFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-03-30packet: silence staticcheck warningFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-03-29fixed naming issue, removed one more error allocationSergey Elantsev