Skip to content

Commit

Permalink
Updates to SLB proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mjethwa-msft committed Jun 6, 2024
1 parent a24a3e9 commit 4543105
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,28 @@ message LoadBalancingRule {
uint32 frontendPort = 1;
uint32 backendPort = 2;
Protocol protocol = 3;
ProbeReference probeRef = 4; // Update based on chat with Nithin
}

message Probe {
uint32 intervalInSeconds = 1;
uint32 numberOfProbes = 2;
Protocol protocol = 3;
uint32 port = 4;
repeated LoadBalancingRule loadbalancingrules = 5; //read-only
}

message FrontEndIpConfiguration {
string privateIPAddress; // required if using subnet
IPAllocationMethod allocationMethod; // required
string subnetRef; // required if using privateIPAddress. Pass just the name or fully qualified ref?
PublicIPAddressReference publicIPAddress; // required if not using privateIP and a subnet. resourceRef to publicIPAddress
string privateIPAddress = 1; // required if using subnet
IPAllocationMethod allocationMethod = 2; // required
string subnetRef = 3; // required if using privateIPAddress. Pass just the name or fully qualified ref?
PublicIPAddressReference publicIPAddress = 4; // required if not using privateIP and a subnet. resourceRef to publicIPAddress

repeated LoadbalancerInboundNatRule inboundNatRules = 13; //read-only
repeated LoadbalancerInboundNatRule inboundNatRules = 5; //read-only
repeated LoadbalancerOutboundNatRule outboundNatRules = 6; //read-only
repeated LoadBalancingRule loadbalancingrules = 6; //read-only
repeated LoadBalancingRule loadbalancingrules = 7; //read-only

LoadBalancerVipConfigurationState ConfigurationState // Do we need to surface this?
LoadBalancerVipConfigurationState configurationState = 8; // Do we need to surface this? how is it different from Probes?
}

message LoadBalancer {
Expand All @@ -67,8 +76,10 @@ message LoadBalancer {
Tags tags = 11;
uint32 replicationCount = 12;
repeated LoadbalancerInboundNatRule inboundNatRules = 13;
repeated FrontEndIpConfiguration = 14;
string useSDN = 15;
repeated LoadbalancerInboundNatRule outboundNatRules = 14;
repeated FrontEndIpConfiguration frontendIpConfigurations = 15;
repeated Probe probes = 16; // Need more discussion around probes
string useSDN = 17; // To indicate SDN optionality
}

service LoadBalancerAgent {
Expand Down
4 changes: 4 additions & 0 deletions rpc/common/moc_common_networkcommon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ message NetworkSecurityGroupReference {

message PublicIPAddressReference {
ResourceReference resourceRef = 1;
}

message ProbeReference {
ResourceReference resourceRef = 1;
}

0 comments on commit 4543105

Please sign in to comment.