172 Commits
Author SHA1 Message Date
Satoshi Fujimoto 1af73d413a grpc: Update Java sample client for GoBGP v1.20 gRPC API
Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:36:24 +09:00
Satoshi Fujimoto 487c30fbc4 grpc: Update and Modify C++ sample client
This patch updates C++ sample gRPC client for GoBGP v1.12 gRPC API.
And this removes the route announcement feature from C++ sample client,
for maintenance and uniformity.

Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:33:07 +09:00
Satoshi Fujimoto aea13caea6 grpc: Improve building tools and docs for C++ client
This patch includes the following fixes:
* update Makefile for protobuf 3.3.0 / gRPC 1.4.1
* make build.sh which generates stub codes
  and builds GoBGP shared library
  (instead, remove those operations from docs)

Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:32:57 +09:00
Satoshi Fujimoto e314f126c1 grpc: Update Ruby sample for GoBGP v1.20 gRPC API
Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:30:36 +09:00
Satoshi Fujimoto ba2ac3e452 grpc: Update Python sample and doc for GoBGP v1.20 gRPC API
Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:29:51 +09:00
Satoshi Fujimoto b81e2fd806 docs: Separate sample codes from gRPC document
This patch separate sample codes from grpc-client.md
and adds references to samples in tools/grpc/.

Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-30 13:26:14 +09:00
IWASE YusukeandFUJITA Tomonori bc3e06a55f config: TTL value for BGP packets
Signed-off-by: IWASE Yusuke <[email protected]>
2017-06-23 18:13:19 +09:00
IWASE YusukeandFUJITA Tomonori 5bb427a994 config: Add parameters for TTL Security
Signed-off-by: IWASE Yusuke <[email protected]>
2017-06-23 18:13:19 +09:00
Satoshi Fujimoto 369626d222 config: Option to enable Dynamic Neighbor
Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-16 15:53:07 +09:00
IWASE Yusuke 4bce52c3f3 config: Add counter for BMP statistics
Signed-off-by: IWASE Yusuke <[email protected]>
2017-06-09 11:23:06 +09:00
IWASE YusukeandFUJITA Tomonori bbf4b7c2a9 config: Option to enable BMP Route Mirroring
Signed-off-by: IWASE Yusuke <[email protected]>
2017-06-03 18:18:23 +09:00
IWASE YusukeandFUJITA Tomonori 449e1acb8d tools: Update usage of pyang_plugins
Signed-off-by: IWASE Yusuke <[email protected]>
2017-06-03 05:51:19 +09:00
IWASE Yusuke 76ba8fcbda server/peer: Number of filtered routes to advertise
This patch extend the "AdjTable" container to store the number of the
"filtered" routes which should not be advertised to the given neighbor.
This routes mean the filterd routes because of RTC, VRFs, policy and
other constraints.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-05-22 13:12:02 +09:00
IWASE Yusuke c37b50a024 config: Add interval seconds for BMP stats reports
This patch suppose the default interval of the BMP stats reports is
0 which disable this feature and the range of this interval is 15
though 65535 seconds to follow Junos OS configuration.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-05-22 13:12:02 +09:00
IWASE YusukeandFUJITA Tomonori fa1378f58b bmp: Obsolete "both" option for route-monitoring-policy
Because of the introduction of "local-rib" and "all" options for
route-monitoring-policy, this patch obsoletes "both" option.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-05-22 12:10:07 +09:00
IWASE YusukeandFUJITA Tomonori ea56b24395 bmp: Enable to specify all route monitoring policies
This patch adds the new key "all" for specifying the all BMP route
monitoring policies.

Configuration Example:
  [[bmp-servers]]
    [bmp-servers.config]
      address = "127.0.0.1"
      port=11019
      route-monitoring-policy = "all"

Signed-off-by: IWASE Yusuke <[email protected]>
2017-05-22 12:10:07 +09:00
IWASE YusukeandFUJITA Tomonori 0f0f13417e config/bgp_configs: Constant for Local RIB in BMP
This patch adds a constant for Local RIB routes defined in
"draft-evens-grow-bmp-local-rib".

Signed-off-by: IWASE Yusuke <[email protected]>
2017-04-17 21:57:11 +09:00
FUJITA Tomonori a2db0a7586 config: update yang file
update the yang file for the commit 59ec403de7.

Signed-off-by: FUJITA Tomonori <[email protected]>
2017-03-06 20:33:20 -08:00
Wataru Ishida 93d1dca70a config: simplify route-disposition configuration
before:

```yaml
actions:
    route-disposition:
        accept-route: true
        reject-route: false
```

after

```yaml
action:
    router-disposition: accept-route
```

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-17 23:22:55 -05:00
Wataru Ishida 1e22e529c9 config/api: create admin-state type
align with session-state

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:15:47 +00:00
Wataru Ishida 480eb32783 config: add json tag for config structures
Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:15:44 +00:00
Wataru Ishida 926ab34220 config: use struct type instead of []byte for capability and open msg
Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:15:35 +00:00
Wataru Ishida d23cea2d7c config: delete Equal() method for State structures
we only use Equal() method for configuration structures

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:12:50 +00:00
Wataru IshidaandFUJITA Tomonori a17832195c support neighbor belongs to VRF
$ gobgp vrf add red rd 100:100 rt both 100:100
$ gobgp neighbor add 10.0.0.1 as 2 vrf red
$ gobgp vrf red neighbor
Peer     AS  Up/Down State       |#Advertised Received Accepted
10.0.0.1 2   never   Active      |          0        0        0

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-04 13:19:47 +09:00
FUJITA Tomonori be9918a163 remove label allocation completely
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-11-03 02:49:59 -07:00
Wataru Ishida d46da74d4f policy: support large-community match/action
close #1133

