1006 Commits
Author SHA1 Message Date
FUJITA Tomonori e849897061 GoBGP 1.2
Signed-off-by: FUJITA Tomonori <[email protected]>
v1.2
2015-12-02 09:02:41 +09:00
ISHIDA WataruandFUJITA Tomonori 5ceeb3da2d cli: speed up showing specific routes from global/local rib
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-12-02 08:53:04 +09:00
ISHIDA WataruandFUJITA Tomonori ff26d4e93b api/server: refine GetRib API
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-12-02 08:53:04 +09:00
Naoto Hanaue 3dfb941b33 cli: update README of bash completion
Add the description of how to customize bash_completion.
2015-11-30 21:27:21 +09:00
Naoto Hanaue f4f38d4e44 cli: split files of bash completion 2015-11-30 21:15:46 +09:00
Naoto Hanaue 5403e84952 cli: the follow to bash_completion format generated by the latest cobra library 2015-11-30 21:15:34 +09:00
FUJITA Tomonori f140536c8e test: check error about building gobgp docker image
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-29 16:22:54 -08:00
ISHIDA Wataru f2e50bf070 test: fix jenkins script
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-30 07:03:22 +09:00
FUJITA Tomonori 13b98e40b5 server: fix dropPeerAllRoutes() to handle rf
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-27 19:06:12 -08:00
ISHIDA WataruandFUJITA Tomonori b35796161c api: regenerate gobgp.pb.go to make it work with latest protobuf pkg
https://github.com/golang/protobuf/commit/02ac84f19cf2febf53ac06e7fbc446c1ea0258e3

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-27 19:02:25 -08:00
Naoto Hanaue cfedfe2194 cli: update bash_complition
Support to the completion of following commands.
- gobgp rpki enable
- gobgp mrt update enable
-                  disabel
-                  rotate
-                  reset
2015-11-26 13:54:35 +09:00
FUJITA Tomonori 616608e909 bmp: export flags member in BMPPeerHeader
Should be exported like other members.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-25 14:55:26 +09:00
FUJITA Tomonori b7e9da2e26 ops: replace code.google.com/p/go-uuid/uuid
Seems that code.google.com/p/go-uuid/uuid will not be maintained.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-24 06:50:25 -08:00
FUJITA Tomonori a1602f3a25 rpki: grpc support
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-23 23:00:18 -08:00
ISHIDA Wataru d62984352e packet: fix extended community parsing
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-24 15:30:03 +09:00
FUJITA Tomonori 0b7433a6fb bmp: use BMP_VERSION
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-19 16:55:38 -08:00
FUJITA Tomonori 2b15188fe1 bmp: fix ParseBMPMessage to handle failure of parsing header
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-19 16:17:23 -08:00
FUJITA Tomonori c130ea5b11 gobgp: use net.JoinHostPort
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-18 21:14:48 -08:00
FUJITA Tomonori f6897fd47f rpki: fix IPv4-mapped addresss handling
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-18 21:07:45 -08:00
FUJITA Tomonori e8bff5b366 fix IPv4-mapped addresss handling
net.IP handles IPv4-mapped addresss as ipv4 so leads to the following
crash:

gobgpd[857]: /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
gobgpd[857]: github.com/osrg/gobgp/table.CidrToRadixkey(0xc2080ffec0, 0xa, 0x0, 0x0)
gobgpd[857]: /usr/local/opt/go/src/github.com/osrg/gobgp/table/destination.go:63 +0xb2

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-18 17:36:22 -08:00
Shintaro Kojima dbd83f729f Add an example of Node.js 2015-11-15 21:51:51 +09:00
ISHIDA Wataru f78e1a91dd packet: add String() to PathAttributeAsPath and PathAttributeAs4Path
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-13 23:54:24 +09:00
Naoto Hanaue fe61508edb scenario_test: doc update 2015-11-13 14:17:51 +09:00
Naoto Hanaue 10a079cf64 scenario_test: support the run test in sequential
for the following test:
 - route_server_policy_test.py
 - route_server_policy_grpc_test.py
 - route_server_malformed_test.py
2015-11-13 14:17:40 +09:00
FUJITA Tomonori 072a0b07bd bmp: use on-wire original update data
bgpd parse on-wire original update data to construct BGPMessage object
and serialize it. Sometimes the both data is not idential. For
example, the original data sets the extended length for attribute even
if the length is less than 256.

