github.com/microsoft/moc@v0.17.1/rpc/nodeagent/network/logicalnetwork/moc_nodeagent_logicalnetwork.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/nodeagent/network";
     6  package moc.nodeagent.network;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "google/protobuf/empty.proto";
    10  import "moc_common_common.proto";
    11  import "moc_common_networkcommon.proto";
    12  import "moc_common_notification.proto";
    13  
    14  message LogicalNetworkRequest {
    15  	repeated LogicalNetwork LogicalNetworks = 1;
    16  	Operation OperationType = 2;
    17  }
    18  
    19  message LogicalNetworkResponse {
    20  	repeated LogicalNetwork LogicalNetworks = 1;
    21  	google.protobuf.BoolValue Result = 2;
    22  	string  Error = 3;
    23  }
    24  
    25  message LogicalNetwork {
    26  	string name = 1;
    27  	string id = 2;
    28  	repeated LogicalNetworkIpam ipams = 3;
    29  	Status status = 4;
    30  	Entity entity = 5;
    31  	Tags tags = 6;
    32  }
    33  
    34  message LogicalSubnet {
    35  	string name = 1;
    36  	string id = 2;
    37  	string addressPrefix = 3;
    38  	repeated Route routes = 4;
    39  	IPAllocationMethod allocation = 5;
    40  	uint32 vlan = 6;
    41  	Dns dns = 7; 
    42  }
    43  message LogicalNetworkIpam {
    44  	string type = 1;
    45  	repeated LogicalSubnet subnets = 2;
    46  }
    47  
    48  service LogicalNetworkAgent {
    49  	rpc Invoke(LogicalNetworkRequest) returns (LogicalNetworkResponse) {}
    50  	rpc CheckNotification(google.protobuf.Empty) returns (NotificationResponse) {}
    51  }
    52