1
0
mirror of https://github.com/osrg/gobgp.git synced 2024-05-11 05:55:10 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Marcin Ptaszyński
5fbd0cb243 table: support AfiSafiIn Policy Condition match 2018-06-13 20:53:17 -07:00
urban
5d15b3f290 table: support nexthop match policy 2018-06-05 19:57:21 +09:00
IWASE Yusuke
008f34053c *.md: Improvements for markdownlint
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2018-04-02 16:16:01 +09:00
IWASE Yusuke
51f69fe247 cli-command-syntax: Update desc for "monitor" command
This patch adds a section for "monitor adj-in" command and updates
syntax and output examples for other "monitor" sub commands.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2018-01-12 21:36:57 +09:00
IWASE Yusuke
b8863e5814 doc: CLI Syntax for EVPN routes
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2017-12-21 08:23:14 +09:00
Satoshi Fujimoto
c31011c7b3 docs: Update docs for prefix representations in Neighbor Set
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
2017-12-16 20:27:06 +09:00
IWASE Yusuke
694d364d09 docs: cli-command-syntax.md: Missing arg to show VRF RIB
This patch fixes the example on the doc for showing the VRF RIB where
the "rib" keyword is missing to execute the command.

Also, the "-a <adddress family>" is an option and this patch puts it
into brackets.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2017-12-16 20:17:20 +09:00
IWASE Yusuke
c761860260 flowspec.md: Update for the details of CLI syntax
This patch updates the documents for the FlowSpec along with the
improvements of the CLI command implementation.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2017-12-05 11:44:47 +09:00
IWASE Yusuke
87b473ad4d cli: Enable to specify AS_PATH
This patch enables to specify AS_PATH in "gobgp" client command.
The syntax is similar to the output of AS_PATH in "global rib" show
command.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2017-08-30 09:24:10 +09:00
FUJITA Tomonori
c88aaff9b5 improve cli addpath usage message
also add an example to cli doc.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-07-26 15:18:49 +09:00
Satoshi Fujimoto
be708d0b8d doc: Add description for RPKI detailed information
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
2017-07-19 10:59:54 +09:00
Wataru Ishida
9b9a65d410 *: support replace-peer-as (aka as-override)
we use the term replace-peer-as instead of as-override
since openconfig is using it.

cli

```
$ gobgp n add <neighbor-addr> as <asn> replace-peer-as
```

config

```
neighbor:
  config:
    peer-as: <asn>
    neighbor-address: <neighbor-addr>
  as-path-options:
    config:
      replace-peer-as: true
```

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2017-05-10 08:15:00 +00:00
Wataru Ishida
1f053c25c4 *: support remove private as
cli

```
$ gobgp n add <neighbor-addr> as <asn> remove-private-as (all|replace)
```

config

```
neighbor:
  config:
    peer-as: <asn>
    neighbor-address: <neighbor-addr>
    remove-private-as: all
```

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2017-05-10 08:05:47 +00:00
ISHIDA Wataru
0f62519cd7 server: ignore routes when local AS is in AS_PATH
RFC4271 9.1.2 Phase 2: Route Selection

If the AS_PATH attribute of a BGP route contains an AS loop, the BGP
route should be excluded from the Phase 2 decision function.  AS loop
detection is done by scanning the full AS path (as specified in the
AS_PATH attribute), and checking that the autonomous system number of
the local system does not appear in the AS path.  Operations of a BGP
speaker that is configured to accept routes with its own autonomous
system number in the AS path are outside the scope of this document.

Also this commit adds support for allow-own-as option to relax this.

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2017-05-09 11:10:45 -04:00
Wataru Ishida
771d1f90af docs: update cli doc
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2016-11-04 13:20:09 +09:00
FUJITA Tomonori
c7653aa9d4 allow add local route with specific mpls label
Also don't allocate label for local routes. The label management needs
to work with other components rather than bgp.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-03 02:49:59 -07:00
Wataru Ishida
1f4a3192af cli/api: support getting table summary information
$ gobgp global rib summary -a ipv4
$ gobgp neighbor 10.0.0.1 local summary
$ gobgp neighbor 10.0.0.1 adj-in summary
$ gobgp neighbor 10.0.0.1 adj-out summary

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2016-10-16 14:07:06 +00:00
Wataru Ishida
d46da74d4f policy: support large-community match/action
close #1133

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2016-10-10 05:18:17 +00:00
FUJITA Tomonori
cab09990b8 docs: add cli example to add route with blackhole community
[ci skip]

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-08 05:50:53 -07:00
Wataru Ishida
a3ccd8e86b bgp/cli: Support Large Community
see https://tools.ietf.org/html/draft-heitz-idr-large-community-04

Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
2016-09-14 11:35:50 +09:00
Ben Agricola
ed62f3f3d9 Add shorter prefix search
Adds a shorter-prefixes search mode that finds any identical-or-less-specific routes
than the input values.

Bug-Url: #1006

