220 Commits
Author SHA1 Message Date
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 Ishida 900a1321ff test: fix bug of bgp_router_test.py
Since g3's route (MED 10) is weaker than g2's,
g3's route should not be advertised to g2 from g1.
But when g3's route arrives on g1 before g2's, g1 advertises g3's route.
This commit ensures g3's route come after g2's route

Signed-off-by: Wataru Ishida <[email protected]>
2016-10-09 06:32:42 +00:00
Wataru Ishida ebd7306fd6 test: add test for vrf route injecting
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-04 05:46:26 +00:00
Wataru Ishida c2ad9462d6 server: fix bug of withdrawal handling
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-04 04:08:35 +00:00
Wataru IshidaandFUJITA Tomonori 251c32ae0f test: add scenario test for zapi v3
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-03 17:04:53 -07:00
IWASE YusukeandFUJITA Tomonori a021647b0a test: Adopt to the updated Ryu BGP Packet lib API
From Ryu v4.6, the Packet library can parse the entire BGP packet
via packet.Packet() API.
This patch fixes to adopt bgp_router_test.py to the updated API,
and reverts the Ryu version in pip-requires.txt to the latest.

Signed-off-by: IWASE Yusuke <[email protected]>
2016-10-03 16:31:51 -07:00
Wataru IshidaandFUJITA Tomonori 22f888766a travis: divide scenario tests to multiple travis jobs
Signed-off-by: Wataru Ishida <[email protected]>
2016-09-14 11:32:45 +09:00
Wataru IshidaandFUJITA Tomonori 83b6f07be7 test: test monitor feature in unit test instead of scenario test
Signed-off-by: Wataru Ishida <[email protected]>
2016-09-12 23:08:18 -07:00
Wataru IshidaandFUJITA Tomonori 585acb5888 test: run policy test sequencially
for stable test on travis-ci

Signed-off-by: Wataru Ishida <[email protected]>
2016-09-12 23:08:14 -07:00
FUJITA Tomonori e8da11a5c4 test: use Docker's native network feature instead of pipework
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-12 23:07:44 -07:00
FUJITA Tomonori 990ddcf304 test: avoid hard-code interface names in bgp_zebra_test.py
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-12 23:05:06 -07:00
FUJITA Tomonori c2d0ee36c3 test: use shorter device names
Don't be over 16 bytes.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-12 23:05:02 -07:00
FUJITA Tomonori bad9935cd2 test: stop tcpdump write buffering
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-01 21:41:21 +09:00
FUJITA Tomonori 3cc9b5b5d3 test: use ryu version 4.5
Seems that 4.6's bgp parser has a bug.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-01 21:40:58 +09:00
Wataru IshidaandFUJITA Tomonori 3235c0618c api/cli: kill cmd package custom path/destination structs
reuse table package

Signed-off-by: Wataru Ishida <[email protected]>
2016-08-25 15:53:14 +09:00
Wataru IshidaandFUJITA Tomonori b3c874da25 server/api: fix GetRib API to return sorted destination
the feature has been broken.

Signed-off-by: Wataru Ishida <[email protected]>
2016-08-25 15:53:14 +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
ISHIDA WataruandFUJITA Tomonori d207ba5f69 test: skip BGPKeepAlive
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-15 18:53:03 +09:00
ISHIDA WataruandFUJITA Tomonori 53577ad056 Revert "test: disable monitoring tests for now"
This reverts commit d4b8a85829.

workaround commit: 10d13783c6
2016-08-15 18:53:03 +09:00
ISHIDA WataruandFUJITA Tomonori 061d894c14 test: execute gobgp monitor on docker host
docker-py's exec_start stream fails often.
execute gobgp monitor on docker host instead.

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-15 18:53:03 +09:00
FUJITA Tomonori d4b8a85829 test: disable monitoring tests for now
docker-py's exec_start stream fails often somehow.
2016-08-12 11:47:21 +09:00
FUJITA Tomonori d0a23b253c test: wait for condition instead of randomly waiting in zebra testings
Signed-off-by: FUJITA Tomonori <[email protected]>
2016-08-11 04:15:10 +09:00
ISHIDA WataruandFUJITA Tomonori b5e49f1319 server: fix advertising multiple local withdrawals with same prefix
a bug introduced by 3327661896

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-03 12:09:07 +09:00
ISHIDA WataruandFUJITA Tomonori 87bd4c1648 test: deconfigure deleted peer for later tests
Depending on Docker version, Docker re-allocates deleted container's IP address
to new container.

If both deleted and new container run a BGP daemon and are peering to
other containers, other containers who think they are connecting to
deleted container's BGP daemon wrongly connect to new container's BGP
daemon (because IP address is same)

