diff --git a/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go b/rpc/cloudagent/network/moc_cloudagent_networkinterface.pb.go index dfa59e7b..5d276d8f 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 { @@ -303,7 +375,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 { @@ -429,6 +501,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:"-"` @@ -438,7 +511,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 { @@ -550,8 +623,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") @@ -566,64 +648,70 @@ func init() { } var fileDescriptor_641284ba8360303c = []byte{ - // 901 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4d, 0x6f, 0xe3, 0x44, - 0x18, 0xde, 0x7c, 0x36, 0x79, 0xd3, 0x66, 0xc3, 0xa8, 0x10, 0x2b, 0x62, 0x4b, 0x64, 0x16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f, 0x5c, 0xf8, 0x4b, 0x83, 0xe3, 0x7a, 0x42, - 0xd7, 0x86, 0xfb, 0x6d, 0x39, 0xd9, 0xbb, 0x2d, 0xf6, 0x27, 0x70, 0xba, 0xaf, 0x55, 0xa4, 0x0d, - 0x8d, 0xef, 0x95, 0xcb, 0x82, 0xde, 0x23, 0x02, 0xe9, 0xb3, 0x1a, 0x2a, 0xc3, 0x7b, 0x95, 0xc9, - 0x1f, 0x55, 0x78, 0x7b, 0x9b, 0x7f, 0x9e, 0xb6, 0x8a, 0x84, 0xd0, 0x9c, 0xca, 0x5b, 0x75, 0xc3, - 0xc9, 0xf8, 0xc1, 0xef, 0x7c, 0xf6, 0xcd, 0x18, 0x7c, 0xfa, 0x70, 0x87, 0xec, 0xa5, 0xb7, 0x1f, - 0x91, 0xdf, 0xa1, 0x55, 0xbc, 0xff, 0xe4, 0xd9, 0x43, 0xfd, 0xb7, 0x3e, 0x56, 0x83, 0xe7, 0xaf, - 0xef, 0x58, 0x04, 0x70, 0xf1, 0xd9, 0xcf, 0x63, 0x5f, 0x98, 0x65, 0x32, 0x77, 0x5c, 0x15, 0x8e, - 0x43, 0xe1, 0x6a, 0x15, 0xab, 0x85, 0x19, 0x87, 0xca, 0x1d, 0xeb, 0xc8, 0x1d, 0xaf, 0x55, 0xc7, - 0xb9, 0xea, 0xbc, 0x89, 0xdf, 0xa1, 0xcf, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x79, 0xdc, - 0x25, 0x48, 0x09, 0x00, 0x00, + // 999 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6e, 0x23, 0xc5, + 0x13, 0xce, 0x24, 0xb6, 0x63, 0x97, 0x13, 0xaf, 0x7f, 0xad, 0xec, 0x2f, 0x23, 0x8b, 0x0d, 0xd6, + 0xb0, 0x2c, 0x16, 0x62, 0xc7, 0x60, 0x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 0x3a, 0x7f, 0x59, 0x70, + 0x6a, 0xee, 0x18, 0xcc, 0xcb, 0xc6, 0xf4, 0x97, 0x94, 0x26, 0x0a, 0xbd, 0x86, 0xff, 0xad, 0xbb, + 0x12, 0xdb, 0x6a, 0x1f, 0x74, 0xea, 0xbd, 0xce, 0xae, 0xab, 0x37, 0xb8, 0x36, 0x29, 0xd0, 0x17, + 0x70, 0xfc, 0x32, 0xa6, 0x92, 0x28, 0x26, 0x78, 0x96, 0xa4, 0xce, 0xa9, 0xd1, 0x6b, 0x68, 0xce, + 0x85, 0x07, 0xaf, 0x82, 0x9c, 0x7f, 0x2d, 0xb0, 0x37, 0x33, 0x4d, 0x62, 0xc1, 0x13, 0xfa, 0xce, + 0x52, 0xed, 0x41, 0x05, 0xd3, 0x24, 0x0d, 0x95, 0xce, 0xb1, 0xde, 0x6b, 0xb9, 0x79, 0xcf, 0xdd, + 0x79, 0xcf, 0xdd, 0x73, 0x21, 0xc2, 0xd7, 0x24, 0x4c, 0x29, 0x36, 0x48, 0x74, 0x02, 0xe5, 0x6f, + 0xa4, 0x14, 0xd2, 0x3e, 0x68, 0x5b, 0x9d, 0x1a, 0xce, 0x0f, 0xce, 0x0c, 0xde, 0x5f, 0xa7, 0x1f, + 0x49, 0xea, 0x4d, 0xa9, 0x77, 0xf3, 0x8e, 0xdf, 0xdb, 0x09, 0xa1, 0xbd, 0xfb, 0x6a, 0xf3, 0x80, + 0xcb, 0x42, 0xad, 0xb7, 0x2f, 0x74, 0xbf, 0x58, 0xe8, 0x63, 0x68, 0x0c, 0xf8, 0x58, 0xa4, 0xdc, + 0x1f, 0x12, 0x85, 0xd3, 0x90, 0x22, 0x04, 0x25, 0x4e, 0xa2, 0x7c, 0x6a, 0x6b, 0x58, 0xff, 0x77, + 0xfe, 0x2e, 0xc3, 0x83, 0x41, 0xfc, 0xb5, 0xe0, 0x13, 0x16, 0xa4, 0x79, 0x97, 0x91, 0x03, 0x35, + 0x16, 0x13, 0xdf, 0x97, 0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, 0xe7, 0x09, 0x9c, 0x7f, 0xf6, 0x53, 0x37, 0x60, 0x6a, 0x9a, 0x8e, 0x5d, 0x4f, + 0x44, 0xdd, 0x88, 0x79, 0x52, 0x24, 0x62, 0xa2, 0xba, 0x91, 0xf0, 0xba, 0x32, 0xf6, 0xba, 0x4b, + 0xd6, 0xae, 0x61, 0x1d, 0x57, 0xf4, 0xea, 0xfb, 0xfc, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x41, + 0x7b, 0x66, 0x29, 0x26, 0x0a, 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 6ed0b50c..23fa62bb 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; @@ -71,6 +81,7 @@ message NetworkInterface { string virtualMachineName = 11; uint32 iovWeight = 12; Tags tags = 13; + repeated AdvancedNetworkPolicy policies = 14; } service NetworkInterfaceAgent {