summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-06-19 10:25:50 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-06-19 12:01:48 +0900
commitb992c538652580cb4150524328dc2c3b13425863 (patch)
tree9911930f2771d7cfb815c9f3624fa13c46766626 /api/gobgp.proto
parentb73933c4b20e15f468944edd7012a7cc90adf0e7 (diff)
api: Use attribute.proto struct in message Vrf
The current formats of the RD and import/export RTs in message Vrf are the binary type representation, this patch fixes to use the structures defined in attribute.proto file. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto20
1 files changed, 16 insertions, 4 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 0f6eefe1..ff19ee70 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -646,7 +646,7 @@ message Path {
// - VPNFlowSpecNLRI
// - OpaqueNLRI
google.protobuf.Any any_nlri = 20;
- // Each attribute must be on of *Attribute defined in
+ // Each attribute must be one of *Attribute defined in
// "api/bgp/attribute.proto".
repeated google.protobuf.Any any_pattrs = 21;
}
@@ -1264,9 +1264,21 @@ message GetRoaResponse {
message Vrf {
string name = 1;
- bytes rd = 2;
- repeated bytes import_rt = 3;
- repeated bytes export_rt = 4;
+ // Route Distinguisher must be one of
+ // RouteDistinguisherTwoOctetAS,
+ // RouteDistinguisherIPAddressAS,
+ // or RouteDistinguisherFourOctetAS.
+ google.protobuf.Any rd = 2;
+ // List of the Import Route Targets. Each must be one of
+ // TwoOctetAsSpecificExtended,
+ // IPv4AddressSpecificExtended,
+ // or FourOctetAsSpecificExtended.
+ repeated google.protobuf.Any import_rt = 3;
+ // List of the Export Route Targets. Each must be one of
+ // TwoOctetAsSpecificExtended,
+ // IPv4AddressSpecificExtended,
+ // or FourOctetAsSpecificExtended.
+ repeated google.protobuf.Any export_rt = 4;
uint32 id = 5;
}