Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import "moc_common_networkcommon.proto";
message LoadBalancerRequest {
repeated LoadBalancer LoadBalancers = 1;
Operation OperationType = 2;
ApiVersion version = 3;
}

message LoadBalancerResponse {
Expand Down Expand Up @@ -39,10 +40,61 @@ message LoadbalancerInboundNatRule {
Protocol protocol = 4;
}

message LoadbalancerOutboundNatRule {
string name = 1;
repeated FrontendIPConfigurationReference frontendIpConfigurationsRef= 2;
BackendAddressPoolReference backendAddressPoolRef= 3;
Protocol protocol = 4;
bool enableTcpReset = 5;
Tags tags = 6;
}

enum LoadDistribution {
Default = 0;
SourceIp = 1;
SourceIPProtocol = 2;
}

message LoadBalancingRule {
uint32 frontendPort = 1;
uint32 backendPort = 2;
Protocol protocol = 3;
ProbeReference probeRef = 4;
repeated FrontendIPConfigurationReference frontendIpConfigurationsRef= 5;
BackendAddressPoolReference backendAddressPoolRef= 6;
string name = 7;
uint32 idleTimeoutInMinutes = 8;
bool enableFloatingIP = 9;
bool enableTcpReset = 10;
LoadDistribution loadDistribution = 11;
Tags tags = 12;
}

enum ProbeProtocol {
Http = 0;
Https = 1;
Tcp = 2;
}

message Probe {
string name = 1;
uint32 intervalInSeconds = 2;
uint32 numberOfProbes = 3;
ProbeProtocol protocol = 4;
uint32 port = 5;
string requestPath = 6;
Tags tags = 7;
}

message FrontEndIpConfiguration {
string name = 1;
PublicIPAddressReference publicIPAddress = 2; // required if not using privateIP and a subnet. resourceRef to publicIPAddress
Tags tags = 3;
}

message BackendAddressPool {
string name = 1;
Tags tags = 2;
}

message LoadBalancer {
Expand All @@ -59,6 +111,10 @@ message LoadBalancer {
Tags tags = 11;
uint32 replicationCount = 12;
repeated LoadbalancerInboundNatRule inboundNatRules = 13;
repeated LoadbalancerOutboundNatRule outboundNatRules = 14;
repeated FrontEndIpConfiguration frontendIpConfigurations = 15;
repeated Probe probes = 16;
repeated BackendAddressPool backendAddressPools = 17;
}

service LoadBalancerAgent {
Expand Down
Loading
Loading