From c16e12eac8d702edc126d26a9c3f2baa04e0bd76 Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Wed, 5 Jun 2024 08:36:00 -0700 Subject: [PATCH 1/5] Initial draft --- .../moc_cloudagent_loadbalancer.proto | 22 ++++++++ .../moc_cloudagent_publicipaddress.proto | 55 +++++++++++++++++++ rpc/common/moc_common_networkcommon.proto | 9 +++ 3 files changed, 86 insertions(+) create mode 100644 rpc/cloudagent/network/publicipaddress/moc_cloudagent_publicipaddress.proto diff --git a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto index 2ad9bf6f..94afc768 100644 --- a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto +++ b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto @@ -39,12 +39,32 @@ message LoadbalancerInboundNatRule { Protocol protocol = 4; } +message LoadbalancerOutboundNatRule { + string name = 1; + uint32 frontendPort = 2; + uint32 backendPort = 3; + Protocol protocol = 4; +} + message LoadBalancingRule { uint32 frontendPort = 1; uint32 backendPort = 2; Protocol protocol = 3; } +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 + + repeated LoadbalancerInboundNatRule inboundNatRules = 13; //read-only + repeated LoadbalancerOutboundNatRule outboundNatRules = 6; //read-only + repeated LoadBalancingRule loadbalancingrules = 6; //read-only + + LoadBalancerVipConfigurationState ConfigurationState // Do we need to surface this? +} + message LoadBalancer { string name = 1; string id = 2; @@ -59,6 +79,8 @@ message LoadBalancer { Tags tags = 11; uint32 replicationCount = 12; repeated LoadbalancerInboundNatRule inboundNatRules = 13; + repeated FrontEndIpConfiguration = 14; + string useSDN = 15; } service LoadBalancerAgent { diff --git a/rpc/cloudagent/network/publicipaddress/moc_cloudagent_publicipaddress.proto b/rpc/cloudagent/network/publicipaddress/moc_cloudagent_publicipaddress.proto new file mode 100644 index 00000000..98e294ee --- /dev/null +++ b/rpc/cloudagent/network/publicipaddress/moc_cloudagent_publicipaddress.proto @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the Apache v2.0 license. + +syntax = "proto3"; +option go_package = "github.com/microsoft/moc/rpc/cloudagent/network"; +package moc.cloudagent.network; + +import "google/protobuf/wrappers.proto"; +import "moc_common_common.proto"; +import "moc_common_networkcommon.proto"; + +message PublicIPAddressRequest { + repeated PublicIPAddress PublicIPAddresss = 1; + Operation OperationType = 2; +} + +message PublicIPAddressResponse { + repeated PublicIPAddress PublicIPAddresss = 1; + google.protobuf.BoolValue Result = 2; + string Error = 3; +} + + IPAddress *string `json:"ipAddress,omitempty"` + + PublicIPAllocationMethod IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + + PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` + + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + + DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` + + IdleTimeoutInMinutes *int32 `json:"idleTimeoutInMinutes,omitempty"` + + DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` + +message PublicIPAddress { + string name = 1; + string id = 2; + string ipAddress = 3 [(sensitive) = true]; + IPAllocationMethod allocation = 4; + IPVersion ipVersion = 5; + uint32 idleTimeoutInMinutes = 6; + string domainNameLabel = 7; + string fqdn = 8; + string reverseFqdn = 9; + string locationName = 10; + Status status = 11; + Tags tags = 12; +} + +service PublicIPAddressAgent { + rpc Invoke(PublicIPAddressRequest) returns (PublicIPAddressResponse) {} +} + diff --git a/rpc/common/moc_common_networkcommon.proto b/rpc/common/moc_common_networkcommon.proto index 607f2f1b..f0e6b18e 100644 --- a/rpc/common/moc_common_networkcommon.proto +++ b/rpc/common/moc_common_networkcommon.proto @@ -33,6 +33,11 @@ enum IPPoolType { VIPPool = 1; } +enum IPVersion { + IPv4 = 0; + IPv6 = 1; +} + message IPPoolInfo { string used = 1; string available = 2; @@ -60,4 +65,8 @@ message ResourceReference { message NetworkSecurityGroupReference { ResourceReference resourceRef = 1; +} + +message PublicIPAddressReference { + ResourceReference resourceRef = 1; } \ No newline at end of file From edadea757b836099c76d5c4d964bef07758e0628 Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Thu, 6 Jun 2024 13:05:18 -0700 Subject: [PATCH 2/5] Updates to SLB proto --- .../moc_cloudagent_loadbalancer.proto | 29 +++++++++++++------ rpc/common/moc_common_networkcommon.proto | 4 +++ 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto index 94afc768..d1f01349 100644 --- a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto +++ b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto @@ -50,19 +50,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 { @@ -79,8 +88,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 { diff --git a/rpc/common/moc_common_networkcommon.proto b/rpc/common/moc_common_networkcommon.proto index f0e6b18e..d4d68b6e 100644 --- a/rpc/common/moc_common_networkcommon.proto +++ b/rpc/common/moc_common_networkcommon.proto @@ -69,4 +69,8 @@ message NetworkSecurityGroupReference { message PublicIPAddressReference { ResourceReference resourceRef = 1; +} + +message ProbeReference { + ResourceReference resourceRef = 1; } \ No newline at end of file From 4b7337ce1bcbe00c682dca38b5e33eb3f6c3dc95 Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Thu, 6 Jun 2024 17:19:01 -0700 Subject: [PATCH 3/5] Add apiVersion --- .../network/loadbalancer/moc_cloudagent_loadbalancer.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto index d1f01349..a4ed4276 100644 --- a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto +++ b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto @@ -92,6 +92,7 @@ message LoadBalancer { repeated FrontEndIpConfiguration frontendIpConfigurations = 15; repeated Probe probes = 16; // Need more discussion around probes string useSDN = 17; // To indicate SDN optionality + string apiVersion = 18; } service LoadBalancerAgent { From 44e1c5840e88cfb66bf8622e7c7f9bce2a695801 Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Wed, 26 Jun 2024 09:52:20 -0700 Subject: [PATCH 4/5] Update SLB proto --- .../moc_cloudagent_loadbalancer.proto | 31 +- .../network/moc_cloudagent_loadbalancer.pb.go | 446 +++++++++++++++--- rpc/common/moc_common_networkcommon.pb.go | 218 +++++++-- rpc/common/moc_common_networkcommon.proto | 4 + 4 files changed, 583 insertions(+), 116 deletions(-) diff --git a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto index a4ed4276..219aa1a2 100644 --- a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto +++ b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto @@ -51,27 +51,28 @@ message LoadBalancingRule { uint32 backendPort = 2; Protocol protocol = 3; ProbeReference probeRef = 4; // Update based on chat with Nithin + string name = 5; } message Probe { - uint32 intervalInSeconds = 1; - uint32 numberOfProbes = 2; - Protocol protocol = 3; - uint32 port = 4; - repeated LoadBalancingRule loadbalancingrules = 5; //read-only + string name = 1; + uint32 intervalInSeconds = 2; + uint32 numberOfProbes = 3; + Protocol protocol = 4; + uint32 port = 5; + repeated LoadBalancingRule loadbalancingrules = 6; //read-only } message FrontEndIpConfiguration { - 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 + string name = 1; + string privateIPAddress = 2; // required if using subnet + IPAllocationMethod allocationMethod = 3; // required + SubnetReference subnetRef = 4; // required if using privateIPAddress. + PublicIPAddressReference publicIPAddress = 5; // required if not using privateIP and a subnet. resourceRef to publicIPAddress - repeated LoadbalancerInboundNatRule inboundNatRules = 5; //read-only - repeated LoadbalancerOutboundNatRule outboundNatRules = 6; //read-only - repeated LoadBalancingRule loadbalancingrules = 7; //read-only - - LoadBalancerVipConfigurationState configurationState = 8; // Do we need to surface this? how is it different from Probes? + repeated LoadbalancerInboundNatRule inboundNatRules = 6; //read-only + repeated LoadbalancerOutboundNatRule outboundNatRules = 7; //read-only + repeated LoadBalancingRule loadbalancingrules = 8; //read-only } message LoadBalancer { @@ -88,7 +89,7 @@ message LoadBalancer { Tags tags = 11; uint32 replicationCount = 12; repeated LoadbalancerInboundNatRule inboundNatRules = 13; - repeated LoadbalancerInboundNatRule outboundNatRules = 14; + repeated LoadbalancerOutboundNatRule outboundNatRules = 14; repeated FrontEndIpConfiguration frontendIpConfigurations = 15; repeated Probe probes = 16; // Need more discussion around probes string useSDN = 17; // To indicate SDN optionality diff --git a/rpc/cloudagent/network/moc_cloudagent_loadbalancer.pb.go b/rpc/cloudagent/network/moc_cloudagent_loadbalancer.pb.go index adde616a..9a6f9499 100644 --- a/rpc/cloudagent/network/moc_cloudagent_loadbalancer.pb.go +++ b/rpc/cloudagent/network/moc_cloudagent_loadbalancer.pb.go @@ -279,20 +279,85 @@ func (m *LoadbalancerInboundNatRule) GetProtocol() common.Protocol { return common.Protocol_All } -type LoadBalancingRule struct { - FrontendPort uint32 `protobuf:"varint,1,opt,name=frontendPort,proto3" json:"frontendPort,omitempty"` - BackendPort uint32 `protobuf:"varint,2,opt,name=backendPort,proto3" json:"backendPort,omitempty"` - Protocol common.Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=moc.Protocol" json:"protocol,omitempty"` +type LoadbalancerOutboundNatRule struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + FrontendPort uint32 `protobuf:"varint,2,opt,name=frontendPort,proto3" json:"frontendPort,omitempty"` + BackendPort uint32 `protobuf:"varint,3,opt,name=backendPort,proto3" json:"backendPort,omitempty"` + Protocol common.Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=moc.Protocol" json:"protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } +func (m *LoadbalancerOutboundNatRule) Reset() { *m = LoadbalancerOutboundNatRule{} } +func (m *LoadbalancerOutboundNatRule) String() string { return proto.CompactTextString(m) } +func (*LoadbalancerOutboundNatRule) ProtoMessage() {} +func (*LoadbalancerOutboundNatRule) Descriptor() ([]byte, []int) { + return fileDescriptor_7464476b31ac10f8, []int{3} +} + +func (m *LoadbalancerOutboundNatRule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadbalancerOutboundNatRule.Unmarshal(m, b) +} +func (m *LoadbalancerOutboundNatRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadbalancerOutboundNatRule.Marshal(b, m, deterministic) +} +func (m *LoadbalancerOutboundNatRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadbalancerOutboundNatRule.Merge(m, src) +} +func (m *LoadbalancerOutboundNatRule) XXX_Size() int { + return xxx_messageInfo_LoadbalancerOutboundNatRule.Size(m) +} +func (m *LoadbalancerOutboundNatRule) XXX_DiscardUnknown() { + xxx_messageInfo_LoadbalancerOutboundNatRule.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadbalancerOutboundNatRule proto.InternalMessageInfo + +func (m *LoadbalancerOutboundNatRule) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *LoadbalancerOutboundNatRule) GetFrontendPort() uint32 { + if m != nil { + return m.FrontendPort + } + return 0 +} + +func (m *LoadbalancerOutboundNatRule) GetBackendPort() uint32 { + if m != nil { + return m.BackendPort + } + return 0 +} + +func (m *LoadbalancerOutboundNatRule) GetProtocol() common.Protocol { + if m != nil { + return m.Protocol + } + return common.Protocol_All +} + +type LoadBalancingRule struct { + FrontendPort uint32 `protobuf:"varint,1,opt,name=frontendPort,proto3" json:"frontendPort,omitempty"` + BackendPort uint32 `protobuf:"varint,2,opt,name=backendPort,proto3" json:"backendPort,omitempty"` + Protocol common.Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=moc.Protocol" json:"protocol,omitempty"` + ProbeRef *common.ProbeReference `protobuf:"bytes,4,opt,name=probeRef,proto3" json:"probeRef,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + func (m *LoadBalancingRule) Reset() { *m = LoadBalancingRule{} } func (m *LoadBalancingRule) String() string { return proto.CompactTextString(m) } func (*LoadBalancingRule) ProtoMessage() {} func (*LoadBalancingRule) Descriptor() ([]byte, []int) { - return fileDescriptor_7464476b31ac10f8, []int{5} + return fileDescriptor_7464476b31ac10f8, []int{4} } func (m *LoadBalancingRule) XXX_Unmarshal(b []byte) error { @@ -334,30 +399,223 @@ func (m *LoadBalancingRule) GetProtocol() common.Protocol { return common.Protocol_All } +func (m *LoadBalancingRule) GetProbeRef() *common.ProbeReference { + if m != nil { + return m.ProbeRef + } + return nil +} + +func (m *LoadBalancingRule) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type Probe struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IntervalInSeconds uint32 `protobuf:"varint,2,opt,name=intervalInSeconds,proto3" json:"intervalInSeconds,omitempty"` + NumberOfProbes uint32 `protobuf:"varint,3,opt,name=numberOfProbes,proto3" json:"numberOfProbes,omitempty"` + Protocol common.Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=moc.Protocol" json:"protocol,omitempty"` + Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + Loadbalancingrules []*LoadBalancingRule `protobuf:"bytes,6,rep,name=loadbalancingrules,proto3" json:"loadbalancingrules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Probe) Reset() { *m = Probe{} } +func (m *Probe) String() string { return proto.CompactTextString(m) } +func (*Probe) ProtoMessage() {} +func (*Probe) Descriptor() ([]byte, []int) { + return fileDescriptor_7464476b31ac10f8, []int{5} +} + +func (m *Probe) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Probe.Unmarshal(m, b) +} +func (m *Probe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Probe.Marshal(b, m, deterministic) +} +func (m *Probe) XXX_Merge(src proto.Message) { + xxx_messageInfo_Probe.Merge(m, src) +} +func (m *Probe) XXX_Size() int { + return xxx_messageInfo_Probe.Size(m) +} +func (m *Probe) XXX_DiscardUnknown() { + xxx_messageInfo_Probe.DiscardUnknown(m) +} + +var xxx_messageInfo_Probe proto.InternalMessageInfo + +func (m *Probe) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Probe) GetIntervalInSeconds() uint32 { + if m != nil { + return m.IntervalInSeconds + } + return 0 +} + +func (m *Probe) GetNumberOfProbes() uint32 { + if m != nil { + return m.NumberOfProbes + } + return 0 +} + +func (m *Probe) GetProtocol() common.Protocol { + if m != nil { + return m.Protocol + } + return common.Protocol_All +} + +func (m *Probe) GetPort() uint32 { + if m != nil { + return m.Port + } + return 0 +} + +func (m *Probe) GetLoadbalancingrules() []*LoadBalancingRule { + if m != nil { + return m.Loadbalancingrules + } + return nil +} + +type FrontEndIpConfiguration struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PrivateIPAddress string `protobuf:"bytes,2,opt,name=privateIPAddress,proto3" json:"privateIPAddress,omitempty"` + AllocationMethod common.IPAllocationMethod `protobuf:"varint,3,opt,name=allocationMethod,proto3,enum=moc.IPAllocationMethod" json:"allocationMethod,omitempty"` + SubnetRef *common.SubnetReference `protobuf:"bytes,4,opt,name=subnetRef,proto3" json:"subnetRef,omitempty"` + PublicIPAddress *common.PublicIPAddressReference `protobuf:"bytes,5,opt,name=publicIPAddress,proto3" json:"publicIPAddress,omitempty"` + InboundNatRules []*LoadbalancerInboundNatRule `protobuf:"bytes,6,rep,name=inboundNatRules,proto3" json:"inboundNatRules,omitempty"` + OutboundNatRules []*LoadbalancerOutboundNatRule `protobuf:"bytes,7,rep,name=outboundNatRules,proto3" json:"outboundNatRules,omitempty"` + Loadbalancingrules []*LoadBalancingRule `protobuf:"bytes,8,rep,name=loadbalancingrules,proto3" json:"loadbalancingrules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FrontEndIpConfiguration) Reset() { *m = FrontEndIpConfiguration{} } +func (m *FrontEndIpConfiguration) String() string { return proto.CompactTextString(m) } +func (*FrontEndIpConfiguration) ProtoMessage() {} +func (*FrontEndIpConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_7464476b31ac10f8, []int{6} +} + +func (m *FrontEndIpConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FrontEndIpConfiguration.Unmarshal(m, b) +} +func (m *FrontEndIpConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FrontEndIpConfiguration.Marshal(b, m, deterministic) +} +func (m *FrontEndIpConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_FrontEndIpConfiguration.Merge(m, src) +} +func (m *FrontEndIpConfiguration) XXX_Size() int { + return xxx_messageInfo_FrontEndIpConfiguration.Size(m) +} +func (m *FrontEndIpConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_FrontEndIpConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_FrontEndIpConfiguration proto.InternalMessageInfo + +func (m *FrontEndIpConfiguration) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *FrontEndIpConfiguration) GetPrivateIPAddress() string { + if m != nil { + return m.PrivateIPAddress + } + return "" +} + +func (m *FrontEndIpConfiguration) GetAllocationMethod() common.IPAllocationMethod { + if m != nil { + return m.AllocationMethod + } + return common.IPAllocationMethod_Invalid +} + +func (m *FrontEndIpConfiguration) GetSubnetRef() *common.SubnetReference { + if m != nil { + return m.SubnetRef + } + return nil +} + +func (m *FrontEndIpConfiguration) GetPublicIPAddress() *common.PublicIPAddressReference { + if m != nil { + return m.PublicIPAddress + } + return nil +} + +func (m *FrontEndIpConfiguration) GetInboundNatRules() []*LoadbalancerInboundNatRule { + if m != nil { + return m.InboundNatRules + } + return nil +} + +func (m *FrontEndIpConfiguration) GetOutboundNatRules() []*LoadbalancerOutboundNatRule { + if m != nil { + return m.OutboundNatRules + } + return nil +} + +func (m *FrontEndIpConfiguration) GetLoadbalancingrules() []*LoadBalancingRule { + if m != nil { + return m.Loadbalancingrules + } + return nil +} + type LoadBalancer struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - FrontendIP string `protobuf:"bytes,3,opt,name=frontendIP,proto3" json:"frontendIP,omitempty"` - Backendpoolnames []string `protobuf:"bytes,4,rep,name=backendpoolnames,proto3" json:"backendpoolnames,omitempty"` - Networkid string `protobuf:"bytes,5,opt,name=networkid,proto3" json:"networkid,omitempty"` - Loadbalancingrules []*LoadBalancingRule `protobuf:"bytes,6,rep,name=loadbalancingrules,proto3" json:"loadbalancingrules,omitempty"` - Nodefqdn string `protobuf:"bytes,7,opt,name=nodefqdn,proto3" json:"nodefqdn,omitempty"` - GroupName string `protobuf:"bytes,8,opt,name=groupName,proto3" json:"groupName,omitempty"` - LocationName string `protobuf:"bytes,9,opt,name=locationName,proto3" json:"locationName,omitempty"` - Status *common.Status `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"` - Tags *common.Tags `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"` - ReplicationCount uint32 `protobuf:"varint,12,opt,name=replicationCount,proto3" json:"replicationCount,omitempty"` - InboundNatRules []*LoadbalancerInboundNatRule `protobuf:"bytes,13,rep,name=inboundNatRules,proto3" json:"inboundNatRules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + FrontendIP string `protobuf:"bytes,3,opt,name=frontendIP,proto3" json:"frontendIP,omitempty"` + Backendpoolnames []string `protobuf:"bytes,4,rep,name=backendpoolnames,proto3" json:"backendpoolnames,omitempty"` + Networkid string `protobuf:"bytes,5,opt,name=networkid,proto3" json:"networkid,omitempty"` + Loadbalancingrules []*LoadBalancingRule `protobuf:"bytes,6,rep,name=loadbalancingrules,proto3" json:"loadbalancingrules,omitempty"` + Nodefqdn string `protobuf:"bytes,7,opt,name=nodefqdn,proto3" json:"nodefqdn,omitempty"` + GroupName string `protobuf:"bytes,8,opt,name=groupName,proto3" json:"groupName,omitempty"` + LocationName string `protobuf:"bytes,9,opt,name=locationName,proto3" json:"locationName,omitempty"` + Status *common.Status `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"` + Tags *common.Tags `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"` + ReplicationCount uint32 `protobuf:"varint,12,opt,name=replicationCount,proto3" json:"replicationCount,omitempty"` + InboundNatRules []*LoadbalancerInboundNatRule `protobuf:"bytes,13,rep,name=inboundNatRules,proto3" json:"inboundNatRules,omitempty"` + OutboundNatRules []*LoadbalancerOutboundNatRule `protobuf:"bytes,14,rep,name=outboundNatRules,proto3" json:"outboundNatRules,omitempty"` + FrontendIpConfigurations []*FrontEndIpConfiguration `protobuf:"bytes,15,rep,name=frontendIpConfigurations,proto3" json:"frontendIpConfigurations,omitempty"` + Probes []*Probe `protobuf:"bytes,16,rep,name=probes,proto3" json:"probes,omitempty"` + UseSDN string `protobuf:"bytes,17,opt,name=useSDN,proto3" json:"useSDN,omitempty"` + ApiVersion string `protobuf:"bytes,18,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *LoadBalancer) Reset() { *m = LoadBalancer{} } func (m *LoadBalancer) String() string { return proto.CompactTextString(m) } func (*LoadBalancer) ProtoMessage() {} func (*LoadBalancer) Descriptor() ([]byte, []int) { - return fileDescriptor_7464476b31ac10f8, []int{6} + return fileDescriptor_7464476b31ac10f8, []int{7} } func (m *LoadBalancer) XXX_Unmarshal(b []byte) error { @@ -469,64 +727,118 @@ func (m *LoadBalancer) GetInboundNatRules() []*LoadbalancerInboundNatRule { return nil } +func (m *LoadBalancer) GetOutboundNatRules() []*LoadbalancerOutboundNatRule { + if m != nil { + return m.OutboundNatRules + } + return nil +} + +func (m *LoadBalancer) GetFrontendIpConfigurations() []*FrontEndIpConfiguration { + if m != nil { + return m.FrontendIpConfigurations + } + return nil +} + +func (m *LoadBalancer) GetProbes() []*Probe { + if m != nil { + return m.Probes + } + return nil +} + +func (m *LoadBalancer) GetUseSDN() string { + if m != nil { + return m.UseSDN + } + return "" +} + +func (m *LoadBalancer) GetApiVersion() string { + if m != nil { + return m.ApiVersion + } + return "" +} + func init() { proto.RegisterType((*LoadBalancerRequest)(nil), "moc.cloudagent.network.LoadBalancerRequest") proto.RegisterType((*LoadBalancerResponse)(nil), "moc.cloudagent.network.LoadBalancerResponse") proto.RegisterType((*LoadBalancerPrecheckRequest)(nil), "moc.cloudagent.network.LoadBalancerPrecheckRequest") proto.RegisterType((*LoadBalancerPrecheckResponse)(nil), "moc.cloudagent.network.LoadBalancerPrecheckResponse") proto.RegisterType((*LoadbalancerInboundNatRule)(nil), "moc.cloudagent.network.LoadbalancerInboundNatRule") + proto.RegisterType((*LoadbalancerOutboundNatRule)(nil), "moc.cloudagent.network.LoadbalancerOutboundNatRule") proto.RegisterType((*LoadBalancingRule)(nil), "moc.cloudagent.network.LoadBalancingRule") + proto.RegisterType((*Probe)(nil), "moc.cloudagent.network.Probe") + proto.RegisterType((*FrontEndIpConfiguration)(nil), "moc.cloudagent.network.FrontEndIpConfiguration") proto.RegisterType((*LoadBalancer)(nil), "moc.cloudagent.network.LoadBalancer") } func init() { proto.RegisterFile("moc_cloudagent_loadbalancer.proto", fileDescriptor_7464476b31ac10f8) } var fileDescriptor_7464476b31ac10f8 = []byte{ - // 694 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, - 0x14, 0x7d, 0x4e, 0xd2, 0xbc, 0xe4, 0xa6, 0xe9, 0x7b, 0x6f, 0x5e, 0x05, 0x56, 0x28, 0x55, 0x08, - 0x5d, 0xa4, 0x80, 0x6c, 0x91, 0xf6, 0x0f, 0x10, 0xc4, 0xa2, 0xa8, 0x2a, 0xd1, 0x50, 0x21, 0x81, - 0x90, 0xaa, 0x89, 0x3d, 0x71, 0xad, 0xd8, 0x73, 0xdd, 0x99, 0x31, 0x15, 0x7b, 0x16, 0xfc, 0x03, - 0xd6, 0xec, 0x91, 0x58, 0xf1, 0xcb, 0xf8, 0x03, 0x28, 0x63, 0x27, 0xb1, 0xdb, 0xa8, 0x1f, 0x12, - 0xac, 0x12, 0x9f, 0x7b, 0xe6, 0xcc, 0x99, 0x33, 0x77, 0x2e, 0x3c, 0x88, 0xd1, 0x3b, 0xf1, 0x22, - 0x4c, 0x7d, 0x16, 0x70, 0xa1, 0x4f, 0x22, 0x64, 0xfe, 0x98, 0x45, 0x4c, 0x78, 0x5c, 0x3a, 0x89, - 0x44, 0x8d, 0xe4, 0x4e, 0x8c, 0x9e, 0xb3, 0xa4, 0x38, 0x82, 0xeb, 0x73, 0x94, 0xd3, 0xce, 0x76, - 0x80, 0x18, 0x44, 0xdc, 0x35, 0xac, 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x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0x59, - 0x9d, 0xe5, 0x40, 0x07, 0x00, 0x00, + // 953 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xed, 0x6e, 0xe3, 0x44, + 0x14, 0xc5, 0x6d, 0x92, 0x6d, 0x6e, 0x36, 0x69, 0x3b, 0x5b, 0x6d, 0xad, 0x40, 0xab, 0x10, 0x56, + 0xa8, 0x0b, 0xab, 0x58, 0x64, 0xe1, 0x01, 0xda, 0xb2, 0xa0, 0xa0, 0xa5, 0x8d, 0xa6, 0xab, 0x95, + 0x40, 0x48, 0x95, 0x3f, 0x26, 0x5e, 0xab, 0xce, 0x8c, 0x77, 0x66, 0xdc, 0x15, 0x3c, 0x01, 0x12, + 0x0f, 0xc0, 0x6f, 0xf8, 0xcd, 0xdf, 0x7d, 0x08, 0xde, 0x85, 0x87, 0x40, 0xbe, 0x9e, 0xc4, 0x76, + 0x3e, 0xba, 0x45, 0xea, 0x4a, 0xfc, 0x8a, 0x7d, 0xee, 0x99, 0xe3, 0x93, 0x33, 0x77, 0xae, 0x0d, + 0x1f, 0x4f, 0x85, 0x7f, 0xe9, 0xc7, 0x22, 0x0d, 0xdc, 0x90, 0x71, 0x7d, 0x19, 0x0b, 0x37, 0xf0, + 0xdc, 0xd8, 0xe5, 0x3e, 0x93, 0x83, 0x44, 0x0a, 0x2d, 0xc8, 0xc3, 0xa9, 0xf0, 0x07, 0x05, 0x65, + 0xc0, 0x99, 0x7e, 0x23, 0xe4, 0x55, 0xf7, 0x30, 0x14, 0x22, 0x8c, 0x99, 0x83, 0x2c, 0x2f, 0x9d, + 0x38, 0x6f, 0xa4, 0x9b, 0x24, 0x4c, 0xaa, 0x7c, 0x5d, 0x77, 0x1f, 0xa5, 0xc5, 0x74, 0x2a, 0xb8, + 0xf9, 0x31, 0x85, 0xc3, 0x52, 0xc1, 0x88, 0x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64, 0xf7, + 0xc9, 0xed, 0xc8, 0xf9, 0x97, 0x5d, 0xff, 0x83, 0x93, 0x2f, 0x7e, 0x74, 0xc2, 0x48, 0xbf, 0x4a, + 0xbd, 0x81, 0x2f, 0xa6, 0xce, 0x34, 0xf2, 0xa5, 0x50, 0x62, 0xa2, 0x9d, 0xa9, 0xf0, 0x1d, 0x99, + 0xf8, 0x4e, 0xa1, 0xe4, 0x18, 0x25, 0xaf, 0x81, 0xaf, 0xb3, 0xa7, 0xff, 0x06, 0x00, 0x00, 0xff, + 0xff, 0xa4, 0x24, 0x22, 0x2d, 0x5e, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/rpc/common/moc_common_networkcommon.pb.go b/rpc/common/moc_common_networkcommon.pb.go index f055eda8..11fd803a 100644 --- a/rpc/common/moc_common_networkcommon.pb.go +++ b/rpc/common/moc_common_networkcommon.pb.go @@ -107,6 +107,31 @@ func (IPPoolType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_ba09ae1dfdbe03d2, []int{2} } +type IPVersion int32 + +const ( + IPVersion_IPv4 IPVersion = 0 + IPVersion_IPv6 IPVersion = 1 +) + +var IPVersion_name = map[int32]string{ + 0: "IPv4", + 1: "IPv6", +} + +var IPVersion_value = map[string]int32{ + "IPv4": 0, + "IPv6": 1, +} + +func (x IPVersion) String() string { + return proto.EnumName(IPVersion_name, int32(x)) +} + +func (IPVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ba09ae1dfdbe03d2, []int{3} +} + type Dns struct { Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` @@ -430,53 +455,178 @@ func (m *NetworkSecurityGroupReference) GetResourceRef() *ResourceReference { return nil } +type PublicIPAddressReference struct { + ResourceRef *ResourceReference `protobuf:"bytes,1,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublicIPAddressReference) Reset() { *m = PublicIPAddressReference{} } +func (m *PublicIPAddressReference) String() string { return proto.CompactTextString(m) } +func (*PublicIPAddressReference) ProtoMessage() {} +func (*PublicIPAddressReference) Descriptor() ([]byte, []int) { + return fileDescriptor_ba09ae1dfdbe03d2, []int{6} +} + +func (m *PublicIPAddressReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicIPAddressReference.Unmarshal(m, b) +} +func (m *PublicIPAddressReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicIPAddressReference.Marshal(b, m, deterministic) +} +func (m *PublicIPAddressReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicIPAddressReference.Merge(m, src) +} +func (m *PublicIPAddressReference) XXX_Size() int { + return xxx_messageInfo_PublicIPAddressReference.Size(m) +} +func (m *PublicIPAddressReference) XXX_DiscardUnknown() { + xxx_messageInfo_PublicIPAddressReference.DiscardUnknown(m) +} + +var xxx_messageInfo_PublicIPAddressReference proto.InternalMessageInfo + +func (m *PublicIPAddressReference) GetResourceRef() *ResourceReference { + if m != nil { + return m.ResourceRef + } + return nil +} + +type ProbeReference struct { + ResourceRef *ResourceReference `protobuf:"bytes,1,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProbeReference) Reset() { *m = ProbeReference{} } +func (m *ProbeReference) String() string { return proto.CompactTextString(m) } +func (*ProbeReference) ProtoMessage() {} +func (*ProbeReference) Descriptor() ([]byte, []int) { + return fileDescriptor_ba09ae1dfdbe03d2, []int{7} +} + +func (m *ProbeReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProbeReference.Unmarshal(m, b) +} +func (m *ProbeReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProbeReference.Marshal(b, m, deterministic) +} +func (m *ProbeReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProbeReference.Merge(m, src) +} +func (m *ProbeReference) XXX_Size() int { + return xxx_messageInfo_ProbeReference.Size(m) +} +func (m *ProbeReference) XXX_DiscardUnknown() { + xxx_messageInfo_ProbeReference.DiscardUnknown(m) +} + +var xxx_messageInfo_ProbeReference proto.InternalMessageInfo + +func (m *ProbeReference) GetResourceRef() *ResourceReference { + if m != nil { + return m.ResourceRef + } + return nil +} + +type SubnetReference struct { + ResourceRef *ResourceReference `protobuf:"bytes,1,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubnetReference) Reset() { *m = SubnetReference{} } +func (m *SubnetReference) String() string { return proto.CompactTextString(m) } +func (*SubnetReference) ProtoMessage() {} +func (*SubnetReference) Descriptor() ([]byte, []int) { + return fileDescriptor_ba09ae1dfdbe03d2, []int{8} +} + +func (m *SubnetReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubnetReference.Unmarshal(m, b) +} +func (m *SubnetReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubnetReference.Marshal(b, m, deterministic) +} +func (m *SubnetReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubnetReference.Merge(m, src) +} +func (m *SubnetReference) XXX_Size() int { + return xxx_messageInfo_SubnetReference.Size(m) +} +func (m *SubnetReference) XXX_DiscardUnknown() { + xxx_messageInfo_SubnetReference.DiscardUnknown(m) +} + +var xxx_messageInfo_SubnetReference proto.InternalMessageInfo + +func (m *SubnetReference) GetResourceRef() *ResourceReference { + if m != nil { + return m.ResourceRef + } + return nil +} + func init() { proto.RegisterEnum("moc.Protocol", Protocol_name, Protocol_value) proto.RegisterEnum("moc.IPAllocationMethod", IPAllocationMethod_name, IPAllocationMethod_value) proto.RegisterEnum("moc.IPPoolType", IPPoolType_name, IPPoolType_value) + proto.RegisterEnum("moc.IPVersion", IPVersion_name, IPVersion_value) proto.RegisterType((*Dns)(nil), "moc.Dns") proto.RegisterType((*IPPoolInfo)(nil), "moc.IPPoolInfo") proto.RegisterType((*IPPool)(nil), "moc.IPPool") proto.RegisterType((*Route)(nil), "moc.Route") proto.RegisterType((*ResourceReference)(nil), "moc.ResourceReference") proto.RegisterType((*NetworkSecurityGroupReference)(nil), "moc.NetworkSecurityGroupReference") + proto.RegisterType((*PublicIPAddressReference)(nil), "moc.PublicIPAddressReference") + proto.RegisterType((*ProbeReference)(nil), "moc.ProbeReference") + proto.RegisterType((*SubnetReference)(nil), "moc.SubnetReference") } func init() { proto.RegisterFile("moc_common_networkcommon.proto", fileDescriptor_ba09ae1dfdbe03d2) } var fileDescriptor_ba09ae1dfdbe03d2 = []byte{ - // 517 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0xf1, 0x6b, 0xd3, 0x40, - 0x14, 0x5e, 0x9a, 0x2c, 0xb3, 0xaf, 0xa8, 0xd9, 0x21, 0x33, 0x88, 0x93, 0x99, 0x21, 0x96, 0x22, - 0x2d, 0x4c, 0x11, 0x11, 0x14, 0x26, 0x03, 0xed, 0x0f, 0x93, 0x92, 0xd5, 0x81, 0xfe, 0x32, 0xae, - 0x97, 0x6b, 0x7b, 0x98, 0xbb, 0x17, 0xee, 0x2e, 0x75, 0xfd, 0xa3, 0xfc, 0x1f, 0xe5, 0x2e, 0xa9, - 0xad, 0xcc, 0xdf, 0xbe, 0xef, 0xbd, 0xef, 0xfb, 0x72, 0xf7, 0xf2, 0x0e, 0x9e, 0x49, 0x64, 0x37, - 0x0c, 0xa5, 0x44, 0x75, 0xa3, 0xb8, 0xfd, 0x85, 0xfa, 0x67, 0xc3, 0x86, 0x95, 0x46, 0x8b, 0x24, - 0x94, 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 0xd7, - 0x97, 0x8d, 0xfc, 0xba, 0x29, 0x27, 0xc1, 0xa7, 0x17, 0x3f, 0x4e, 0x17, 0xc2, 0x2e, 0xeb, 0xd9, - 0x90, 0xa1, 0x1c, 0x49, 0xc1, 0x34, 0x1a, 0x9c, 0xdb, 0x91, 0x44, 0x36, 0xd2, 0x15, 0x1b, 0x35, - 0x4f, 0x62, 0x16, 0xfb, 0x37, 0xf1, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x10, 0x51, - 0xe6, 0x53, 0x03, 0x00, 0x00, + // 577 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xf1, 0x6b, 0xd4, 0x30, + 0x14, 0x5e, 0xaf, 0xdd, 0x6d, 0xf7, 0x0e, 0xb7, 0x2e, 0xc8, 0x2c, 0xe2, 0x74, 0x76, 0x88, 0xe3, + 0x90, 0x3b, 0x98, 0x63, 0x88, 0xa0, 0x30, 0x19, 0x68, 0x95, 0x49, 0xe9, 0xce, 0x81, 0xfe, 0x32, + 0x7a, 0x69, 0xee, 0x16, 0x6c, 0xf2, 0x4a, 0x92, 0x9e, 0xbb, 0x3f, 0xca, 0xff, 0x51, 0x92, 0xf6, + 0xdc, 0x64, 0xfe, 0x78, 0xbf, 0x7d, 0xdf, 0x7b, 0xdf, 0xf7, 0x35, 0x79, 0x4d, 0x02, 0x4f, 0x05, + 0xd2, 0x2b, 0x8a, 0x42, 0xa0, 0xbc, 0x92, 0xcc, 0xfc, 0x42, 0xf5, 0xb3, 0x61, 0xc3, 0x4a, 0xa1, + 0x41, 0xe2, 0x0b, 0xa4, 0x8f, 0x1f, 0xdd, 0x11, 0xdd, 0xed, 0xc6, 0x1c, 0xfc, 0x33, 0xa9, 0x49, + 0x04, 0x1b, 0x9a, 0xa9, 0x39, 0x53, 0x3a, 0xf2, 0xf6, 0xfd, 0xc3, 0x5e, 0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x0d, 0xa7, 0x61, 0x67, 0xf0, 0x7c, 0x79, 0x8d, + 0xec, 0xb1, 0x26, 0x5d, 0xe8, 0x5c, 0x9e, 0x37, 0xf2, 0xcb, 0xa6, 0x1c, 0x7a, 0x83, 0x67, 0xd0, + 0x4b, 0xd2, 0x4b, 0xa6, 0x34, 0x47, 0x49, 0x36, 0x21, 0x48, 0xd2, 0xf9, 0x71, 0xb8, 0xd6, 0xa2, + 0x93, 0xd0, 0xfb, 0xf0, 0xe2, 0xc7, 0xc1, 0x8c, 0x9b, 0xeb, 0x7a, 0x32, 0xa4, 0x28, 0x46, 0x82, + 0x53, 0x85, 0x1a, 0xa7, 0x66, 0x24, 0x90, 0x8e, 0x54, 0x45, 0x47, 0xcd, 0x13, 0x31, 0xe9, 0xba, + 0x37, 0xe2, 0xf5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0x82, 0x7e, 0x02, 0x63, 0x04, 0x00, + 0x00, } diff --git a/rpc/common/moc_common_networkcommon.proto b/rpc/common/moc_common_networkcommon.proto index d4d68b6e..dc3fb361 100644 --- a/rpc/common/moc_common_networkcommon.proto +++ b/rpc/common/moc_common_networkcommon.proto @@ -73,4 +73,8 @@ message PublicIPAddressReference { message ProbeReference { ResourceReference resourceRef = 1; +} + +message SubnetReference { + ResourceReference resourceRef = 1; } \ No newline at end of file From 5528b3f7420f560c18e730cbc19b6f6aa0132655 Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Mon, 1 Jul 2024 11:05:26 -0700 Subject: [PATCH 5/5] Remove read-only references from slb proto --- .../network/loadbalancer/moc_cloudagent_loadbalancer.proto | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto index 219aa1a2..6c315c3a 100644 --- a/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto +++ b/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto @@ -60,7 +60,6 @@ message Probe { uint32 numberOfProbes = 3; Protocol protocol = 4; uint32 port = 5; - repeated LoadBalancingRule loadbalancingrules = 6; //read-only } message FrontEndIpConfiguration { @@ -69,10 +68,6 @@ message FrontEndIpConfiguration { IPAllocationMethod allocationMethod = 3; // required SubnetReference subnetRef = 4; // required if using privateIPAddress. PublicIPAddressReference publicIPAddress = 5; // required if not using privateIP and a subnet. resourceRef to publicIPAddress - - repeated LoadbalancerInboundNatRule inboundNatRules = 6; //read-only - repeated LoadbalancerOutboundNatRule outboundNatRules = 7; //read-only - repeated LoadBalancingRule loadbalancingrules = 8; //read-only } message LoadBalancer {