summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-06-21 09:04:18 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-06-21 10:40:34 +0900
commite2752ae0bb8318920a54771c086d66cbddbd149a (patch)
treea2578bd2f47d0e35922ee8a65b37952a9624031f /api/gobgp.proto
parent493d024701e3034824f9f62010c2beeabe1f2253 (diff)
api: Use capability.proto in message PeerConf
The current formats of the remote/local capabilities in message PeerConf are the binary type representation, this patch fixes to use the structures defined in capability.proto file. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto10
1 files changed, 6 insertions, 4 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index ff19ee70..5f25e59f 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -631,7 +631,7 @@ message Path {
bool is_nexthop_invalid = 17;
uint32 identifier = 18;
uint32 local_identifier = 19;
- // One of the following defined in "api/bgp/attribute.proto":
+ // One of the following defined in "api/attribute.proto":
// - IPAddressPrefix
// - LabeledIPAddressPrefix
// - EncapsulationNLRI
@@ -647,7 +647,7 @@ message Path {
// - OpaqueNLRI
google.protobuf.Any any_nlri = 20;
// Each attribute must be one of *Attribute defined in
- // "api/bgp/attribute.proto".
+ // "api/attribute.proto".
repeated google.protobuf.Any any_pattrs = 21;
}
@@ -772,8 +772,10 @@ message PeerConf {
RemovePrivateAs remove_private_as = 8;
bool route_flap_damping = 9;
uint32 send_community = 10;
- repeated bytes remote_cap = 11;
- repeated bytes local_cap = 12;
+ // Each attribute must be one of *Capability defined in
+ // "api/capability.proto".
+ repeated google.protobuf.Any remote_cap = 11;
+ repeated google.protobuf.Any local_cap = 12;
string id = 13;
// Note: Regarding to the consistency with OpenConfig model, list of
// PrefixLimit should be removed from here, and list of PrefixLimit in