summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-10-28move NewAPIRoutingPolicyFromConfigStruct() from server/FUJITA Tomonori
The config is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for config/. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28move NewAPIPolicyAssignmentFromTableStruct() from server/FUJITA Tomonori
The table is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for table/. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28move exported functions to generate api structs from config struct in server/FUJITA Tomonori
NewPeerFromConfigStruct() NewPeerGroupFromConfigStruct() NewGlobalFromConfigStruct() The config is an internal package so they should not be exported. We will remove the usage of the config in server/. This is a part of the goal. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-23fix: nil pointer in PrefixSet AppendImcom Jin
2018-10-23server: deal with mac mobility seqence number in path from apiwanghonghao
2018-10-23table: compare etag and peer ip in mac mobilitywanghonghao
2018-10-21Supporting Zebra API version 6 which is used in FRRouting version 6Hitoshi Irino
2018-09-29api: add GwAddress to EVPNIPPrefixRouteoc
2018-09-19cli: fix nil pointer in showNeighborwanghonghao
2018-09-18fsm: get rid of dead lockwanghonghao
2018-09-12pyang_plugins: Fix an import pathIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2018-09-12pyang_plugins: Improve pylint and pycodestyle resultsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
2018-09-12cli: Support Color Extended CommunityMikael Magnusson
This patch enables support for Color Extended Community in the CLI. Usage Example: $ gobgp global rib add -a ipv4 10.0.0.0/24 color 10 $ gobgp global rib -a ipv4 Network Next Hop AS_PATH Age Attrs *> 10.0.0.0/24 0.0.0.0 00:00:00 [{Origin: ?} {Extcomms: [10]}] Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2018-09-04tools: update pyang_plugins/README.rstFUJITA Tomonori
Python 2 is necessary. fixes #1801 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-31test: fix get_reachability()FUJITA Tomonori
the output of ping command changed? Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-31support go1.11FUJITA Tomonori
and drop go1.9. Also disable windows build on travis-ci and enable openbsd instead. We can support windows but I'm too lazy. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-31fix closing listening socket blockedFUJITA Tomonori
with go v1.11, closing a listening socket is blocked and unittests fail due to timeout. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-28api: remove unused membersFUJITA Tomonori
fixes #1816 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-28api: change FamilyFUJITA Tomonori
fixes #1812 Avoid the cast and use strightforward data strcuture; two variables for afi and safi instead of squashing two into one variable. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-28test/lib: Enable static IP addressNasato Goto
This patch enable us to give test containers a static IP address by passing 'ip_addr' argument to addif method. In addition, 'v6=True' argument is needed when we specify static IPv6 address. Usage: br01 = Bridge(name='br01', subnet='192.168.0.0/24', self_ip=False) g1 = GoBGPContainer(name='g1', asn=64512 router_id='10.0.0.1') br01.addif(g1, ip_addr='192.168.0.11')
2018-08-28test: Fix bridge methos and relative scenario testNasato Goto
This patch fix the logic of addif methos of Bridge class. IP address information will be registerd according to the IP version of bridge. This change lead the fixing of one of scenario test, "bgp_zebra_test.py".
2018-08-27Release read lock before calling llgrFamiliesCarl Baldwin
llgrFamilies gets a read lock itself but the caller already has one. Deadlock occurs when another goroutine is blocked on a write lock. Addresses #1818
2018-08-23policy cleanupFUJITA Tomonori
- remove ReplaceDefinedSet and ReplaceStatement APIs; not intutive and should create a new one instead of modifying the existing. - Rename ReplacePolicyAssignment to SetPolicyAssignment API; we use internally SetPolicy() name from the beginning. - Rename UpdatePolicy() to SetPolicies() API; It doesn't update anything so the name is confusing. It discards the all policies and create policies from the argument. - Changes some member names in structures for policy. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-21test/lib: Fix pkill command syntax for BusyBoxNasato Goto
Fix syntax of pkill in order to make use of it for BusyBox Linux based container available. This change is compatible with use of pkill for usual Linux.
2018-08-21test/lib: Change shell for init scriptNasato Goto
Change shell of start.sh from /bin/bash to /bin/sh in order to make BusyBox Linux based container available for scenario test.
2018-08-18pkg/server: ListPolicyAssignment() returns all assignments by defaultFUJITA Tomonori
Like other ListPolicy*() functions, if no conditions are specified, all assignments are returned. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-18Add CODEOWNERS fileFUJITA Tomonori
Assigned zapi code to @irino Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-18ZAPI5 (FRRouting version 5) supportHitoshi Irino
2018-08-17table: remove DIRECTION_IN completelyFUJITA Tomonori
so overdue. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-17pkg/packet/bgp: Fix NewEVPNMacIPAdvertisementRoute() to use correct MAC lengthYichen Wang
2018-08-17ignore duplicate RTC Membership announcementsMarcin Ptaszynski
2018-08-16pkg/server: handleUpdate() should not inject echo route from RRYichen Wang
2018-08-16pkt/server: ListPolicy() and ListStatement() support filtering like ↵FUJITA Tomonori
ListDefinedSet() and ListPolicyAassignment() Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-16gobgp: fix peer state printFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-10fix library usage exampleFUJITA Tomonori
also enable the CI for it again. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-10pkg/server: public APIs use structures in api/FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-08rpc cleanupFUJITA Tomonori
- clean up RPC function names - rewrite gobgp command to use the api instead of config package - delete unused client package Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-24pkg/packet/bgp: fix ParsePmsiTunnel() and NewPathAttributePmsiTunnel() crashFUJITA Tomonori
Once we create an object, we should not mutate it. This fixes the following in a different way. https://github.com/osrg/gobgp/pull/1778 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-24fix path to lib directorytamihiro
2018-07-24pkg/server: send all families (including RTC) after deferral time expiredFUJITA Tomonori
fixes #1788 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-24fix unittest warnings with go tipFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-19fix races and enable race detector in unittestjhserrano
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-16use function Equal() instead of build-in comparewanghonghao
2018-07-15fix goreleaser to build static binariesFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-15pkg/server: enable active connection with graceful restartFUJITA Tomonori
No reason why active connection with graceful restart is disabled. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-15fsm: Connect to bgp peers regardless of whether the peers are restartingwanghonghao
2018-07-14cmd/gobgp: use different grpc port for rpki_testFUJITA Tomonori
Sometimes fails due to listen port conflict with tests in internal/pkg/client. Using unix domain socket migth be a proper fix. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-14cmd: fix error when delete policy statementchenhaiq@yunify.com
Signed-off-by: Chen Haiquan <oc@yunify.com>
2018-07-14cmd: implement ebgp-multihop-ttl option when add neighborchenhaiq@yunify.com
Signed-off-by: Chen Haiquan <oc@yunify.com>
2018-07-14fix missing EbgpMultihop configtamihiro