296 Commits

Author SHA1 Message Date
Yutaro Hayakawa d0bf8138ff Update the reference of draft-ietf-idr-bgp-gr-notification
draft-ietf-idr-bgp-gr-notification is promoted to RFC8538.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
2024-04-27 23:51:16 +09:00
Yuya Kusakabe 270ee41d9a mup: add Source Address to Type 1 ST Route
This patch adds Source Address to Type 1 ST Route as defined in draft-mpmz-bess-mup-safi-03.
See https://datatracker.ietf.org/doc/html/draft-mpmz-bess-mup-safi-03#section-3.1.3
2023-12-15 15:24:24 +09:00
SkalaNetworks 4364a26a7f feat(config): autoreload on config changes 2023-10-17 17:27:43 +00:00
Andrew Redmon 9692041417 Update configuration documentation for overriding peer-as checking during FSM 2023-09-08 09:28:56 +09:00
Kirill Pletnev 35bfc9605c CLI VPNv4/VPNv6 filtering
gobgp CLI can filter VPNv4/VPNv6 prefixes with or without rd.
2023-09-06 11:14:47 +03:00
menetelk0 7109696696 Updating support of L2VPN VPLS address family (AFI 25, SAFI 65) 2023-04-25 01:21:40 +03:00
Yuya Kusakabe cbd1d66d8b mup: fix TEID processing in Type 1/2 ST Route
Fix TEID processing in Type 2 ST Route:
- TEID can be 0-32 bits value as described in I-D.

Accept hex and IPv4 format for TEID in CLI and show TEID as IPv4 format in CLI.
- TEID is generally represented in hexadecimal format.
- IPv4 format is useful because Type 2 ST Route can be used in the longest match algorithm as described in I-D.
2023-03-23 16:19:33 +09:00
Donatas Abraitis c556ca4f8d Add SoftwareVersion capability
https://datatracker.ietf.org/doc/html/draft-abraitis-bgp-version-capability

Working example with FRR
```
% ./gobgp neighbor 192.168.10.124
BGP neighbor is 192.168.10.124, remote AS 65001
  BGP version 4, remote router ID 200.200.200.202
  BGP state = ESTABLISHED, up for 00:01:14
  BGP OutQ = 0, Flops = 0
  Hold time is 3, keepalive interval is 1 seconds
  Configured hold time is 90, keepalive interval is 30 seconds

  Neighbor capabilities:
    multiprotocol:
        ipv6-unicast:	advertised
        ipv4-unicast:	advertised and received
    route-refresh:	advertised and received
    extended-nexthop:	advertised
        Local:  nlri: ipv4-unicast, nexthop: ipv6
    UnknownCapability(6):	received
    UnknownCapability(9):	received
    graceful-restart:	advertised and received
        Local: restart time 10 sec
	    ipv6-unicast
	    ipv4-unicast
        Remote: restart time 120 sec, notification flag set
	    ipv4-unicast, forward flag set
    4-octet-as:	advertised and received
    add-path:	received
      Remote:
         ipv4-unicast:	receive
    enhanced-route-refresh:	received
    long-lived-graceful-restart:	advertised and received
        Local:
	    ipv6-unicast, restart time 10 sec
	    ipv4-unicast, restart time 20 sec
        Remote:
	    ipv4-unicast, restart time 0 sec, forward flag set
    fqdn:	advertised and received
      Local:
         name: donatas-pc, domain:
      Remote:
         name: spine1-debian-11, domain:
    software-version:	advertised and received
      Local:
         GoBGP/3.10.0
      Remote:
         FRRouting/8.5-dev-MyOwnFRRVersion-gdc92f44a4
    cisco-route-refresh:	received
  Message statistics:
```

FRR side:

