From 8d0a8b0ffa696a3838740fec7accc54ccfb452ab Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 23 Dec 2018 23:12:49 +0900 Subject: make the usage of type name in protobuf consistent Signed-off-by: FUJITA Tomonori --- api/gobgp.proto | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'api/gobgp.proto') diff --git a/api/gobgp.proto b/api/gobgp.proto index 910618a9..a5a3d601 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -200,7 +200,7 @@ message AddDynamicNeighborRequest { } message AddPathRequest { - Resource resource = 1; + TableType table_type = 1; string vrf_id = 2; Path path = 3; } @@ -210,7 +210,7 @@ message AddPathResponse { } message DeletePathRequest { - Resource resource = 1; + TableType table_type = 1; string vrf_id = 2; Family family = 3; Path path = 4; @@ -218,7 +218,7 @@ message DeletePathRequest { } message ListPathRequest { - Resource type = 1; + TableType table_type = 1; string name = 2; Family family = 3; repeated TableLookupPrefix prefixes = 4; @@ -234,13 +234,13 @@ message ListPathResponse { } message AddPathStreamRequest { - Resource resource = 1; + TableType table_type = 1; string vrf_id = 2; repeated Path paths = 3; } message GetTableRequest { - Resource type = 1; + TableType table_type = 1; Family family = 2; string name = 3; } @@ -252,7 +252,7 @@ message GetTableResponse { } message MonitorTableRequest { - Resource type = 1; + TableType table_type = 1; string name = 2; Family family = 3; bool current = 4; @@ -318,7 +318,7 @@ message DeleteDefinedSetRequest { } message ListDefinedSetRequest { - DefinedType type = 1; + DefinedType defined_type = 1; string name = 2; } @@ -436,7 +436,7 @@ message AddBmpRequest { LOCAL = 3; ALL = 4; } - MonitoringPolicy type = 3; + MonitoringPolicy policy = 3; int32 StatisticsTimeout = 4; } @@ -474,7 +474,7 @@ message Family { Safi safi = 2; } -enum Resource { +enum TableType { GLOBAL = 0; LOCAL = 1; ADJ_IN = 2; @@ -966,7 +966,7 @@ enum DefinedType { } message DefinedSet { - DefinedType type = 1; + DefinedType defined_type = 1; string name = 2; repeated string list = 3; repeated Prefix prefixes = 4; @@ -979,7 +979,7 @@ enum MatchType { } message MatchSet { - MatchType type = 1; + MatchType match_type = 1; string name = 2; } @@ -990,7 +990,7 @@ enum AsPathLengthType { } message AsPathLength { - AsPathLengthType type = 1; + AsPathLengthType length_type = 1; uint32 length = 2; } @@ -1027,7 +1027,7 @@ enum CommunityActionType { } message CommunityAction { - CommunityActionType type = 1; + CommunityActionType action_type = 1; repeated string communities = 2; } @@ -1037,7 +1037,7 @@ enum MedActionType { } message MedAction { - MedActionType type = 1; + MedActionType action_type = 1; int64 value = 2; } -- cgit v1.2.3