summaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
2019-08-28config -> internal_configCarl Baldwin
2019-08-28Factor out stopServerCarl Baldwin
2019-08-28Move code to new public config packageCarl Baldwin
2019-08-28Improve logic around applying configurationCarl Baldwin
The initial configuration is only applied once right at the very beginning. Everything after that is an update. This makes that clearer.
2019-08-28Extract methods to apply and update configCarl Baldwin
2019-08-28Create a clearer line between initial config and updating configCarl Baldwin
2019-08-28Factor out helpers for peer group and neighbor configCarl Baldwin
2019-08-28Move assignement of current config to the endCarl Baldwin
Now that `c` is no longer referenced in the block above, its assignement can be moved to later. This allows consolidating the two assignements into one and moving them to the very end to magic the logic clearer.
2019-08-28Use newConfig more consistently when apply initial configurationCarl Baldwin
This block of code has for loops that shadow the variable `c` declared above it. This commit makes the scoping a little clearer by using newConfig where possible to avoid the ambiguity.
2019-08-06Added CLI option to parser to allow setting MPLSoUDP (mpls-in-udp) as an ↵Peter Hill
encap type.
2019-07-21Avoid panic by receiving vpnv6 prefixes with zebra reported in issue #2113Hitoshi Irino
- Additionally bug fix which avoid panic caused by displaying vpnv6 prefixes using gobgp vrf rib - Supporting FRRouting 7.1.x
2019-06-03Add Versioning supportEmil Palm
2019-05-16Fix cli crash when showing neighbor stats as list.Christoph Heiss
If the gRPC-server has TLS enabled, but the cli is used without TLS, it crashes when listing neighbors with a segfault due to an unhandled error.
2019-05-08zebra: supporting FRRouting version 7Hitoshi Irino
- the "version" parameter (which means ZAPI) 6 in zebra config changes supporting FRRouting version 7 instead of FRRouting version 6. - the "software-name" parameter which supports backward compatibility is added in zebra config. (GoBGP support FRRouting version 6 when "version = 6" and "software-name = frr6" is configured.)
2019-05-02Consolidate duplicate code blocks both updating peer groupsCarl Baldwin
There were only two differences: 1) the first block updates `updatePolicy` and 2) the log statements are a little bit different (`pg.State` vs `pg.Config` and `%v` vs `%s`). To be consistent with the other blocks above it, changed to use `pg.Config` rather than `pg.State`.
2019-04-11cmd/gobgp: Parse evpn IPMSI parameterJieJhih Jhang
2019-03-29server: fix ListPath handle UseMultiPath optionFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-03-26Use Itoa method instead sprintfJieJhih Jhang
2019-03-25support BMP sysName and sysDescr configurationJieJhih Jhang
2019-03-24cmd/gobgp: fix RPKI result in neighbor policy commandNasato Goto
2019-03-14cmd/gobgp: use sd_notify protocol to notify the status change to systemdRobin Douine
2019-03-14Supporting BGP/MPLS L3VPNs with Frrouting Zebra API 6Hitoshi Irino
- This commit aims to solve reported problem on issues #1611, #1648 and #1912 - Partial changes of this commit duplicate with changes on PR #1587 (not merged) and PR #1766 (not merged and already closed) - This commit is tested with only FRRouting version 6.0.2 (which uses Zebra API 6) - This commit fixes lack of LABEL_MANAGER_CONNECT_ASYNC for ZAPI6. (This bug is introduced on commit 2bdb76f2dcf24b891f2b6327a57c31b26463b2dd "Supporting Zebra API version 6 which is used in FRRouting version 6")
2019-02-18cmd/gobgp: fix non existing neighbor crashFUJITA Tomonori
Fixes some crash bugs when non existing neighbor is specified. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-02-16cmd/gobgp: fix policy printingFUJITA Tomonori
make policy printing same with v1.x Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2019-02-12[Fix #1967] Fix print statementThomas Rosenstein
2019-02-08cmd/gobgp: make listing of prefix set identical to version 1.XFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-02-08Fix listing of prefix set in gobgp cliThomas Rosenstein
2019-01-27cmd/gobgp: remove in policy debrisFUJITA Tomonori
$ gobgp n 10.0.255.1 p invalid policy type: choose from (in|import|export) The in policy was removed long ago. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-01-27cmd/gobgp: fix showingglobal policyFUJITA Tomonori
Needs to specify the global rib name for ListPolicyAssignment API. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-01-27gobgpd: fix the initial global policy configuration from config fileFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-01-26gobgp: fix vrf rib command crashFUJITA Tomonori
showNeighborRib() executes net.ParseCIDR() for vrf prefix like 10.100:100:10.0.0.0/24 and then crashes. Probably ListRib() API should support an option to return sorted destinations. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2019-01-26Add experimental BGP-LS featureArtur Makutunowicz
2019-01-09silence staticcheck warningsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2018-12-28fix bmp statisticsFUJITA Tomonori
fix the regression of the adj counter due to 301b48532d4a5510c9d4ffdc44eb2754fdd1a3d1 Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2018-12-24api: rename ValidationDetail to ValidationFUJITA Tomonori
Let's simply use 'validation' because there is no other validation structure. We could add validation results from other than rpki so drop rpki name. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2018-12-23make the usage of type name in protobuf consistentFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2018-11-26support received, accepted, and advertised counters per familyFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-25api: move RouterId to PeerState from PeerConfFUJITA Tomonori
It's not configuration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-24typo fixSergey Elantsev
2018-11-23api: move remote_cap and local_cap to PeerState from PeerConfFUJITA Tomonori
Both should be in PeerState like OpenConfig. Also remove unused supported_capabilities. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16api: rename NlriAny in api.Path to NlriFUJITA Tomonori
Also rename PathAttrsAny to PathAttrs. Both are the first choice rather than the binary format members. Support SortType member to ListPathRequest to add an option to return unordered paths. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16use google/protobuf/timestamp.protoFUJITA Tomonori
use google/protobuf/timestamp.proto instead of our own way to represent time. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-14Add quotes to short option valueCarl Baldwin
This broke vet for me. Not sure why it didn't break in CI.
2018-11-14Fix Statistics Report in BMPEiichiro Watanabe
2018-11-12cmd/gobgp: don't use timeout context for requestsFUJITA Tomonori
timeout context is for only connecting. We should refactor the code to avoid global context variant. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-12Fix intervals for MRTEiichiro Watanabe
2018-11-09make gRPC server privateFUJITA Tomonori
No need to be exported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-09added timestampYoichi Hariguchi
2018-11-07gobgp: merge cmd package into mainFUJITA Tomonori
Make everything private. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07gobgp: unexport cmd/FUJITA Tomonori
Only stuff in pkg/ should be exported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>