...

Text file src/github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.proto

Documentation: github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0

     1syntax = "proto3";
     2
     3package ncproxygrpc;
     4option go_package = "github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v0";
     5option deprecated = true;
     6
     7service NetworkConfigProxy {
     8    rpc AddNIC(AddNICRequest) returns (AddNICResponse) {}
     9    rpc ModifyNIC(ModifyNICRequest) returns (ModifyNICResponse) {}
    10    rpc DeleteNIC(DeleteNICRequest) returns (DeleteNICResponse) {}
    11
    12    rpc CreateNetwork(CreateNetworkRequest) returns (CreateNetworkResponse) {}
    13    rpc CreateEndpoint(CreateEndpointRequest) returns (CreateEndpointResponse) {}
    14    rpc AddEndpoint(AddEndpointRequest) returns (AddEndpointResponse) {}
    15    rpc DeleteEndpoint(DeleteEndpointRequest) returns (DeleteEndpointResponse) {}
    16    rpc DeleteNetwork(DeleteNetworkRequest) returns (DeleteNetworkResponse) {}
    17    rpc GetEndpoint(GetEndpointRequest) returns (GetEndpointResponse) {}
    18    rpc GetNetwork(GetNetworkRequest) returns (GetNetworkResponse) {}
    19    rpc GetEndpoints(GetEndpointsRequest) returns (GetEndpointsResponse) {}
    20    rpc GetNetworks(GetNetworksRequest) returns (GetNetworksResponse) {}
    21}
    22
    23message AddNICRequest {
    24    option deprecated = true;
    25    string container_id = 1 [deprecated = true]; 
    26    string nic_id = 2 [deprecated = true];
    27    string endpoint_name = 3 [deprecated = true];
    28}
    29
    30message AddNICResponse {
    31    option deprecated = true;
    32}
    33
    34message ModifyNICRequest {
    35    option deprecated = true;
    36    string container_id = 1 [deprecated = true];
    37    string nic_id = 2 [deprecated = true];
    38    string endpoint_name = 3 [deprecated = true];
    39    IovEndpointPolicySetting iov_policy_settings = 4 [deprecated = true];
    40}
    41
    42message ModifyNICResponse {
    43    option deprecated = true;
    44}
    45
    46message DeleteNICRequest {
    47    option deprecated = true;
    48    string container_id = 1 [deprecated = true];
    49    string nic_id = 2 [deprecated = true];
    50    string endpoint_name = 3 [deprecated = true];
    51}
    52
    53message DeleteNICResponse {
    54    option deprecated = true;
    55}
    56
    57message CreateNetworkRequest {
    58    option deprecated = true;
    59    enum NetworkMode
    60    {
    61        option deprecated = true;
    62        Transparent = 0 [deprecated = true];
    63        NAT = 1 [deprecated = true];
    64    }
    65
    66    enum IpamType
    67    {
    68        option deprecated = true;
    69        Static = 0 [deprecated = true];
    70        DHCP = 1 [deprecated = true];
    71    }
    72
    73    string name = 1 [deprecated = true];
    74    NetworkMode mode = 2 [deprecated = true];
    75    string switch_name = 3 [deprecated = true];
    76    IpamType ipam_type = 4 [deprecated = true];
    77    repeated string subnet_ipaddress_prefix = 5 [deprecated = true];
    78    string default_gateway = 6 [deprecated = true];
    79}
    80
    81message CreateNetworkResponse{
    82    option deprecated = true;
    83    string id = 1 [deprecated = true];
    84}
    85
    86message PortNameEndpointPolicySetting {
    87    option deprecated = true;
    88    string port_name = 1 [deprecated = true];
    89}
    90
    91message IovEndpointPolicySetting {
    92    option deprecated = true;
    93    uint32 iov_offload_weight = 1 [deprecated = true];
    94    uint32 queue_pairs_requested = 2 [deprecated = true];
    95    uint32 interrupt_moderation = 3 [deprecated = true];
    96}
    97
    98message DnsSetting {
    99    option deprecated = true;
   100    repeated string server_ip_addrs = 1 [deprecated = true];
   101    string domain = 2 [deprecated = true];
   102    repeated string search = 3 [deprecated = true];
   103}
   104
   105message CreateEndpointRequest {
   106    option deprecated = true;
   107    reserved 8 to 15;
   108    string name = 1 [deprecated = true];
   109    string macaddress = 2 [deprecated = true];
   110    string ipaddress = 3 [deprecated = true];
   111    string ipaddress_prefixlength = 4 [deprecated = true];
   112    string network_name = 5 [deprecated = true];
   113    PortNameEndpointPolicySetting portname_policy_setting = 6 [deprecated = true];
   114    IovEndpointPolicySetting iov_policy_settings = 7 [deprecated = true];
   115    DnsSetting dns_setting = 16 [deprecated = true];
   116}
   117
   118message CreateEndpointResponse{
   119    option deprecated = true;
   120    string id = 1 [deprecated = true];
   121}
   122
   123message AddEndpointRequest {
   124    option deprecated = true;
   125    string name = 1 [deprecated = true];
   126    string namespace_id = 2 [deprecated = true];
   127}
   128
   129message AddEndpointResponse{
   130    option deprecated = true;
   131}
   132
   133message DeleteEndpointRequest {
   134    option deprecated = true;
   135    string name = 1 [deprecated = true];
   136}
   137
   138message DeleteEndpointResponse{
   139    option deprecated = true;
   140}
   141
   142message DeleteNetworkRequest{
   143    option deprecated = true;
   144    string name = 1 [deprecated = true];
   145}
   146
   147message DeleteNetworkResponse{
   148    option deprecated = true;
   149}
   150
   151message GetEndpointRequest{
   152    option deprecated = true;
   153    string name = 1 [deprecated = true];
   154}
   155
   156message GetEndpointResponse{
   157    option deprecated = true;
   158    string id = 1 [deprecated = true];
   159    string name = 2 [deprecated = true];
   160    string network = 3 [deprecated = true]; // GUID
   161    string namespace = 4 [deprecated = true]; // GUID
   162    DnsSetting dns_setting = 5 [deprecated = true];
   163}
   164
   165message GetNetworkRequest{
   166    option deprecated = true;
   167    string name = 1 [deprecated = true];
   168}
   169
   170message GetNetworkResponse{
   171    option deprecated = true;
   172    string id = 1 [deprecated = true];
   173    string name = 2 [deprecated = true];
   174}
   175
   176message GetEndpointsRequest{
   177    option deprecated = true;
   178}
   179
   180message GetEndpointsResponse{
   181    option deprecated = true;
   182    repeated GetEndpointResponse endpoints = 1 [deprecated = true];
   183}
   184
   185message GetNetworksRequest{
   186    option deprecated = true;
   187}
   188
   189message GetNetworksResponse{
   190    option deprecated = true;
   191    repeated GetNetworkResponse networks = 1 [deprecated = true];
   192}

View as plain text