This commit fixes the above issue.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-13 13:05:24 +09:00
FUJITA Tomonori 12ae1b784d mrt: use on-wire original update data for mrt
bgpd parse on-wire original update data to construct BGPMessage object
and serialize it. Sometimes the both data is not idential. For
example, the original data sets the extended length for attribute even
if the length is less than 256.

This commit fixes the above issue.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-13 12:42:30 +09:00
FUJITA Tomonori 515abe2880 server: fix bmp and mrt updates
Always must send updates to them.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-13 10:53:40 +09:00
FUJITA Tomonori 59f18c15ca use the same timestamp for bmp and mrt updates
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-13 10:50:26 +09:00
FUJITA Tomonori e2fdf3c368 packet: fix PathAttributeMpReachNLRI's Serialize()
Properly serializes LinkLocalNexthop.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-13 09:24:04 +09:00
FUJITA Tomonori 661246af2b mrt: support enable/disable commands
$ gobgp mrt update disable

Stop logging update messages.

$ gobgp mrt update enable <filename>

Start logging update messages to the specified file.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-12 15:01:12 +09:00
FUJITA Tomonori 95e7cc7308 mrt: support reset/rotate commands
$ gobgp mrt update reset

create a new file or reopen the existing file and continue to write
update messages to it.

$ gobgp mrt update <filename>

rename the current logging file to <filename> and truncate the logging
file and continue to write update messages to it.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-12 15:01:12 +09:00
FUJITA Tomonori 180d68f88f server: introduce watcher framework
rewrite mrt to use it.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-12 15:01:12 +09:00
ISHIDA WataruandFUJITA Tomonori d5d99dad68 table: fix how to mark a path as best in ToApiStruct()
When two peers advertise exactly same path, one will be marked as best, and
another will not. In this case, in ToApiStruct(), we mustn't mark a path
as best by Equal() method since Equal() compare path's content, not identity.

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-12 12:49:12 +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 660b38e5ae test: add BIRD for performance test target
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:47:17 +09:00
ISHIDA Wataru 34bd365bb4 test: add performance_test
currently only many-peer-connecting test (equivalent to hoofprints test T1)
is implemented.

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:46:50 +09:00
ISHIDA Wataru bedb153041 test: support rs-client configuration for quagga container
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:31:35 +09:00
ISHIDA Wataru 4ee18568a0 test: better name for bridge when TEST_PREFIX is not specified
e.g _br01 => br01

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:31:35 +09:00
ISHIDA Wataru 318b3af291 server: add MsgDst to FsmMsg
will use this later for performance test

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:31:35 +09:00
ISHIDA Wataru 403ae3580b server: expose fsmMsgType, fsmMsg
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:31:32 +09:00
ISHIDA Wataru 1581268628 move lib to parent directory
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:28:42 +09:00
ISHIDA Wataru 6dacfb38bf scenario_test: use default interface for ipv4-peering
avoid creating many linux bridges via pipework

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-11 00:28:34 +09:00
FUJITA Tomonori 84d73c1b45 server: move POLICY_DIRECTION_IN processing from peer to fsm
For parallel processing. Each peer's rx goroutine can process IN
policy.

Note that RWLock() should be called in looking at policies via grpc
too but such operaitons are done in the main goroutine so not called.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-09 14:14:16 -08:00
FUJITA Tomonori 431ce6b171 server: move ProcessMessage to fsm from peer
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-09 05:46:36 -08:00
FUJITA Tomonori efcbc131df server: move peerInfo from peer to fsm
fsm needs it with the later commit.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-09 05:32:38 -08:00
FUJITA Tomonori d621be0374 server: call ValidateUpdateMsg() in fsm instead of peer
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-09 05:07:37 -08:00
FUJITA Tomonori 344e575502 server: add rfmap to fsm too
rfmap is necessary to validate BGP messages.

Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-08 06:31:49 -08:00
ISHIDA WataruandFUJITA Tomonori 2f6db55c67 scenario_test: test local-pref and med handling
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-08 05:05:36 -08:00
ISHIDA WataruandFUJITA Tomonori d53a5d11d9 table: fix local-pref handling for external peer
remove a local-pref path attribute when peer is external and
not a confederation member.

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-08 05:05:36 -08:00
ISHIDA WataruandFUJITA Tomonori 2db916a4d3 table: use a local configured med/local-pref path-attr if exists
If a path is generated locally and it has a med/local-pref path attribute,
don't remove or alter that.

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-08 05:05:36 -08:00