Signed-off-by: Wataru Ishida <[email protected]>
2016-10-10 05:18:17 +00:00
Wataru IshidaandFUJITA Tomonori 614746ca11 *: support long lived graceful restart
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-09 07:18:13 -07:00
Wataru IshidaandFUJITA Tomonori 6b6f6974fc *: Notification support for BGP GR
implement draft-ietf-idr-bgp-gr-notification-07

Signed-off-by: Wataru Ishida <[email protected]>
2016-10-09 07:15:08 -07:00
kishiguroandFUJITA Tomonori 8f4603b25a Add version to zebra-config in gobgp.yang. 2016-09-29 16:29:15 -07:00
FUJITA Tomonori db3dbd7257 tools: use forked openconfig repository
Use the specific commit id.

[ci skip]

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-28 20:08:14 -07:00
FUJITA Tomonori eef1fc0a75 add RemoteRouterId to config.NeighborState
Stop using config.NeighborState's Description in a hacky way for the
remote Router Id.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-08-26 18:15:03 +09:00
Peng XiaoandFUJITA Tomonori b0bead46c8 fixed some misspell error
Signed-off-by: Peng Xiao <[email protected]>
2016-08-21 08:29:42 +09:00
ISHIDA WataruandFUJITA Tomonori cd4b0107c3 policy: support route-type condition
// match with routes locally generated
$ gobgp policy statement s0 add condition route-type local

// match with routes received from eBGP peers
$ gobgp policy statement s0 add condition route-type external

// match with routes received from iBGP peers
$ gobgp policy statement s0 add condition route-type internal

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-17 21:23:08 +09:00
FUJITA Tomonori 2c12fa2b92 mrt: support per-peer table dump with route server configuration
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-08-15 09:24:49 +09:00
FUJITA Tomonori 411bf84633 support mrt table dump (TABLE_DUMPv2 format)
Only global rib dumping is supported for now.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-08-14 07:51:42 +09:00
ISHIDA WataruandFUJITA Tomonori 1890b4c5ef config: support unnumbered bgp peering
from configuration file:

```toml
[[neighbors]]
[[neighbors.afi-safis]]
neighbor-interface = "eth0"
peer-as = 65000
```

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-02 10:48:58 +09:00
FUJITA Tomonori c31164d90d move gRPC-related code for RPKI to grpc_server.go
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-07-20 04:25:25 +09:00
FUJITA Tomonori b6e606a994 remove gRPC dependency from peer.go
move gRPC dependency from peer.go to grpc_server.go

Preparation for the removal of gRPC dependency from packages except
for api package.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-07-20 02:52:59 +09:00
Shintaro Kojima ff58dba190 Fix and get along with gobgpd v1.9 2016-07-20 05:58:16 +09:00
FUJITA Tomonori 37d3629d8b config: handle entry's empty name
Equal method assumes that an each entry has unique name and uses it as
a key for map. However, currently, an entry is allowed to have an
empty name. To work around the problem, uses an index in the list as a
key for map.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-28 07:54:52 +09:00
FUJITA Tomonori 1e360ff7f5 config: fix misuse of pointers
Equal method for map misuses a pointer; all the entry of the map
becomes idential.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-28 07:36:13 +09:00
FUJITA Tomonori 7c42e295e2 add collector feature
dump the update messages and the state change of peers into influxdb:

[collector.config]
  url = "http://localhost:8086"
  db-name = "gobgp"

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-23 20:32:47 +09:00
ISHIDA Wataru 982c5de889 tools: support loading completion scripts when bash boots up
[ci skip]

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-17 11:02:02 +00:00
FUJITA Tomonori 8fd25af4ce zebra: make zebra config consistent with the rests
- split config and state
- move to Bgp structure (aligned with Rpki, Bmp, and Mrt)

Also makes zebra configured via GRPC channel.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-17 08:52:28 +09:00
tamihiroandFUJITA Tomonori ce3177c565 Accommodate latest gobgp.proto message updates. Handle request timeouts. 2016-05-14 00:55:49 +09:00
ISHIDA Wataru 6e8d1bb162 config: support reload of AdminDown
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-27 10:32:42 +00:00
ISHIDA Wataru 1cbebfd6a3 config: don't take into account State struct in Equal()
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-27 10:32:42 +00:00
ISHIDA Wataru f99362e876 config: make listen config struct aligned with open-config model
have config/state container

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-27 10:32:39 +00:00
ISHIDA Wataru f6c70e980d config: make route-target config struct aligned with open-config model
have config/state container

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-27 10:07:02 +00:00
FUJITA Tomonori 21938add9f move NeighborPortNumber config to transport.Config
More appropriate.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-04-26 07:20:47 +09:00