19 Commits
Author SHA1 Message Date
Satoshi Fujimoto be2524ee3e config: Use State to get NeighborAddress instead of Config
By introducing dynamic neighbor feature,
GoBGP can have dynamic neighbors,
and corresponding Config.NeighboAddress can be empty.

This patch sets State.NeighborAddress for all neighbors,
and gets the neighbor's address from them.

Signed-off-by: Satoshi Fujimoto <[email protected]>
2017-06-16 09:09:47 +09:00
Wataru Ishida 86d9587f75 cli: speed up showing a specific defined-set
Signed-off-by: Wataru Ishida <[email protected]>
2017-05-06 09:30:10 -04:00
FUJITA Tomonori 7fc7956946 improve performance of getting single neighbor information
avoid calculation of the number of adjout that will not be used.

Signed-off-by: FUJITA Tomonori <[email protected]>
2017-04-20 15:31:27 +09:00
ISHIDA WataruandFUJITA Tomonori 94865943c6 client: fix bug of getting unnumbered neighbor 2017-04-04 22:07:46 +09:00
Wataru IshidaandFUJITA Tomonori f8b9b0a7ed cli: don't calculate # of advertised routes when not necessary
Signed-off-by: Wataru Ishida <[email protected]>
2017-04-02 14:17:14 +09:00
IWASE Yusuke 59ec403de7 config: Config values for Nexthop Tracking with ZClient
For configuring the Nexthop Tracking features with ZClient, this patch
adds the config values:
 - "nexthop-trigger-enable" enables to the Nexthop Tracking features.
   Please note this features is only available with version 3 or later,
   and "true" by the default with that version.
 - "nexthop-trigger-delay" specifies the delay sec to update the
   nexthops triggered by the events from Zebra daemon. The default is
   5 secs and the same with the default of Cisco's routers.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-06 11:11:54 +09:00
ISHIDA WataruandFUJITA Tomonori 9a45ed09b0 cli: add current option to monitor commands
Signed-off-by: ISHIDA Wataru <[email protected]>
2017-02-15 00:10:15 +09:00
IWASE YusukeandFUJITA Tomonori 64360afd45 cli: Administrative Shutdown Communication on disable neighbor
This patch adds "--reason" option support into the disable neighbor command
which can specify "Administrative Shutdown Communication" on the BGP Cease
NOTIFICATION message.

Usage:
  $ gobgp neighbor <neighbor address> disable --reason "some messages"

Signed-off-by: IWASE Yusuke <[email protected]>
2017-02-03 22:47:34 -08:00
IWASE YusukeandFUJITA Tomonori 1063bcab1e cli: Communication on Administrative Shutdown NOTIFICATION
This patch enable to send an arbitrary message on the Cease NOTIFICATION
message with "Administrative Shutdown" and "Administrative Reset" subcodes
with "--reason" option.

Usage:
  $ gobgp neighbor <neighbor address> shutdown --reason "some messages"
  $ gobgp neighbor <neighbor address> reset --reason "some messages"

Reference: https://tools.ietf.org/html/draft-ietf-idr-shutdown-04

Signed-off-by: IWASE Yusuke <[email protected]>
2017-02-03 22:47:34 -08:00
kishiguroandFUJITA Tomonori 1ff6a7300b Add client API for EnableZebra. 2017-01-25 06:09:23 -08:00
ISHIDA Wataru f591da3beb client: fix client_test
before creating new client, we need to ensure GrpcServer is up.

Signed-off-by: Wataru Ishida <[email protected]>
2017-01-13 00:46:54 -05:00
Chris StocktonandFUJITA Tomonori 296ffdba9a client: rename client.GoBGPClient to client.Client 2016-12-10 05:44:43 -08:00
Chris StocktonandFUJITA Tomonori 7eadc1c1c9 client: Allow creating a GoBGPClient using a user specific GRPC connection and client
This allows wrapping the dialer, implementing your own wrapped
GobgpApiClient or dialing with a context for cancelation on unreliable
endpoints.
2016-12-05 01:21:31 -08:00
FUJITA Tomonori e11b09d7ea server: disable advertised number calculation with multiple neighbors
AdjRibOut isn't in memory so needs to be calculated on the fly.

Doing such for multiple neighbors consumes too much CPU (especially
there are lots of routes).

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-11-18 14:00:51 +09:00
Wataru Ishida 24e397b0f6 add go vet test
Signed-off-by: Wataru Ishida <[email protected]>
2016-11-17 21:52:20 -05:00
Wataru Ishida 285d4165ac client: fix bug of GetNeighbor()
also add a unit test

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-16 09:41:10 -05:00
Wataru Ishida 25fe17c817 client: remove server package dependency
move ROA under table package

Signed-off-by: Wataru Ishida <[email protected]>
2016-11-15 07:03:53 +00:00
Wataru Ishida ee8ce99e2d client: support neighbor filtering
Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:15:48 +00:00
Wataru Ishida 3f2dd34d37 client: add golang client library
Signed-off-by: Wataru Ishida <[email protected]>
2016-11-14 02:15:45 +00:00