summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-23 23:12:49 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-23 23:40:37 +0900
commit8d0a8b0ffa696a3838740fec7accc54ccfb452ab (patch)
treecc9dd2da324045dba80bb6dc1d1149ed0114c639 /api/gobgp.proto
parentababf3068c48d665e2d9d7816cbb521c74fc47c5 (diff)
make the usage of type name in protobuf consistent
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto28
1 files changed, 14 insertions, 14 deletions
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;
}