29 Commits
Author SHA1 Message Date
FUJITA Tomonori d65df0b045 replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus
The usage of "github.com/sirupsen/logrus" is recommended.

Signed-off-by: FUJITA Tomonori <[email protected]>
2017-06-07 21:04:11 +09:00
IWASE YusukeandFUJITA Tomonori d5be199501 zebra/zapi: Fix offset calculation in IPRouteBody
Signed-off-by: IWASE Yusuke <[email protected]>
2017-04-01 16:10:30 +09:00
IWASE YusukeandFUJITA Tomonori f664875808 server/zclient: Retry Zebra message version negotiation
Currently, the Zebra message version used by ZClient is configurable
(default 2), but if the given version is miss-matched with that of
Zebra daemon, ZCient will fail to connect.

This patch fixes ZClient to retry the version negotiation.
For example, if failed with the version 2, retry with the version 3.

Note: In order to receive the first message from Zebra daemon when
instantiating ZClient, this patch fixes ZClient to send HELLO and
ROUTER_ID_ADD messages automatically.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-27 14:43:54 +09:00
IWASE Yusuke 5a74b0c454 zebra/zapi: Implement String() method to Body interface
For the convenience when logging, this patch implements String() method
to Body interface which is the interface of Zebra message body.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-06 11:23:46 +09:00
FUJITA Tomonori 0d908abbcb zebra: fix unittest on OSX
Signed-off-by: FUJITA Tomonori <[email protected]>
2017-03-04 09:54:20 +09:00
IWASE YusukeandFUJITA Tomonori eb5442d87f zebra/zapi: Utility func to decode/serialize nexthops
Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-02 16:07:27 +09:00
IWASE YusukeandFUJITA Tomonori c0d521333f zebra/zapi: Support NEXTHOP_REGISTER message
Signed-off-by: IWASE Yusuke <[email protected]>
2017-02-15 00:11:29 +09:00
IWASE YusukeandFUJITA Tomonori 087ea75850 zebra/zapi: Support NEXTHOP_UPDATE message
Signed-off-by: IWASE Yusuke <[email protected]>
2017-02-15 00:11:29 +09:00
IWASE YusukeandFUJITA Tomonori 0e53acd88f zebra/zapi: Add missing message types in quagga-1.1.1
Signed-off-by: IWASE Yusuke <[email protected]>
2017-02-15 00:11:29 +09:00
Tatsushi Demachi e84bf755a9 zebra: Process per-route MTU zebra message
Since Quagga 1.0.20160309, it implements per-route MTU handling which
adds MTU attribute to every ZEBRA_IPV4_ROUTE_ADD and
ZEBRA_IPV6_ROUTE_ADD messages. It causes "message length invalid" error
when GoBGP receives messages from Zebra and as the result, routes from
Zebra are no longer added to GoBGP.

This fixes the issue by decoding/encoding MTU attribute properly.

Now parsed MTU attribute is not used anywhere, just kept in an internal
structure.
2017-02-10 20:57:11 +09:00
ISHIDA WataruandFUJITA Tomonori 671b067a57 fix compile failure on freebsd and windows
Signed-off-by: ISHIDA Wataru <[email protected]>
2017-01-25 06:11:16 -08:00
Wataru IshidaandFUJITA Tomonori 00766731ad zebra: support passing vrf-id
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-03 17:04:53 -07:00
Wataru IshidaandFUJITA Tomonori cdb8812b36 zebra: fix bug of zapi v3 InterfaceUpdateBody parsing
link-type field is added in v3 api

Signed-off-by: Wataru Ishida <[email protected]>
2016-10-03 17:04:53 -07:00
kishiguroandFUJITA Tomonori 36ea117e74 Apply previous change's to test as well. 2016-09-29 16:29:15 -07:00
kishiguroandFUJITA Tomonori 554f309c90 Support of ZAPI version 3 (handles VRF ID). 2016-09-29 16:29:15 -07:00
Peng XiaoandFUJITA Tomonori b0bead46c8 fixed some misspell error
Signed-off-by: Peng Xiao <[email protected]>
2016-08-21 08:29:42 +09:00
dspandFUJITA Tomonori c4fe45902e all logging is done with log.WithFields
Signed-off-by: dsp <[email protected]>
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-07-30 12:17:37 +09:00
FUJITA Tomonori e9c0c3e3e4 server: go fmt
[ci skip]

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-11 22:46:45 +09:00
Toshiki TsuboiandFUJITA Tomonori aa12e4c7ce zebra: support of debug log for zapi
"PANIC=runtime error: index out of range", due to defining "ifindex" field.
2016-05-11 16:19:03 +09:00
Hiroshi YokoiandFUJITA Tomonori e1bec970c3 zebra: return error
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-10-21 14:00:29 +09:00
Hiroshi YokoiandFUJITA Tomonori 9fbf43eccb zebra: prevent goroutine to broadcast from blocking
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-09-27 09:17:35 +09:00
ISHIDA Wataru b38d3f6723 zebra: enable to redistribute specific route type
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-09-25 18:20:48 +09:00
Hiroshi Yokoi 0aa37e5e24 server: get zebra conf from file
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-09-17 18:41:18 +09:00
FUJITA Tomonori 176485133a Add BSD support
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-09-16 22:37:34 +09:00
Hiroshi YokoiandFUJITA Tomonori 7956ff2c70 zebra: add NEXTHOP_LOOKUP and IMPORT_LOOKUP
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-09-04 14:22:50 +09:00
Hiroshi Yokoi cc51c48a49 zebra: distribute routes from zebra
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-09-01 19:42:02 +09:00
FUJITA Tomonori 93b6ec9355 make gobpgd buildable on Mac OS X
Not tested on Mac OS X but at least buildable.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-08-26 10:16:01 +09:00
FUJITA Tomonori 2ce0d48f2e zebra: just renaming
Use more appropriate names

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-08-26 09:34:05 +09:00
FUJITA Tomonori 67dcfd267d zebra: merge gozebra
Seems that no good reason to have a separate repo for gozebra.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-08-23 21:33:55 +09:00