diff options
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index cc12f6ba..d8c66558 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -38,6 +38,7 @@ service GobgpApi { rpc EnableNeighbor(EnableNeighborRequest) returns (EnableNeighborResponse) {} rpc DisableNeighbor(DisableNeighborRequest) returns (DisableNeighborResponse) {} rpc GetRib(GetRibRequest) returns (GetRibResponse) {} + rpc GetPath(GetPathRequest) returns (stream Path) {} rpc ValidateRib(ValidateRibRequest) returns (ValidateRibResponse) {} rpc AddPath(AddPathRequest) returns (AddPathResponse) {} rpc DeletePath(DeletePathRequest) returns (DeletePathResponse) {} @@ -566,6 +567,26 @@ message GetRibResponse { Table table = 1; } +// API representation of table.LookupOption +enum TableLookupOption { + LOOKUP_EXACT = 0; + LOOKUP_LONGER = 1; + LOOKUP_SHORTER = 2; +} + +// API representation of table.LookupPrefix +message TableLookupPrefix { + string prefix = 1; + TableLookupOption lookup_option = 2; +} + +message GetPathRequest { + Resource type = 1; + string name = 2; + uint32 family = 3; + repeated TableLookupPrefix prefixes = 4; +} + message ValidateRibRequest { Resource type = 1; uint32 family = 2; |