From 0d7203744286c7765990df322960b079dd425e7f Mon Sep 17 00:00:00 2001 From: mjethwa-msft Date: Wed, 18 Dec 2024 14:31:45 -0800 Subject: [PATCH] Add SDN optionality parameter --- .../moc_cloudagent_networkinterface.pb.go | 216 ++++++++++++------ .../moc_cloudagent_networkinterface.proto | 11 + ...oc_nodeagent_virtualnetworkinterface.pb.go | 194 +++++++++++----- ...oc_nodeagent_virtualnetworkinterface.proto | 11 + 4 files changed, 315 insertions(+), 117 deletions(-) diff --git a/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go b/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go index 7fba0ad4..50ff1638 100644 --- a/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go +++ b/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go @@ -26,6 +26,31 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type PolicyType int32 + +const ( + PolicyType_UNKNOWN PolicyType = 0 + PolicyType_SDN_ALL PolicyType = 1 +) + +var PolicyType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SDN_ALL", +} + +var PolicyType_value = map[string]int32{ + "UNKNOWN": 0, + "SDN_ALL": 1, +} + +func (x PolicyType) String() string { + return proto.EnumName(PolicyType_name, int32(x)) +} + +func (PolicyType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_641284ba8360303c, []int{0} +} + type NetworkInterface_NetworkInterfaceType int32 const ( @@ -48,7 +73,54 @@ func (x NetworkInterface_NetworkInterfaceType) String() string { } func (NetworkInterface_NetworkInterfaceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{6, 0} + return fileDescriptor_641284ba8360303c, []int{7, 0} +} + +type AdvancedNetworkPolicy struct { + Type PolicyType `protobuf:"varint,1,opt,name=type,proto3,enum=moc.cloudagent.network.PolicyType" json:"type,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdvancedNetworkPolicy) Reset() { *m = AdvancedNetworkPolicy{} } +func (m *AdvancedNetworkPolicy) String() string { return proto.CompactTextString(m) } +func (*AdvancedNetworkPolicy) ProtoMessage() {} +func (*AdvancedNetworkPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_641284ba8360303c, []int{0} +} + +func (m *AdvancedNetworkPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdvancedNetworkPolicy.Unmarshal(m, b) +} +func (m *AdvancedNetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdvancedNetworkPolicy.Marshal(b, m, deterministic) +} +func (m *AdvancedNetworkPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdvancedNetworkPolicy.Merge(m, src) +} +func (m *AdvancedNetworkPolicy) XXX_Size() int { + return xxx_messageInfo_AdvancedNetworkPolicy.Size(m) +} +func (m *AdvancedNetworkPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_AdvancedNetworkPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_AdvancedNetworkPolicy proto.InternalMessageInfo + +func (m *AdvancedNetworkPolicy) GetType() PolicyType { + if m != nil { + return m.Type + } + return PolicyType_UNKNOWN +} + +func (m *AdvancedNetworkPolicy) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false } type NetworkInterfaceRequest struct { @@ -63,7 +135,7 @@ func (m *NetworkInterfaceRequest) Reset() { *m = NetworkInterfaceRequest func (m *NetworkInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*NetworkInterfaceRequest) ProtoMessage() {} func (*NetworkInterfaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{0} + return fileDescriptor_641284ba8360303c, []int{1} } func (m *NetworkInterfaceRequest) XXX_Unmarshal(b []byte) error { @@ -111,7 +183,7 @@ func (m *NetworkInterfaceResponse) Reset() { *m = NetworkInterfaceRespon func (m *NetworkInterfaceResponse) String() string { return proto.CompactTextString(m) } func (*NetworkInterfaceResponse) ProtoMessage() {} func (*NetworkInterfaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{1} + return fileDescriptor_641284ba8360303c, []int{2} } func (m *NetworkInterfaceResponse) XXX_Unmarshal(b []byte) error { @@ -164,7 +236,7 @@ func (m *NetworkInterfacePrecheckRequest) Reset() { *m = NetworkInterfac func (m *NetworkInterfacePrecheckRequest) String() string { return proto.CompactTextString(m) } func (*NetworkInterfacePrecheckRequest) ProtoMessage() {} func (*NetworkInterfacePrecheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{2} + return fileDescriptor_641284ba8360303c, []int{3} } func (m *NetworkInterfacePrecheckRequest) XXX_Unmarshal(b []byte) error { @@ -206,7 +278,7 @@ func (m *NetworkInterfacePrecheckResponse) Reset() { *m = NetworkInterfa func (m *NetworkInterfacePrecheckResponse) String() string { return proto.CompactTextString(m) } func (*NetworkInterfacePrecheckResponse) ProtoMessage() {} func (*NetworkInterfacePrecheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{3} + return fileDescriptor_641284ba8360303c, []int{4} } func (m *NetworkInterfacePrecheckResponse) XXX_Unmarshal(b []byte) error { @@ -252,7 +324,7 @@ func (m *InboundNatRule) Reset() { *m = InboundNatRule{} } func (m *InboundNatRule) String() string { return proto.CompactTextString(m) } func (*InboundNatRule) ProtoMessage() {} func (*InboundNatRule) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{4} + return fileDescriptor_641284ba8360303c, []int{5} } func (m *InboundNatRule) XXX_Unmarshal(b []byte) error { @@ -302,7 +374,7 @@ func (m *IpConfiguration) Reset() { *m = IpConfiguration{} } func (m *IpConfiguration) String() string { return proto.CompactTextString(m) } func (*IpConfiguration) ProtoMessage() {} func (*IpConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{5} + return fileDescriptor_641284ba8360303c, []int{6} } func (m *IpConfiguration) XXX_Unmarshal(b []byte) error { @@ -421,6 +493,7 @@ type NetworkInterface struct { VirtualMachineName string `protobuf:"bytes,11,opt,name=virtualMachineName,proto3" json:"virtualMachineName,omitempty"` IovWeight uint32 `protobuf:"varint,12,opt,name=iovWeight,proto3" json:"iovWeight,omitempty"` Tags *common.Tags `protobuf:"bytes,13,opt,name=tags,proto3" json:"tags,omitempty"` + Policies []*AdvancedNetworkPolicy `protobuf:"bytes,14,rep,name=policies,proto3" json:"policies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -430,7 +503,7 @@ func (m *NetworkInterface) Reset() { *m = NetworkInterface{} } func (m *NetworkInterface) String() string { return proto.CompactTextString(m) } func (*NetworkInterface) ProtoMessage() {} func (*NetworkInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_641284ba8360303c, []int{6} + return fileDescriptor_641284ba8360303c, []int{7} } func (m *NetworkInterface) XXX_Unmarshal(b []byte) error { @@ -542,8 +615,17 @@ func (m *NetworkInterface) GetTags() *common.Tags { return nil } +func (m *NetworkInterface) GetPolicies() []*AdvancedNetworkPolicy { + if m != nil { + return m.Policies + } + return nil +} + func init() { + proto.RegisterEnum("moc.cloudagent.network.PolicyType", PolicyType_name, PolicyType_value) proto.RegisterEnum("moc.cloudagent.network.NetworkInterface_NetworkInterfaceType", NetworkInterface_NetworkInterfaceType_name, NetworkInterface_NetworkInterfaceType_value) + proto.RegisterType((*AdvancedNetworkPolicy)(nil), "moc.cloudagent.network.AdvancedNetworkPolicy") proto.RegisterType((*NetworkInterfaceRequest)(nil), "moc.cloudagent.network.NetworkInterfaceRequest") proto.RegisterType((*NetworkInterfaceResponse)(nil), "moc.cloudagent.network.NetworkInterfaceResponse") proto.RegisterType((*NetworkInterfacePrecheckRequest)(nil), "moc.cloudagent.network.NetworkInterfacePrecheckRequest") @@ -558,62 +640,68 @@ func init() { } var fileDescriptor_641284ba8360303c = []byte{ - // 879 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0x5f, 0x27, 0x6e, 0x1a, 0xbf, 0xb4, 0xdd, 0x30, 0x2a, 0xc4, 0x8a, 0xa0, 0x44, 0x66, 0x81, - 0x1c, 0xc0, 0x86, 0x80, 0xb4, 0x7b, 0xe1, 0xb0, 0x05, 0x84, 0x82, 0xd8, 0x52, 0xa6, 0xab, 0x45, - 0x42, 0x48, 0xab, 0x89, 0x3d, 0x71, 0x46, 0xb5, 0x67, 0xcc, 0xcc, 0xb8, 0x25, 0x27, 0x8e, 0xf0, - 0x4d, 0xf8, 0x04, 0xdc, 0xb8, 0xf2, 0x21, 0xf8, 0x36, 0x2b, 0x8f, 0xed, 0xc6, 0xf9, 0x27, 0x75, - 0x0f, 0x7b, 0x4a, 0xe6, 0xbd, 0xdf, 0xfc, 0xe6, 0xbd, 0xf9, 0xfd, 0xde, 0x18, 0x3e, 0x4c, 0x45, - 0xf8, 0x32, 0x4c, 0x44, 0x1e, 0x91, 0x98, 0x72, 0xfd, 0x92, 0x53, 0x7d, 0x2b, 0xe4, 0x35, 0xe3, - 0x9a, 0xca, 0x39, 0x09, 0xa9, 0x9f, 0x49, 0xa1, 0x05, 0x7a, 0x27, 0x15, 0xa1, 0xbf, 0x82, 0xf9, - 0x15, 0x6c, 0x78, 0x16, 0x0b, 0x11, 0x27, 0x34, 0x30, 0xa8, 0x59, 0x3e, 0x0f, 0x6e, 0x25, 0xc9, - 0x32, 0x2a, 0x55, 0xb9, 0x6f, 0x38, 0x30, 0xf4, 0x22, 0x4d, 0x05, 0xaf, 0x7e, 0xaa, 0xc4, 0x59, - 0x23, 0x51, 0x91, 0x35, 0xf3, 0xde, 0xdf, 0x16, 0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xc2, 0x55, 0x0a, 0xf9, 0x80, 0x6e, 0x98, - 0xd4, 0x39, 0x49, 0x9e, 0x91, 0x70, 0xc1, 0x78, 0x59, 0x4c, 0xcf, 0xd0, 0xed, 0xc8, 0x14, 0x65, - 0x31, 0x71, 0xf3, 0x33, 0x65, 0xf1, 0x42, 0x1b, 0x7f, 0x1d, 0xe3, 0x55, 0xe0, 0xce, 0xde, 0xc7, - 0x3b, 0xed, 0xed, 0x7d, 0x0a, 0xa7, 0xbb, 0xa4, 0x42, 0x0e, 0x1c, 0xfc, 0x20, 0x42, 0x92, 0xf4, - 0x1f, 0x20, 0x28, 0xde, 0xc1, 0x54, 0x68, 0xda, 0xb7, 0x26, 0x7f, 0xb6, 0xe0, 0xed, 0x4d, 0xfc, - 0xd3, 0x42, 0x2a, 0x94, 0x42, 0x67, 0xca, 0x6f, 0xc4, 0x35, 0x45, 0xc1, 0xbd, 0x1f, 0xe6, 0xf2, - 0x91, 0x1f, 0x7e, 0x76, 0xff, 0x0d, 0xe5, 0xd3, 0xec, 0x3d, 0x40, 0x7f, 0x40, 0xb7, 0x7e, 0xb0, - 0xd1, 0xe3, 0xfb, 0xee, 0xdf, 0xf8, 0xba, 0x0c, 0x9f, 0xbc, 0xfe, 0xc6, 0xba, 0x80, 0xf3, 0xcf, - 0x7f, 0x09, 0x62, 0xa6, 0x17, 0xf9, 0xcc, 0x0f, 0x45, 0x1a, 0xa4, 0x2c, 0x94, 0x42, 0x89, 0xb9, - 0x0e, 0x52, 0x11, 0x06, 0x32, 0x0b, 0x83, 0x15, 0x6b, 0x50, 0xb1, 0xce, 0x3a, 0xe6, 0xc3, 0xf1, - 0xc5, 0xab, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0xc2, 0xef, 0x0d, 0xf9, 0x08, 0x00, 0x00, + // 971 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x8e, 0x1b, 0x45, + 0x10, 0xce, 0xac, 0xff, 0xcb, 0xbb, 0x8e, 0x69, 0x6d, 0xf0, 0xc8, 0x82, 0xc5, 0x1a, 0x42, 0xb0, + 0x10, 0x19, 0x83, 0x41, 0x24, 0x17, 0x0e, 0xbb, 0x04, 0x21, 0xc3, 0xc6, 0x59, 0x7a, 0x43, 0x22, + 0x21, 0xa4, 0x55, 0x7b, 0xa6, 0x3d, 0x6e, 0xed, 0x4c, 0xf7, 0xd0, 0xd3, 0xb3, 0x8b, 0x4f, 0x1c, + 0xe1, 0xc8, 0x5b, 0xf0, 0x04, 0xdc, 0x78, 0x11, 0xde, 0x06, 0x4d, 0x4f, 0xdb, 0x1e, 0xff, 0x49, + 0x9b, 0x43, 0x4e, 0x76, 0x57, 0x7d, 0xf5, 0x75, 0x55, 0xd7, 0x57, 0x53, 0xf0, 0x51, 0x24, 0xbc, + 0x2b, 0x2f, 0x14, 0xa9, 0x4f, 0x02, 0xca, 0xd5, 0x15, 0xa7, 0xea, 0x56, 0xc8, 0x6b, 0xc6, 0x15, + 0x95, 0x53, 0xe2, 0x51, 0x37, 0x96, 0x42, 0x09, 0xf4, 0x6e, 0x24, 0x3c, 0x77, 0x05, 0x73, 0x0d, + 0xac, 0x7b, 0x12, 0x08, 0x11, 0x84, 0x74, 0xa0, 0x51, 0x93, 0x74, 0x3a, 0xb8, 0x95, 0x24, 0x8e, + 0xa9, 0x4c, 0xf2, 0xb8, 0x6e, 0x47, 0xd3, 0x8b, 0x28, 0x12, 0xdc, 0xfc, 0x18, 0xc7, 0x49, 0xc1, + 0x61, 0xc8, 0x8a, 0x7e, 0x87, 0xc1, 0x83, 0x53, 0xff, 0x86, 0x70, 0x8f, 0xfa, 0xe3, 0xdc, 0x7d, + 0x21, 0x42, 0xe6, 0xcd, 0xd1, 0x57, 0x50, 0x56, 0xf3, 0x98, 0xda, 0x56, 0xcf, 0xea, 0xb7, 0x86, + 0x8e, 0xbb, 0x3b, 0x31, 0x37, 0x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 0x6a, + 0x96, 0x4e, 0x5c, 0x4f, 0x44, 0x83, 0x88, 0x79, 0x52, 0x24, 0x62, 0xaa, 0x06, 0x91, 0xf0, 0x06, + 0x32, 0xf6, 0x06, 0x2b, 0xd6, 0x81, 0x61, 0x9d, 0x54, 0xf5, 0xae, 0xfa, 0xe2, 0xff, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x2b, 0xad, 0x64, 0x49, 0xd7, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/rpc/cloudagent/network/networkinterface/moc_cloudagent_networkinterface.proto b/rpc/cloudagent/network/networkinterface/moc_cloudagent_networkinterface.proto index 90c85f7a..a90d8a21 100644 --- a/rpc/cloudagent/network/networkinterface/moc_cloudagent_networkinterface.proto +++ b/rpc/cloudagent/network/networkinterface/moc_cloudagent_networkinterface.proto @@ -9,6 +9,16 @@ import "google/protobuf/wrappers.proto"; import "moc_common_common.proto"; import "moc_common_networkcommon.proto"; +enum PolicyType { + UNKNOWN = 0; + SDN_ALL = 1; +} + +message AdvancedNetworkPolicy { + PolicyType type = 1; + bool enabled = 2; +} + message NetworkInterfaceRequest { repeated NetworkInterface NetworkInterfaces = 1; Operation OperationType = 2; @@ -70,6 +80,7 @@ message NetworkInterface { string virtualMachineName = 11; uint32 iovWeight = 12; Tags tags = 13; + repeated AdvancedNetworkPolicy policies = 14; } service NetworkInterfaceAgent { diff --git a/rpc/nodeagent/network/moc_nodeagent_virtualnetworkinterface.pb.go b/rpc/nodeagent/network/moc_nodeagent_virtualnetworkinterface.pb.go index 0ab5ccf2..b3270663 100644 --- a/rpc/nodeagent/network/moc_nodeagent_virtualnetworkinterface.pb.go +++ b/rpc/nodeagent/network/moc_nodeagent_virtualnetworkinterface.pb.go @@ -52,6 +52,31 @@ func (NetworkType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_031864a4497d6a65, []int{0} } +type PolicyType int32 + +const ( + PolicyType_UNKNOWN PolicyType = 0 + PolicyType_SDN_ALL PolicyType = 1 +) + +var PolicyType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SDN_ALL", +} + +var PolicyType_value = map[string]int32{ + "UNKNOWN": 0, + "SDN_ALL": 1, +} + +func (x PolicyType) String() string { + return proto.EnumName(PolicyType_name, int32(x)) +} + +func (PolicyType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_031864a4497d6a65, []int{1} +} + type VirtualNetworkInterface_NetworkInterfaceType int32 const ( @@ -74,7 +99,7 @@ func (x VirtualNetworkInterface_NetworkInterfaceType) String() string { } func (VirtualNetworkInterface_NetworkInterfaceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_031864a4497d6a65, []int{3, 0} + return fileDescriptor_031864a4497d6a65, []int{4, 0} } type VirtualNetworkInterfaceRequest struct { @@ -179,6 +204,53 @@ func (m *VirtualNetworkInterfaceResponse) GetError() string { return "" } +type AdvancedNetworkPolicy struct { + Type PolicyType `protobuf:"varint,1,opt,name=type,proto3,enum=moc.nodeagent.network.PolicyType" json:"type,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdvancedNetworkPolicy) Reset() { *m = AdvancedNetworkPolicy{} } +func (m *AdvancedNetworkPolicy) String() string { return proto.CompactTextString(m) } +func (*AdvancedNetworkPolicy) ProtoMessage() {} +func (*AdvancedNetworkPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_031864a4497d6a65, []int{2} +} + +func (m *AdvancedNetworkPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdvancedNetworkPolicy.Unmarshal(m, b) +} +func (m *AdvancedNetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdvancedNetworkPolicy.Marshal(b, m, deterministic) +} +func (m *AdvancedNetworkPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdvancedNetworkPolicy.Merge(m, src) +} +func (m *AdvancedNetworkPolicy) XXX_Size() int { + return xxx_messageInfo_AdvancedNetworkPolicy.Size(m) +} +func (m *AdvancedNetworkPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_AdvancedNetworkPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_AdvancedNetworkPolicy proto.InternalMessageInfo + +func (m *AdvancedNetworkPolicy) GetType() PolicyType { + if m != nil { + return m.Type + } + return PolicyType_UNKNOWN +} + +func (m *AdvancedNetworkPolicy) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + type IpConfiguration struct { Ipaddress string `protobuf:"bytes,1,opt,name=ipaddress,proto3" json:"ipaddress,omitempty"` Prefixlength string `protobuf:"bytes,2,opt,name=prefixlength,proto3" json:"prefixlength,omitempty"` @@ -196,7 +268,7 @@ func (m *IpConfiguration) Reset() { *m = IpConfiguration{} } func (m *IpConfiguration) String() string { return proto.CompactTextString(m) } func (*IpConfiguration) ProtoMessage() {} func (*IpConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_031864a4497d6a65, []int{2} + return fileDescriptor_031864a4497d6a65, []int{3} } func (m *IpConfiguration) XXX_Unmarshal(b []byte) error { @@ -278,6 +350,7 @@ type VirtualNetworkInterface struct { Entity *common.Entity `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"` IovWeight uint32 `protobuf:"varint,10,opt,name=iovWeight,proto3" json:"iovWeight,omitempty"` Tags *common.Tags `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"` + Policies []*AdvancedNetworkPolicy `protobuf:"bytes,12,rep,name=policies,proto3" json:"policies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -287,7 +360,7 @@ func (m *VirtualNetworkInterface) Reset() { *m = VirtualNetworkInterface func (m *VirtualNetworkInterface) String() string { return proto.CompactTextString(m) } func (*VirtualNetworkInterface) ProtoMessage() {} func (*VirtualNetworkInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_031864a4497d6a65, []int{3} + return fileDescriptor_031864a4497d6a65, []int{4} } func (m *VirtualNetworkInterface) XXX_Unmarshal(b []byte) error { @@ -385,11 +458,20 @@ func (m *VirtualNetworkInterface) GetTags() *common.Tags { return nil } +func (m *VirtualNetworkInterface) GetPolicies() []*AdvancedNetworkPolicy { + if m != nil { + return m.Policies + } + return nil +} + func init() { proto.RegisterEnum("moc.nodeagent.network.NetworkType", NetworkType_name, NetworkType_value) + proto.RegisterEnum("moc.nodeagent.network.PolicyType", PolicyType_name, PolicyType_value) proto.RegisterEnum("moc.nodeagent.network.VirtualNetworkInterface_NetworkInterfaceType", VirtualNetworkInterface_NetworkInterfaceType_name, VirtualNetworkInterface_NetworkInterfaceType_value) proto.RegisterType((*VirtualNetworkInterfaceRequest)(nil), "moc.nodeagent.network.VirtualNetworkInterfaceRequest") proto.RegisterType((*VirtualNetworkInterfaceResponse)(nil), "moc.nodeagent.network.VirtualNetworkInterfaceResponse") + proto.RegisterType((*AdvancedNetworkPolicy)(nil), "moc.nodeagent.network.AdvancedNetworkPolicy") proto.RegisterType((*IpConfiguration)(nil), "moc.nodeagent.network.IpConfiguration") proto.RegisterType((*VirtualNetworkInterface)(nil), "moc.nodeagent.network.VirtualNetworkInterface") } @@ -399,56 +481,62 @@ func init() { } var fileDescriptor_031864a4497d6a65 = []byte{ - // 784 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xdd, 0x72, 0xe3, 0x34, - 0x18, 0xad, 0xdb, 0x34, 0x89, 0x3f, 0xb3, 0xdd, 0x22, 0x16, 0x6a, 0xc2, 0x6e, 0xc8, 0x18, 0x86, - 0xc9, 0xc0, 0xe0, 0xec, 0x84, 0x9f, 0xbd, 0x6e, 0xd3, 0x0c, 0x64, 0xe8, 0xa6, 0x8c, 0x36, 0xb4, - 0x33, 0xdc, 0x74, 0x14, 0x5b, 0x71, 0x44, 0x6d, 0xc9, 0x48, 0x72, 0x4b, 0xde, 0x80, 0x67, 0xe0, - 0x21, 0xb8, 0xe3, 0x05, 0x78, 0x09, 0x1e, 0x80, 0x17, 0x61, 0x2c, 0x3b, 0x89, 0x5b, 0xea, 0x8b, - 0xde, 0xec, 0x55, 0xa2, 0x73, 0xce, 0xf7, 0x7b, 0x14, 0x05, 0xbe, 0x48, 0x44, 0x70, 0xc5, 0x45, - 0x48, 0x49, 0x44, 0xb9, 0xbe, 0xba, 0x61, 0x52, 0x67, 0x24, 0xe6, 0x54, 0xdf, 0x0a, 0x79, 0xcd, - 0xb8, 0xa6, 0x72, 0x41, 0x02, 0xea, 0xa7, 0x52, 0x68, 0x81, 0xde, 0x4f, 0x44, 0xe0, 0x6f, 0xc4, - 0x7e, 0xa9, 0xea, 0x74, 0x23, 0x21, 0xa2, 0x98, 0x0e, 0x8c, 0x68, 0x9e, 0x2d, 0x06, 0xb7, 0x92, - 0xa4, 0x29, 0x95, 0xaa, 0x08, 0xeb, 0x7c, 0x74, 0x9f, 0xa7, 0x49, 0xaa, 0x57, 0x25, 0x79, 0x94, - 0x37, 0x10, 0x88, 0x24, 0x11, 0xbc, 0xfc, 0x28, 0x89, 0x17, 0x15, 0x82, 0x0b, 0xcd, 0x16, 0x2c, - 0x20, 0x9a, 0x6d, 0xe8, 0x6e, 0x95, 0x2e, 0x1a, 0xa9, 0x86, 0x7b, 0x7f, 0x5b, 0xd0, 0xbd, 0x28, - 0xa6, 0x99, 0x16, 0xf4, 0x64, 0x3d, 0x0d, 0xa6, 0xbf, 0x66, 0x54, 0x69, 0xf4, 0x0b, 0xb8, 0x35, - 0x0a, 0xe5, 0x5a, 0xbd, 0xbd, 0xbe, 0x33, 0xf4, 0xfd, 0x07, 0x27, 0xf6, 0xeb, 0x12, 0xd7, 0xe6, - 0x43, 0x5f, 0xc3, 0x93, 0xf3, 0x94, 0x4a, 0x33, 0xc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, 0x07, 0x00, 0x00, + // 873 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xdd, 0x72, 0xdb, 0x44, + 0x14, 0x8e, 0x12, 0xc7, 0xb6, 0x8e, 0xda, 0xd4, 0x2c, 0x2d, 0x11, 0xa6, 0x0d, 0x41, 0x30, 0x9d, + 0x4c, 0x01, 0xb9, 0x63, 0x28, 0xbd, 0x76, 0x7e, 0x86, 0x7a, 0xea, 0x2a, 0x9d, 0x4d, 0x9a, 0xcc, + 0x70, 0x93, 0x59, 0x4b, 0x6b, 0x79, 0x89, 0xb4, 0x2b, 0xb4, 0x2b, 0x07, 0xbf, 0x01, 0x4f, 0xc3, + 0x1d, 0x2f, 0xc0, 0x4b, 0xf0, 0x00, 0xf0, 0x20, 0x8c, 0x56, 0xb2, 0xad, 0x04, 0xeb, 0x22, 0x37, + 0x5c, 0xd9, 0x7b, 0xce, 0x77, 0xfe, 0xbe, 0xef, 0x68, 0x17, 0xbe, 0x8e, 0x85, 0x7f, 0xc5, 0x45, + 0x40, 0x49, 0x48, 0xb9, 0xba, 0x9a, 0xb1, 0x54, 0x65, 0x24, 0xe2, 0x54, 0xdd, 0x88, 0xf4, 0x9a, + 0x71, 0x45, 0xd3, 0x09, 0xf1, 0xa9, 0x9b, 0xa4, 0x42, 0x09, 0xf4, 0x24, 0x16, 0xbe, 0xbb, 0x04, + 0xbb, 0x25, 0xaa, 0xbb, 0x17, 0x0a, 0x11, 0x46, 0xb4, 0xa7, 0x41, 0xe3, 0x6c, 0xd2, 0xbb, 0x49, + 0x49, 0x92, 0xd0, 0x54, 0x16, 0x61, 0xdd, 0xcf, 0xee, 0xfa, 0x69, 0x9c, 0xa8, 0x79, 0xe9, 0xdc, + 0xcd, 0x1b, 0xf0, 0x45, 0x1c, 0x0b, 0x5e, 0xfe, 0x94, 0x8e, 0x67, 0x15, 0x07, 0x17, 0x8a, 0x4d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97, 0xa7, 0xf8, 0x6d, 0x67, 0x23, 0x37, 0x8e, 0x4e, 0x7f, 0x1c, 0x1e, 0x55, 0x8c, 0xc6, + 0x8b, 0xe7, 0x00, 0xab, 0xcf, 0x1f, 0x59, 0xd0, 0xfa, 0xe0, 0xbd, 0xf5, 0x4e, 0x2f, 0xbd, 0xce, + 0x46, 0x7e, 0x38, 0x3b, 0xf6, 0xae, 0x06, 0xa3, 0x51, 0xc7, 0xe8, 0xff, 0x6d, 0xc0, 0xd3, 0x9a, + 0x2d, 0x1b, 0xe4, 0x83, 0xa1, 0x39, 0x34, 0x87, 0x7c, 0x26, 0xae, 0x29, 0x7a, 0x75, 0xcf, 0x1b, + 0xb2, 0x78, 0x40, 0xba, 0x3f, 0xdc, 0x37, 0xac, 0xb8, 0xb2, 0x9d, 0x0d, 0xf4, 0x06, 0x3e, 0x3a, + 0x9a, 0x52, 0xff, 0xda, 0xab, 0x3c, 0x6c, 0xe8, 0x93, 0xff, 0xdc, 0xa6, 0x27, 0xf9, 0x43, 0xd9, + 0xfd, 0x54, 0x97, 0xa9, 0x42, 0x57, 0x99, 0x0e, 0x5f, 0xfe, 0xe4, 0x86, 0x4c, 0x4d, 0xb3, 0xb1, + 0xeb, 0x8b, 0xb8, 0x17, 0x33, 0x3f, 0x15, 0x52, 0x4c, 0x54, 0x2f, 0x16, 0x7e, 0x2f, 0x4d, 0xfc, + 0xde, 0xb2, 0xbb, 0x5e, 0xd9, 0xdd, 0xb8, 0xa9, 0xd3, 0x7f, 0xf7, 0x6f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x07, 0xc8, 0x19, 0x50, 0xfb, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/rpc/nodeagent/network/virtualnetworkinterface/moc_nodeagent_virtualnetworkinterface.proto b/rpc/nodeagent/network/virtualnetworkinterface/moc_nodeagent_virtualnetworkinterface.proto index 51762d44..e953a164 100644 --- a/rpc/nodeagent/network/virtualnetworkinterface/moc_nodeagent_virtualnetworkinterface.proto +++ b/rpc/nodeagent/network/virtualnetworkinterface/moc_nodeagent_virtualnetworkinterface.proto @@ -27,6 +27,16 @@ enum NetworkType { LOGICAL_NETWORK = 1; } +enum PolicyType { + UNKNOWN = 0; + SDN_ALL = 1; +} + +message AdvancedNetworkPolicy { + PolicyType type = 1; + bool enabled = 2; +} + message IpConfiguration { string ipaddress = 1 [(sensitive) = true]; string prefixlength = 2; @@ -53,6 +63,7 @@ message VirtualNetworkInterface { Entity entity = 9; uint32 iovWeight = 10; Tags tags = 11; + repeated AdvancedNetworkPolicy policies = 12; } service VirtualNetworkInterfaceAgent {