azure-container-networking/proto/nodenetworkservice/3.302.0.744/NodeNetworkService.proto

53 строки
1.3 KiB
Protocol Buffer

syntax = "proto3";
package azure.nodenetworkservice;
option go_package = ".;nodenetworkservice";
service NodeNetworkService {
rpc ConfigureNetworking(ConfigureNetworkingRequest) returns (ConfigureNetworkingResponse);
rpc ConfigureContainerNetworking(ConfigureContainerNetworkingRequest) returns (ConfigureContainerNetworkingResponse);
rpc PingNodeNetworkService(PingNodeNetworkServiceRequest) returns (PingNodeNetworkServiceResponse);
}
message ConfigureNetworkingRequest {
string container_id = 1;
RequestType request_type = 2;
}
message ConfigureNetworkingResponse {}
message PingNodeNetworkServiceRequest {
string ping_request_message = 1;
}
message PingNodeNetworkServiceResponse {
string ping_response_message = 1;
}
enum RequestType {
Setup = 0;
Teardown = 1;
}
message ConfigureContainerNetworkingRequest {
RequestType request_type = 1;
string container_id = 2;
string network_namespace_id = 3;
}
message ConfigureContainerNetworkingResponse {
repeated ContainerNetworkInterface interfaces = 1;
}
message ContainerIPAddress {
string version = 1;
string ip = 3;
string prefix_length = 4;
string default_gateway = 5;
}
message ContainerNetworkInterface {
string name = 1;
string mac_address = 2;
string network_namespace_id = 3;
repeated ContainerIPAddress ipaddresses = 4;
}