...
1syntax = "proto3";
2package azure.nodenetworkservice;
3option go_package = "github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v0";
4option deprecated = true;
5
6service NodeNetworkService {
7 rpc ConfigureNetworking(ConfigureNetworkingRequest) returns (ConfigureNetworkingResponse);
8 rpc ConfigureContainerNetworking(ConfigureContainerNetworkingRequest) returns (ConfigureContainerNetworkingResponse);
9 rpc PingNodeNetworkService(PingNodeNetworkServiceRequest) returns (PingNodeNetworkServiceResponse);
10 rpc GetHostLocalIpAddress(GetHostLocalIpAddressRequest) returns (GetHostLocalIpAddressResponse);
11}
12
13message ConfigureNetworkingRequest {
14 option deprecated = true;
15 string container_id = 1 [deprecated = true];
16 RequestType request_type = 2 [deprecated = true];
17}
18
19message ConfigureNetworkingResponse {
20 option deprecated = true;
21}
22
23message PingNodeNetworkServiceRequest {
24 option deprecated = true;
25 string ping_request_message = 1 [deprecated = true];
26}
27
28message PingNodeNetworkServiceResponse {
29 option deprecated = true;
30 string ping_response_message = 1 [deprecated = true];
31}
32
33enum RequestType {
34 option deprecated = true;
35 Setup = 0 [deprecated = true];
36 Teardown = 1 [deprecated = true];
37}
38
39message ConfigureContainerNetworkingRequest {
40 option deprecated = true;
41 RequestType request_type = 1 [deprecated = true];
42 string container_id = 2 [deprecated = true];
43 string network_namespace_id = 3 [deprecated = true];
44}
45
46message ConfigureContainerNetworkingResponse {
47 option deprecated = true;
48 repeated ContainerNetworkInterface interfaces = 1 [deprecated = true];
49}
50
51message ContainerIPAddress {
52 option deprecated = true;
53 string version = 1 [deprecated = true];
54 string ip = 3 [deprecated = true];
55 string prefix_length = 4 [deprecated = true];
56 string default_gateway = 5 [deprecated = true];
57}
58
59message ContainerNetworkInterface {
60 option deprecated = true;
61 string name = 1 [deprecated = true];
62 string mac_address = 2 [deprecated = true];
63 string network_namespace_id = 3 [deprecated = true];
64 repeated ContainerIPAddress ipaddresses = 4 [deprecated = true];
65}
66
67message GetHostLocalIpAddressRequest {
68 option deprecated = true;
69 string container_id = 1 [deprecated = true];
70}
71
72message GetHostLocalIpAddressResponse {
73 option deprecated = true;
74 string ip_addr = 1 [deprecated = true];
75}
View as plain text