| Index: go/src/infra/crimson/proto/crimson.proto
|
| diff --git a/go/src/infra/crimson/proto/crimson.proto b/go/src/infra/crimson/proto/crimson.proto
|
| index 4a2e6bb2f64af2876c759b6f595b87b14acd0292..08b41b0649ec1a0d719ae1ca792a419dfb8ddc86 100644
|
| --- a/go/src/infra/crimson/proto/crimson.proto
|
| +++ b/go/src/infra/crimson/proto/crimson.proto
|
| @@ -9,6 +9,9 @@ package crimson;
|
| service Crimson {
|
| rpc CreateIPRange (IPRange) returns (IPRangeStatus) {}
|
| rpc ReadIPRange (IPRangeQuery) returns (IPRanges) {}
|
| +
|
| + rpc CreateHost (HostList) returns (HostStatus) {}
|
| + rpc ReadHost (HostQuery) returns (HostList) {}
|
| }
|
|
|
| message IPRanges {
|
| @@ -32,3 +35,26 @@ message IPRangeQuery {
|
| uint32 limit = 3;
|
| string ip = 4;
|
| }
|
| +
|
| +message Host {
|
| + string site = 1;
|
| + string hostname = 2;
|
| + string mac_addr = 3;
|
| + string ip = 4;
|
| + string boot_class = 5;
|
| +}
|
| +
|
| +message HostList {
|
| + repeated Host hosts = 1;
|
| +}
|
| +
|
| +message HostStatus { }
|
| +
|
| +message HostQuery {
|
| + uint32 limit = 1;
|
| + string site = 2;
|
| + string hostname = 3;
|
| + string mac_addr = 4;
|
| + string ip = 5;
|
| + string boot_class = 6;
|
| +}
|
|
|