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
f3ae68b9f2
config: curve out code specific to default global config setting
...
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
FUJITA Tomonori
5aea2d93fd
doc: update lib.md with the new native APIs
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-07-27 10:28:01 +09:00
FUJITA Tomonori
4635014cbb
remove gRPC dependency from table/
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-07-20 06:50:15 +09:00
FUJITA Tomonori
d59f1b147e
remove REQ_GRPC_ADD_NEIGHBOR
...
replace REQ_GRPC_ADD_NEIGHBOR with REQ_ADD_NEIGHBOR
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-07-20 04:24:47 +09:00
Jun-ya Kato and FUJITA Tomonori
49e45d4e0c
fix typo: s/dispodition/disposition/ in policy document
2016-07-20 16:12:07 +09:00
Shintaro Kojima
ff58dba190
Fix and get along with gobgpd v1.9
2016-07-20 05:58:16 +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
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
ed23fbe22b
docs: another update for lib.md
...
fix 9f6b62a5e5
[skip ci]
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-06-01 10:36:03 +09:00
ISHIDA Wataru
9f6b62a5e5
docs: update lib.md
...
[skip ci]
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-05-31 03:59:23 +00:00
FUJITA Tomonori
8d7129d399
docs: fix typos in cli examples
...
[ci skip]
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-05-29 09:33:32 +09:00
FUJITA Tomonori
c1b95aa961
docs: update go versions
...
[ci skip]
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-05-26 16:45:12 +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
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 Wataru
949c58fbf6
docs: update policy.md
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-05-16 08:44:28 +00:00
Peng Xiao and FUJITA Tomonori
b8f61bd749
docs: add yabgp testing to evpn
...
Signed-off-by: Peng Xiao <[email protected] >
2016-05-16 13:35:18 +09:00
Yi Tseng
03c5cb31af
Add remote-port to configuration example
2016-05-15 17:20:13 +08:00
FUJITA Tomonori
69df401cdd
docs: mrt update
...
- remove MRT dump streaming GRPC API
- add the examples of MRT BGP4MP dump feature
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-05-10 16:03:15 +09:00
ISHIDA Wataru
425e947b4c
docs: update lib.md
...
[ci skip]
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-27 17:10:57 +00:00
ISHIDA Wataru
f99362e876
config: make listen config struct aligned with open-config model
...
have config/state container
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-27 10:32:39 +00: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
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
ISHIDA Wataru and FUJITA Tomonori
ae671a791a
policy: fix as-path match optimization
...
following as-path pattern will be optimized
- ^<asn>_ # left-most
- _<asn>$ # origin
- _<asn>_ # include
- ^<asn>$ # only
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-21 14:37:47 +09:00
tamihiro and FUJITA Tomonori
7e1b186819
config: add set-next-hop option
2016-04-21 12:27:59 +09:00
tamihiro
ad389540f8
more fixes on erring statements
2016-04-15 00:41:55 +09:00
tamihiro
f55ea115fc
correct policy statement
2016-04-13 12:09:34 +09:00
ISHIDA Wataru
59420a4c46
server: support prefix-limit
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-10 23:58:17 +00:00
ISHIDA Wataru and FUJITA Tomonori
310be31d88
docs: update policy document
2016-04-09 16:55:56 +09:00
ISHIDA Wataru
0bd939e926
docs/packet: s/draft-ietf-idr-flowspec-redirect-rt-bis-05/RFC7674
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-04-01 14:46:55 +09:00
FUJITA Tomonori
311324fab8
move packet/*.go to packet/bgp/*.go for Go's convention
...
Later, we move non-bgp protocol stuff like mrt under their own
direcotries.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-03-31 13:19:17 +09:00
ISHIDA Wataru and FUJITA Tomonori
051621bf3a
*: support draft-ietf-idr-flowspec-l2vpn-03
...
$ gobgp g ri add -a l2vpn-flowspec match destination-mac 01:01:01:01:01:01 ether-type ipv4 vid 10 cos 20
$ gobgp g ri add -a l2vpn-flowspec match source-mac 01:01:01:01:01:01 ether-type arp inner-vid 20 inner-cos 20
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-31 11:38:17 +09:00
kasivia
506d03c92f
added wget for gobgp static and dynamic bash
2016-03-23 15:09:38 -07:00
FUJITA Tomonori
d2a7476241
server: change mrt config format
...
to be consistent with others.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-03-20 01:05:44 +09:00
ISHIDA Wataru and FUJITA Tomonori
2a0168f867
*: support Opaque Signaling
...
see https://tools.ietf.org/html/draft-lapukhov-bgp-opaque-signaling-01
using 16397 for AFI, 241 for SAFI, 41 for Opaque Path Attribute
temporarily.
$ gobgp global rib add -a opaque key hello value world
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-20 01:00:51 +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
FUJITA Tomonori
66ac5a1051
packet: support flowspec "not-a-fragment" fragment type
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-03-19 22:12:14 +09:00
ISHIDA Wataru
a5cc2b1397
cli: enhance global command
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-17 10:47:11 +09:00
ISHIDA Wataru
5120cfc7ca
config: move Mrt/Bmp configuration outside of Global configuration
...
Global config basically store configuration whose change will cause
all neighbor session restart.
Mrt and Bmp configuration is not such. Put them outside of Global
config.
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-17 10:47:03 +09:00
ISHIDA Wataru
79a8275508
docs: update
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-03-11 03:28:59 +09:00
ISHIDA Wataru and FUJITA Tomonori
1f6e2d490b
docs: update
2016-02-29 16:45:09 -08:00
ISHIDA Wataru and FUJITA Tomonori
5da1c48a5c
docs: update
...
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-02-29 15:59:42 -08:00
ISHIDA Wataru and FUJITA Tomonori
0b78f57ccd
config/server: support per-peer asn
...
you can override `global.config.as` by `neighbor.config.local-as`
Signed-off-by: ISHIDA Wataru <[email protected] >
2016-02-29 15:59:42 -08:00
FUJITA Tomonori
94639ab621
doc: fix bmp config example
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-02-29 15:36:14 +09:00
FUJITA Tomonori
aaa6004f5d
docs: lib.md: update gRPC API usage
...
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-02-27 04:12:49 -08:00
FUJITA Tomonori
e97594e021
packet: fix strange flow spec fragment keywords
...
"not-a-fragment" and "is-a-fragment" are renamed to "dont-fragment"
and "is-fragment" respectively.
Signed-off-by: FUJITA Tomonori <[email protected] >
2016-02-25 18:28:21 +09:00
Naoto Hanaue and FUJITA Tomonori
efff7f552f
ops: add doc
2016-02-19 21:14:59 -08:00
Vincent Bernat and FUJITA Tomonori
415e6257e8
doc: fix formatting in policy configuration documentation
...
Due to a bad indentation, tables and titles weren't rendered properly on
GitHub.
Signed-off-by: Vincent Bernat <[email protected] >
2016-02-10 02:35:19 +09:00