summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-04 14:30:13 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-08 13:13:37 +0900
commitd8dc45772cd1a384cb15917bea43cac5d2a04f10 (patch)
tree26a4f2eec14a791546d2bf254626286b6dbe1cd2 /api/gobgp.proto
parent9298e5eeca78e8bb02ff34b500add622b73b4f5f (diff)
api: kill api.Capability
keep protobuf structures simple Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto35
1 files changed, 2 insertions, 33 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index f08d5b26..ba39250c 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -109,35 +109,6 @@ enum Operation {
DEL_ALL = 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 {
- uint32 rf = 1;
- uint32 flags = 2;
-}
-
-message GracefulRestart {
- uint32 flags = 1;
- uint32 time = 2;
- repeated GracefulRestartTuple tuples = 3;
-}
-
-message Capability {
- BGP_CAPABILITY code = 1;
- uint32 multi_protocol = 2;
- GracefulRestart graceful_restart = 3;
- uint32 asn = 4;
-}
-
message Path {
bytes nlri = 1;
repeated bytes pattrs = 2;
@@ -158,10 +129,8 @@ message PeerConf {
string remote_ip = 1;
string id = 2;
uint32 remote_as = 3;
- bool cap_refresh = 4;
- bool cap_enhanced_refresh = 5;
- repeated Capability remote_cap = 6;
- repeated Capability local_cap = 7;
+ repeated bytes remote_cap = 6;
+ repeated bytes local_cap = 7;
uint32 holdtime = 8;
uint32 keepalive_interval = 9;
}