diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-29 17:49:51 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-05-10 04:26:48 +0000 |
commit | 23d1d4322199bbaae52c52aa0db8db9b000944fe (patch) | |
tree | 64ad12096d8bfcdd2bce990f02e1f42f542f11bc /api/gobgp.proto | |
parent | 7cbb6bbd32ad37ceae89c23bc79ff9cf5fe6a01d (diff) |
api/gobgp: show multiprotocol capabilities in detail
/home/vagrant% gobgp -u 192.168.10.4 neighbor 192.168.10.2
BGP neighbor is 192.168.10.2, remote AS 65001
BGP version 4, remote router ID 192.168.10.2
BGP state = BGP_FSM_ESTABLISHED, up for 00:12:57
BGP OutQ = 0, Flops = 0
Neighbor capabilities:
MULTIPROTOCOL(IP,UNICAST): advertised
MULTIPROTOCOL(L2VPN,EVPN): advertised
MULTIPROTOCOL(IP,ENCAP): advertised
MULTIPROTOCOL(IP,ROUTE_TARGET_CONSTRTAINS): received
ROUTE_REFRESH: advertised
FOUR_OCTET_AS_NUMBER: advertised and received
Message statistics:
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 0 0
Keepalives: 26 26
Route Refesh: 0 0
Discarded: 0 0
Total: 27 27
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index 239c933d..a3f4228d 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -86,6 +86,35 @@ message AddressFamily { SAFI Safi = 2; } +enum BGP_CAPABILITY { + UNKNOWN_CAP = 0; + MULTIPROTOCOL = 1; + ROUTE_REFRESH = 2; + CARRYING_LABEL_INFO = 4; + GRACEFUL_RESTART = 64; + FOUR_OCTET_AS_NUMBER = 65; + ENHANCED_ROUTE_REFRESH = 70; + ROUTE_REFRESH_CISCO = 128; +} + +message GracefulRestartTuple { + AddressFamily af = 1; + uint32 flags = 2; +} + +message GracefulRestart { + uint32 flags = 1; + uint32 time = 2; + repeated GracefulRestartTuple tuples = 3; +} + +message Capability { + BGP_CAPABILITY code = 1; + AddressFamily multi_protocol = 2; + GracefulRestart graceful_restart = 3; + uint32 asn = 4; +} + enum Origin { IGP = 0; EGP = 1; @@ -250,8 +279,8 @@ message PeerConf { uint32 remote_as = 3; bool cap_refresh = 4; bool cap_enhanced_refresh = 5; - repeated int32 remote_cap = 6; - repeated int32 local_cap = 7; + repeated Capability remote_cap = 6; + repeated Capability local_cap = 7; uint32 holdtime = 8; uint32 keepalive_interval = 9; } |