```
root@spine1-debian-11:~# vtysh -c 'show bgp neighbor 192.168.10.17 json' | \
> jq '."192.168.10.17".neighborCapabilities.softwareVersion.receivedSoftwareVersion'
"GoBGP/3.10.0"
root@spine1-debian-11:~#
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 23:09:24 +09:00
Yuya Kusakabe 3bcf762582 docs: add srv6_mup.md 2022-10-16 22:59:31 +09:00
Tomas Vilemaitis ed0b7f9499 cli: Add local-as attribute in neighbor cmd 2022-09-02 15:50:29 +03:00
FUJITA Tomonori 49a3897be8 fix markdownlint warnings
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2022-08-05 20:38:21 +09:00
Hitoshi Irino 157a7689e1 Support FRRouting 8.2 and introduce zebra.Software structure. 2022-05-04 07:32:58 +00:00
cpmarvin 459bcfedf4 documentation : BGP-SR via python grpc example 2022-03-24 08:47:16 +09:00
FUJITA Tomonori c0c3fb98b7 ci: add lib-ls example
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-14 11:38:10 +00:00
FUJITA Tomonori 5798cfaf26 doc: replace MonitorPeer with WatchEvent API
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-14 01:11:44 +00:00
FUJITA Tomonori 6eeabdf01b proto: replace 'as' with 'asn'
For consistency, always use 'asn' instead of 'as', 'as_number', etc.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-11 01:36:20 +00:00
FUJITA Tomonori f871b60c01 doc: fix excample code of library usages
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-08 13:09:34 +00:00
FUJITA Tomonori c593d7c8b3 switch to Go API v2 for protobuf
seems that sticking to Go API v1 for protobuf is headache for projects
using GoBGP.

This breaks the compatibility so bumps up the major version to 3.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-08 07:22:50 +00:00
Donatas Abraitis 93f1ee1258 doc: Adjust documentation for link-bandwidth extended community
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-11-04 20:12:58 +09:00
Guangtong Cao 0419224a8c Add support for encap tunnel in extended communities in policy.md. 2021-06-27 14:45:40 +00:00
FUJITA Tomonori 4df939a3c9 docs: fix typo
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-06 21:15:21 +09:00
FUJITA Tomonori 5b7e123820 docs: add next-hop action examples
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-03-06 20:58:35 +09:00
Faicker Mo cd5671baee policy: add nexthop unchanged
Support config set-next-hop = "unchanged" and also cli command.

Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
2021-03-03 09:47:50 +09:00
Serguei Bezverkhi 283659d8b7 fix linting errors
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-12-02 07:21:01 +09:00
Serguei Bezverkhi 57068b16fd Add documentation, fix typo in proto and add marshal for tunne encal sub tlvs
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-12-02 07:21:01 +09:00
Serguei Bezverkhi ffe50e85d4 Add SR policy documentatiom
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-12-02 07:21:01 +09:00
Hitoshi Irino b55c32ce65 Support of FRR7.5
This commit works with FRR7.5 when "version = 6" is specified in zebra.config
- Changes Zebra internal API commands to FRR7.5 which is incompatible with older version.
- Changes SendHello() to include AFI
- Changes SendRouteIDAdd() to include AFI
- Changes decodeFromBytes/serialize of IPRouteBody and NexthopUpdateBody, because size of MESSAGE_FALG is changed.
2020-11-29 12:23:28 +09:00
Hitoshi Irino 7d6b9e78b0 Update zebra.md to fix markdownlint error 2020-07-27 07:06:52 +09:00
Hitoshi Irino efeb8c51fb zebra: refactoring and fix bug and add processing messageBackupNexthop (added in frr7.4)
- Move function for checking softwareName from internal/pkg/config/default.go to internal/pkg/zebra/zapi.go.
- Delete support for frr7.1.
- Fix bug by inverse processing MessageMTU and messageTag, and add messageTableId in decodeFromBytes and serialize of IPRouteBody.
- Add processing messageBackupNexthop (which is added in frr7.4) in decodeFromBytes and serialize of IPRouteBody.
- Update document.
2020-07-26 22:37:04 +09:00
Randy Lam ffa47a6c7e fix fragment with ether-type
Should be ether-type instead of fragment
2020-07-10 16:12:23 +08:00
FUJITA Tomonori 03f864a23f docs: update cli output
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2020-03-05 14:28:44 +09:00
Hitoshi Irino 05a7e0e993 Supporting FRR7.2 2020-01-13 18:55:51 +09:00
FUJITA Tomonori 79a9e20096 docs: update python grpc code generation
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-11-07 15:05:00 +09:00
FUJITA Tomonori a464d93cb3 docs: update bmp verification section
gobgmp was removed long ago. Add a pointer to other BMP server
implementations.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-10-18 10:13:08 +09:00
FUJITA Tomonori 03f8fb262c docs: update rpki config
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-09-09 14:16:06 +09:00
Kevin Kirsche a7e6068fbd Fix error in BGP Confederation syntax
Sorry about this, I had forgot that TOML subtables require the name of the parent table in their path's. I've validated this configuration:

```
root@kkirsche-dev:/home/kkirsche# ./gobgpd -f config.toml
{"level":"info","msg":"gobgpd started","time":"2019-08-28T18:32:23Z"}
{"Topic":"Config","level":"info","msg":"Finished reading the config file","time":"2019-08-28T18:32:23Z"}
{"level":"info","msg":"Peer 10.0.0.2 is added","time":"2019-08-28T18:32:23Z"}
{"Topic":"Peer","level":"info","msg":"Add a peer configuration for:10.0.0.2","time":"2019-08-28T18:32:23Z"}
```

```
root@kkirsche-dev:# cat config.toml
[global]
  [global.config]
    as = 65001
    router-id = "10.0.0.1"
  [global.confederation.config]
    enabled = true
    identifier = 30
    member-as-list = [ 65002 ]
