From b992c538652580cb4150524328dc2c3b13425863 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 19 Jun 2018 10:25:50 +0900 Subject: 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 --- api/gobgp.proto | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'api/gobgp.proto') 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; } -- cgit v1.2.3