Signed-off-by: Ben Agricola bagricola@squiz.co.uk
2016-07-11 21:41:01 +09:00
FUJITA Tomonori
8d7129d399 docs: fix typos in cli examples
[ci skip]

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-29 09:33:32 +09:00
ISHIDA Wataru
0dbf1d87cb policy: add local-pref action
$ gobgp policy statement st01 add action local-pref 110

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-05-25 02:53:42 +00:00
FUJITA Tomonori
45050d9b97 remove collector mode support
We need to update yang config collector mode (split into config and
state). before that, let's remove the feature itself to see if there
is any user of it.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-04-25 23:52:21 +09:00
ISHIDA Wataru
051621bf3a *: support draft-ietf-idr-flowspec-l2vpn-03
$ gobgp g ri add -a l2vpn-flowspec match destination-mac 01:01:01:01:01:01 ether-type ipv4 vid 10 cos 20
$ gobgp g ri add -a l2vpn-flowspec match source-mac 01:01:01:01:01:01 ether-type arp inner-vid 20 inner-cos 20

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-03-31 11:38:17 +09:00
ISHIDA Wataru
2a0168f867 *: support Opaque Signaling
see https://tools.ietf.org/html/draft-lapukhov-bgp-opaque-signaling-01

using 16397 for AFI, 241 for SAFI, 41 for Opaque Path Attribute
temporarily.

$ gobgp global rib add -a opaque key hello value world

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-03-20 01:00:51 +09:00
ISHIDA Wataru
a5cc2b1397 cli: enhance global command
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-03-17 10:47:11 +09:00
ISHIDA Wataru
79a8275508 docs: update
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-03-11 03:28:59 +09:00
ISHIDA Wataru
1f6e2d490b docs: update 2016-02-29 16:45:09 -08:00
ISHIDA Wataru
a892882fe3 docs: update
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2016-02-13 08:39:17 +09:00
ISHIDA Wataru
3e880da4ba doc: update cli syntax
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-12-06 12:46:07 +09:00
ISHIDA Wataru
7ff862f3ee api/cli: support showing longer-prefix
$ gobgp global rib
    Network      Next Hop  AS_PATH  Age       Attrs
*>  10.0.0.0/24  0.0.0.0            00:00:01  [{Origin: ?}]

$ gobgp global rib 10.0.0.0/20
Network not in table

$ gobgp global rib 10.0.0.0/20 longer-prefix
    Network      Next Hop  AS_PATH  Age       Attrs
*>  10.0.0.0/24  0.0.0.0            00:00:01  [{Origin: ?}]

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-12-04 11:01:07 +09:00
Han Zhou
16f7367a9a doc: correct the example of rib add command
Network prefix is required rather than just IP.
2015-11-10 11:48:49 -08:00
ISHIDA Wataru
2eecaf8462 docs: update document for policy-related commands
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-10-20 10:33:10 +09:00
Toshiki Tsuboi
7b350a733c cli: fix vrf add command
Correct mistakes of Export RT
2015-10-11 06:36:07 +09:00
ISHIDA Wataru
69aceacaec docs: update cli syntax doc
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-08-13 16:08:16 +09:00
Naoto Hanaue
54092b2703 config: rename distributed-policy to in-policy 2015-08-11 07:13:49 +09:00
ISHIDA Wataru
c076fbfe69 docs: update gobgp client syntax document
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-08-10 10:18:06 +09:00
Naoto Hanaue
74fd2e51ee cli: change the parser of cli in accordance with the change of aspath condition 2015-08-06 21:59:43 +09:00
Naoto Hanaue
d895c87c74 doc: update documents in accordance with the latest openconfig yang 2015-08-03 16:40:05 +09:00
Naoto Hanaue
c4064ae433 doc: add description of extended community commands 2015-07-15 19:37:21 +09:00
Hiroshi Yokoi
16aec4acef doc: add the description of aspath prepend action 2015-07-13 15:41:27 +09:00
Naoto Hanaue
cd89516a28 doc: add examples to cli-command-syntax.md 2015-07-03 18:37:34 +09:00
Hiroshi Yokoi
64f5846bc6 doc: add the description for distribute policy 2015-07-02 12:02:38 +09:00
Naoto Hanaue
e47ae11969 doc: update cli command syntax 2015-07-01 21:27:31 +09:00
ISHIDA Wataru
69b36e90ba cli: add support of route filtering in show commands
$ gobgp global rib
   Network     Next Hop AS_PATH Age        Attrs
*> 10.0.0.0/24 0.0.0.0  65000   00:10:17   [{Origin: IGP}]
*> 10.0.0.0/25 0.0.0.0  65000   00:10:16   [{Origin: IGP}]
*> 10.0.0.0/26 0.0.0.0  65000   00:10:15   [{Origin: IGP}]
*> 10.0.1.0/24 0.0.0.0  65000   00:10:21   [{Origin: IGP}]
*> 10.0.2.0/24 0.0.0.0  65000   00:10:20   [{Origin: IGP}]

$ gobgp global rib 10.0.0.0/24
   Network     Next Hop AS_PATH Age        Attrs
*> 10.0.0.0/24 0.0.0.0  65000   00:10:54   [{Origin: IGP}]

$ gobgp global rib 10.0.0.10
   Network     Next Hop AS_PATH Age        Attrs
*> 10.0.0.0/26 0.0.0.0  65000   00:11:16   [{Origin: IGP}]

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
2015-06-26 13:10:15 +09:00
Naoto Hanaue
b38154da1a docs: update cli-command-syntax.md 2015-06-17 20:53:39 +09:00
Naoto Hanaue
349f74e4e7 docs: add update docs about the new CLI syntax 2015-05-26 17:32:05 +09:00
Naoto Hanaue
ce20ba94e6 docs: add cli command syntax document 2015-04-22 18:12:51 +09:00