ISHIDA Wataru and FUJITA Tomonori
b19731ffea
api/cli: api/cli support for unnumbered bgp
...
fron cli:
```
$ gobgp neighbor add interface eth1 as 65000
$ gobgp neighbor del interface eth1
$ gobgp neighbor eth1
Peer AS Up/Down State |#Advertised Received Accepted
eth1 65000 00:00:05 Establ | 0 0 0
```
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-08-02 10:48:58 +09:00
ISHIDA Wataru and FUJITA Tomonori
bb15c18402
api/cli: add LocalAddress to PeerConf struct
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-07-29 16:31:35 +09:00
ISHIDA Wataru and FUJITA Tomonori
59997e8daa
server: move default config setting logic inside BgpServer's methods
...
We have three ways to configure gobgp. config file, grpc api and native lib.
Every methods eventually call (*server.BgpServer).Start() or
(*server.BgpServer).AddNeighbor() when starting bgp server or adding
neighbors.
This commit moves default config setting logic inside them to remove
redundant code in grpc_server.go and simplify the usage of native lib.
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-07-29 16:31:35 +09:00
ISHIDA Wataru and FUJITA Tomonori
e97a59c539
config: curve out code specific to default neighbor config setting
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-07-29 16:31:35 +09:00
FUJITA Tomonori
af98780240
move grpc_server.go from server/ to api/
...
Now all gRPC code was moved to api/.
server/ isn't dependent on gRPC anymore.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-07-29 00:43:52 +09:00
Ben Agricola and FUJITA Tomonori
ed62f3f3d9
Add shorter prefix search
...
Adds a shorter-prefixes search mode that finds any identical-or-less-specific routes
than the input values.
Bug-Url: #1006
Signed-off-by: Ben Agricola [email protected]
2016-07-11 21:41:01 +09:00
FUJITA Tomonori
140008ec2a
api: catch up the latest grpc
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-06-07 04:53:35 +09:00
ISHIDA Wataru and FUJITA Tomonori
aca6fd6ad4
server: refactoring for monitorbestchanged api. use watcher infra
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-06-06 12:43:20 +09:00
ISHIDA Wataru and FUJITA Tomonori
70434c96d2
policy: add support setting self ip address as next-hop
...
from configuration file
[policy-definitions.statements.actions.bgp-actions]
set-next-hop = "self"
from cli
$ gobgp policy statement stmt1 add action next-hop self
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-05-26 23:19:04 +09: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 Wataru and FUJITA Tomonori
c7e1f88da3
cli: include route-reflector/route-server infomation in Peer message
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-05-21 07:45:12 +09:00
FUJITA Tomonori
64ff0fec11
grpc: remove MRT dump streaming GRPC API
...
Seems that nobody is interested in receiving MRT dump over streaming
GRPC API. Let's remove it.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-05-10 15:16:02 +09:00
FUJITA Tomonori
f9a9c410c3
Refactoring GRPC API
...
Let's follow the conventions of GRPC
- Stop using one method for multiple operations like add, delete,
etc. IOW, remove all the ModHoge APIs.
- Stop abusing Streaming RPC API.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-05-10 14:10:43 +09:00
FUJITA Tomonori
45050d9b97
remove collector mode support
...
We need to update yang config collector mode (split into config and
state). before that, let's remove the feature itself to see if there
is any user of it.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-04-25 23:52:21 +09:00
FUJITA Tomonori
35efcd570d
rpki: delete roa validation stream API
...
better to be implemented outside GoBGP.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-04-21 13:29:59 +09:00
tamihiro and FUJITA Tomonori
7e1b186819
config: add set-next-hop option
2016-04-21 12:27:59 +09:00
ISHIDA Wataru
642270bb32
cli: show prefix-limit configuration by gobgp neighbor <neighbor-addr>
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-19 06:23:42 +00:00
FUJITA Tomonori
291d56f8df
GRPC: catch up with the latest GRPC interface
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-04-19 09:36:42 +09:00
FUJITA Tomonori
1151436f13
rpki: support re-validation for specific prefix
...
You can specify a prefix to be validated like:
$gobgp rpki validate 10.0.0.0/24
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-04-11 23:48:24 +09:00
FUJITA Tomonori
a6efb7cf40
rpki: support dynamic add/delete operations via gRPC
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-04-02 10:52:07 +09:00
FUJITA Tomonori
731f4fa3ea
server: support mrt dump rotation like Quagga
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-03-20 00:09:44 +09:00
ISHIDA Wataru
304523e48a
server: add missing api.Global field
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-17 10:44:43 +09:00
ISHIDA Wataru and FUJITA Tomonori
a45bd1f290
api: add neighbor-ip field to grpc Path message
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-02 03:22:28 -08:00
Naoto Hanaue and FUJITA Tomonori
a53d194505
ops: fix and integration the attribute name that indicates the route received from an external resource
2016-02-27 03:47:00 -08:00
FUJITA Tomonori
08df3e5fb1
rpki: remove homegrown SplitHostPort function
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-02-21 06:04:37 -08:00
Naoto Hanaue and FUJITA Tomonori
496ce6cd08
update proto
2016-02-19 21:14:59 -08:00
ISHIDA Wataru
ecbfa29d08
server/api: add DEL_ALL operation support in ModPath() api
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-02-13 08:37:10 +09:00
ISHIDA Wataru and FUJITA Tomonori
023a498e4a
server: support graceful-restart helper-speaker behavior
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-02-10 23:41:44 -08:00
ISHIDA Wataru
64fdc90646
server: add API to monitor incoming updates
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-02-07 07:19:15 +09:00
ISHIDA Wataru
498400adad
api: fix typo s/advertized/advertised
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-01-29 16:44:21 +09:00
FUJITA Tomonori
8285553257
rpki: make monitor API's reason explicit about manual validate
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-01-25 05:26:45 -08:00
FUJITA Tomonori
0986a67e07
rpki: improve statistics API
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-01-20 07:09:11 -08:00
FUJITA Tomonori
70fae5c8cc
rpki: add reason to rpki monitor api
...
tells a reason why notificaiton was sent, withdraw, peer down, and others
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-01-17 09:26:56 -08:00
FUJITA Tomonori
f4c4099418
update rpki monitor API
...
- handle withdraw
- added some new info (peer address, timestamp, aspath attribute)
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-01-17 06:21:23 -08:00
ISHIDA Wataru
d94bb930dc
api: support bmp configuration
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-01-09 22:52:15 +09:00
FUJITA Tomonori
302632715c
rpki: add monitor command support
...
monitor the change of rpki validation results:
$ gobgp monitor rpki
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-01-06 12:40:17 +09:00
FUJITA Tomonori
7a2b395116
add MOD_PATH API
...
Handle only one route unlike MOD_PATHS API. When the API returns an
uuid when a route is created. The uuid can be used to remove the route
later.
Signed-off-by: FUJITA Tomonori <[email protected] >
2015-12-26 19:24:46 -08:00
FUJITA Tomonori
01157e466a
rename ModPath to ModPaths
...
ModPath API to modify multiple paths so let's use more an appropriate name.
Signed-off-by: FUJITA Tomonori <[email protected] >
2015-12-25 20:58:18 -08:00
ISHIDA Wataru
406efffa74
*: add global listen port configuration
...
if port < 0, gobgpd won't listen on tcp:179
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-12-21 19:28:25 +09:00
FUJITA Tomonori
bbc640470e
rpki: support multiple roa servers
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2015-12-17 15:31:48 -08:00
ISHIDA Wataru
d6148c75a3
api: refactor afisafi api
...
remove unused fields
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-12-15 18:26:32 +09:00
FUJITA Tomonori
71588f6a1a
rpki: show ROA with server information
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2015-12-10 11:51:47 +09:00
ISHIDA Wataru
ec6bcf13f1
api/cli: show all longer prefixes with longer-prefixes option
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-12-06 10:38:16 +09:00
ISHIDA Wataru
7ff862f3ee
api/cli: support showing longer-prefix
...
$ gobgp global rib
Network Next Hop AS_PATH Age Attrs
*> 10.0.0.0/24 0.0.0.0 00:00:01 [{Origin: ?}]
$ gobgp global rib 10.0.0.0/20
Network not in table
$ gobgp global rib 10.0.0.0/20 longer-prefix
Network Next Hop AS_PATH Age Attrs
*> 10.0.0.0/24 0.0.0.0 00:00:01 [{Origin: ?}]
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-12-04 11:01:07 +09:00
ISHIDA Wataru and FUJITA Tomonori
ff26d4e93b
api/server: refine GetRib API
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-12-02 08:53:04 +09:00
ISHIDA Wataru and FUJITA 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
FUJITA Tomonori
a1602f3a25
rpki: grpc support
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2015-11-23 23:00:18 -08: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
YujiOshima
1cc19fd280
cmd/api: get peer remote router id not neighbor address
...
Signed-off-by: YujiOshima <[email protected] >
2015-11-06 10:05:52 +09:00
ISHIDA Wataru and FUJITA Tomonori
e3185194bb
server: enable to start without configuration file
...
add grpc api to configure global as/router-id
$ gobgp global as 65000 router-id 10.0.0.1
Signed-off-by: ISHIDA Wataru <[email protected] >
2015-10-30 15:05:09 +09:00