```
2019-08-28 14:33:00 -04:00
Kevin Kirsche bf2df3ec6f Add BGP Confederation documentation
Fix #2146
2019-08-27 15:36:48 -04:00
Hitoshi Irino 82f6a7c699 Support connecting zebra of cumulus linux 2019-08-21 08:58:25 +09:00
FUJITA Tomonori c17003e71b docs: add aspath attribute to library usage
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-08-01 14:34:55 +09:00
Hitoshi Irino 7284d4cf8b Avoid panic by receiving vpnv6 prefixes with zebra reported in issue #2113
- Additionally bug fix which avoid panic caused by displaying vpnv6 prefixes using gobgp vrf rib
- Supporting FRRouting 7.1.x
2019-07-21 15:25:50 +09:00
George Melikov 4267098933 gRPC docs: include all needed paths
Signed-off-by: George Melikov <mail@gmelikov.ru>
2019-07-16 16:30:04 +03:00
FUJITA Tomonori 8fb71943c3 docs: remove obsolete rpki command
Long ago gobgp stored the validation results in memory but for reduce
memory usage, the cache was removed. Currently, every time you request
the validation result, gobgp validates paths with the latest ROAs.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-05-26 19:39:43 +09:00
FUJITA Tomonori 25428e881e fix markdownlint warnings
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-05-16 20:59:53 +09:00
Hitoshi Irino 7d2823d4c0 zebra: supporting FRRouting version 7
- the "version" parameter (which means ZAPI) 6 in zebra config changes supporting FRRouting version 7 instead of FRRouting version 6.
 - the "software-name" parameter which supports backward compatibility is added in zebra config.
   (GoBGP support FRRouting version 6 when "version = 6" and "software-name = frr6" is configured.)
2019-05-08 08:48:26 +09:00
JieJhih Jhang 42feaea2a0 cmd/gobgp: Parse evpn IPMSI parameter 2019-04-11 07:30:35 +09:00
FUJITA Tomonori fa5878f6f3 docs: add how policy and soft reset works
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-04-10 22:06:40 +09:00
Nasato Goto 20d3254d3b docs: update image of route server policy model
Corresponding to Single RIB structure.
2019-03-29 16:11:00 +09:00
Hitoshi Irino b7189a6aca Updating documet integrating with FRRouting and use of mpls-label-range-size. 2019-03-14 21:20:31 +09:00
Vincent Bernat dc4d9c6d1b doc: fix "del" command for removing a neighbor
`gobgp neighbor delete` doesn't work. We need to use `gobgp neighbor del`.
2019-03-05 18:06:56 +01:00
FUJITA Tomonori 259d9b5264 docs: add v6 route example to lib
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2019-02-19 12:37:27 +09:00