To avoid this issue, let's deconfigure deleted peer before going to next
test.

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-08-03 12:09:07 +09:00
FUJITA Tomonori e8a596e4cd test: fix travis-build-script.sh to honor unit test results
Fix the bug introduced by the following commit:

commit 835d1f38e7
Author: ISHIDA Wataru <[email protected]>
Date:   Tue May 31 06:53:40 2016 +0000

    test: test go example embeded in document

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-06-15 12:40:08 +09:00
ISHIDA WataruandFUJITA Tomonori c54f6e8289 server: support injecting multipath to zebra
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-06 12:43:20 +09:00
FUJITA Tomonori b13c09baa6 table: fix leftmostAS() in compareByMED
Needs the first AS in the AS_SEQUENCE is the same for multiple
paths. Any preceding AS_CONFED_SEQUENCE is ignored.

Also rename the function name to 'firstAS'.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-06-03 11:20:50 +09:00
ISHIDA WataruandFUJITA Tomonori 3d567b9fd8 test: add a test to check soft-reset-in behavior
test ec4e7a755f

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-02 17:44:16 +09:00
ISHIDA Wataru 3c377d437d server: fix another regression of active connection
Another regression introduced by 4c9cd88c61

Previous fix (81bc3851b2) fixes active
connection of neighbors configured via configuration file.
This fixes that of neighbors configured via gRPC API.

Test is also added.

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-02 15:48:31 +00:00
ISHIDA Wataru 81bc3851b2 server: fix active connection regression
regression introduced by 4c9cd88c61

also fix test/lib to test configuration without local-address
(configure local-address only if neighbor-address is IPv6)

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-01 17:37:58 +00:00
ISHIDA Wataru addc3902e8 server: support peering with ipv6 link local address
fix DialTCPTimeoutWithMD5Sig to handle ipv6 scope-id
also update ipv6 test to test this feature

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-01 05:06:37 +00:00
ISHIDA WataruandFUJITA Tomonori 835d1f38e7 test: test go example embeded in document
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-01 10:36:03 +09:00
ISHIDA Wataru 63befebdf8 test: check (*Path).Equal() is working correctly
test ebb2c9727a

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-31 04:39:53 +00:00
ISHIDA Wataru 0dbf1d87cb policy: add local-pref action
$ gobgp policy statement st01 add action local-pref 110

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-25 02:53:42 +00:00
ISHIDA WataruandFUJITA Tomonori a7521827e1 server/table: fix intra-AS RTC route distribution
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-23 09:46:53 +09: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
ISHIDA WataruandFUJITA Tomonori f580bd8fdb test: enhance route server test
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-14 01:48:33 +09:00
ISHIDA Wataru c97a2ee34f test/bird: add RawBirdContainer for test with raw bird config
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-12 03:05:05 +00:00
ISHIDA Wataru cbb4a6ace6 test/gobgp: add RawGoBGPContainer for test with raw gobgp config
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-12 02:54:53 +00:00
ISHIDA WataruandFUJITA Tomonori c9f7596584 test/exabgp: add RawExaBGPContainer for test with raw exabgp config
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-11 18:49:03 +09:00
ISHIDA WataruandFUJITA Tomonori b780f5e590 test/quagga: add RawQuaggaBGPContainer for test with raw quagga config
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-11 18:49:03 +09:00
ISHIDA WataruandFUJITA Tomonori c2d4b6992c test: add start_tcpdump()
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-11 18:49:03 +09:00
FUJITA Tomonori 95e5dee506 Revert "travis-ci: workaround for "
Now the issue was fixed. No need for the workaround:

https://github.com/kr/text/issues/6

This reverts commit 9c8dca5b69.
2016-05-09 14:12:25 +09:00
FUJITA Tomonori 9c8dca5b69 travis-ci: workaround for
go get doesn't work for github.com/kr/text because it doesn't have
master branch somehow.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-05-05 23:29:42 +09: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
ISHIDA WataruandFUJITA Tomonori fb6e000457 test: enable pass multiple commands to vtysh()
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-26 07:10:38 +09:00
ISHIDA Wataru 23252d9ad8 test: add BGPContainer.define_policy() and BGPContainer.assign_policy()
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-24 10:43:37 +00:00
ISHIDA Wataru 1b6532d822 test/quagga: use vtysh instead of telnet
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-24 09:11:19 +00:00
ISHIDA Wataru 206aa6bec4 test/gobgp: enhance policy configuration
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-24 09:11:18 +00:00
ISHIDA Wataru a34d8d2651 config: simplify config structures
stop generating self-contained leafref fields in openconfig model.
(e.g. bgp:neighbor/bgp:neighbor-address )

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-21 08:57:21 +00:00