| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/logical_device.proto |
| |
| package voltha |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| _ "github.com/opencord/voltha-protos/go/common" |
| openflow_13 "github.com/opencord/voltha-protos/go/openflow_13" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type LogicalPortId struct { |
| // unique id of logical device |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // id of the port on the logical device |
| PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LogicalPortId) Reset() { *m = LogicalPortId{} } |
| func (m *LogicalPortId) String() string { return proto.CompactTextString(m) } |
| func (*LogicalPortId) ProtoMessage() {} |
| func (*LogicalPortId) Descriptor() ([]byte, []int) { |
| return fileDescriptor_caf139ab3abc8240, []int{0} |
| } |
| |
| func (m *LogicalPortId) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LogicalPortId.Unmarshal(m, b) |
| } |
| func (m *LogicalPortId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LogicalPortId.Marshal(b, m, deterministic) |
| } |
| func (m *LogicalPortId) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LogicalPortId.Merge(m, src) |
| } |
| func (m *LogicalPortId) XXX_Size() int { |
| return xxx_messageInfo_LogicalPortId.Size(m) |
| } |
| func (m *LogicalPortId) XXX_DiscardUnknown() { |
| xxx_messageInfo_LogicalPortId.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LogicalPortId proto.InternalMessageInfo |
| |
| func (m *LogicalPortId) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *LogicalPortId) GetPortId() string { |
| if m != nil { |
| return m.PortId |
| } |
| return "" |
| } |
| |
| type LogicalPort struct { |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| OfpPort *openflow_13.OfpPort `protobuf:"bytes,2,opt,name=ofp_port,json=ofpPort,proto3" json:"ofp_port,omitempty"` |
| DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` |
| DevicePortNo uint32 `protobuf:"varint,4,opt,name=device_port_no,json=devicePortNo,proto3" json:"device_port_no,omitempty"` |
| RootPort bool `protobuf:"varint,5,opt,name=root_port,json=rootPort,proto3" json:"root_port,omitempty"` |
| OfpPortStats *openflow_13.OfpPortStats `protobuf:"bytes,6,opt,name=ofp_port_stats,json=ofpPortStats,proto3" json:"ofp_port_stats,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LogicalPort) Reset() { *m = LogicalPort{} } |
| func (m *LogicalPort) String() string { return proto.CompactTextString(m) } |
| func (*LogicalPort) ProtoMessage() {} |
| func (*LogicalPort) Descriptor() ([]byte, []int) { |
| return fileDescriptor_caf139ab3abc8240, []int{1} |
| } |
| |
| func (m *LogicalPort) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LogicalPort.Unmarshal(m, b) |
| } |
| func (m *LogicalPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LogicalPort.Marshal(b, m, deterministic) |
| } |
| func (m *LogicalPort) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LogicalPort.Merge(m, src) |
| } |
| func (m *LogicalPort) XXX_Size() int { |
| return xxx_messageInfo_LogicalPort.Size(m) |
| } |
| func (m *LogicalPort) XXX_DiscardUnknown() { |
| xxx_messageInfo_LogicalPort.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LogicalPort proto.InternalMessageInfo |
| |
| func (m *LogicalPort) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *LogicalPort) GetOfpPort() *openflow_13.OfpPort { |
| if m != nil { |
| return m.OfpPort |
| } |
| return nil |
| } |
| |
| func (m *LogicalPort) GetDeviceId() string { |
| if m != nil { |
| return m.DeviceId |
| } |
| return "" |
| } |
| |
| func (m *LogicalPort) GetDevicePortNo() uint32 { |
| if m != nil { |
| return m.DevicePortNo |
| } |
| return 0 |
| } |
| |
| func (m *LogicalPort) GetRootPort() bool { |
| if m != nil { |
| return m.RootPort |
| } |
| return false |
| } |
| |
| func (m *LogicalPort) GetOfpPortStats() *openflow_13.OfpPortStats { |
| if m != nil { |
| return m.OfpPortStats |
| } |
| return nil |
| } |
| |
| type LogicalPorts struct { |
| Items []*LogicalPort `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LogicalPorts) Reset() { *m = LogicalPorts{} } |
| func (m *LogicalPorts) String() string { return proto.CompactTextString(m) } |
| func (*LogicalPorts) ProtoMessage() {} |
| func (*LogicalPorts) Descriptor() ([]byte, []int) { |
| return fileDescriptor_caf139ab3abc8240, []int{2} |
| } |
| |
| func (m *LogicalPorts) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LogicalPorts.Unmarshal(m, b) |
| } |
| func (m *LogicalPorts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LogicalPorts.Marshal(b, m, deterministic) |
| } |
| func (m *LogicalPorts) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LogicalPorts.Merge(m, src) |
| } |
| func (m *LogicalPorts) XXX_Size() int { |
| return xxx_messageInfo_LogicalPorts.Size(m) |
| } |
| func (m *LogicalPorts) XXX_DiscardUnknown() { |
| xxx_messageInfo_LogicalPorts.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LogicalPorts proto.InternalMessageInfo |
| |
| func (m *LogicalPorts) GetItems() []*LogicalPort { |
| if m != nil { |
| return m.Items |
| } |
| return nil |
| } |
| |
| type LogicalDevice struct { |
| // unique id of logical device |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // unique datapath id for the logical device (used by the SDN controller) |
| DatapathId uint64 `protobuf:"varint,2,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"` |
| // device description |
| Desc *openflow_13.OfpDesc `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` |
| // device features |
| SwitchFeatures *openflow_13.OfpSwitchFeatures `protobuf:"bytes,4,opt,name=switch_features,json=switchFeatures,proto3" json:"switch_features,omitempty"` |
| // name of the root device anchoring logical device |
| RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId,proto3" json:"root_device_id,omitempty"` |
| // logical device ports |
| Ports []*LogicalPort `protobuf:"bytes,128,rep,name=ports,proto3" json:"ports,omitempty"` |
| // flows configured on the logical device |
| Flows *openflow_13.Flows `protobuf:"bytes,129,opt,name=flows,proto3" json:"flows,omitempty"` |
| // flow groups configured on the logical device |
| FlowGroups *openflow_13.FlowGroups `protobuf:"bytes,130,opt,name=flow_groups,json=flowGroups,proto3" json:"flow_groups,omitempty"` |
| // meters configured on the logical device |
| Meters *openflow_13.Meters `protobuf:"bytes,131,opt,name=meters,proto3" json:"meters,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LogicalDevice) Reset() { *m = LogicalDevice{} } |
| func (m *LogicalDevice) String() string { return proto.CompactTextString(m) } |
| func (*LogicalDevice) ProtoMessage() {} |
| func (*LogicalDevice) Descriptor() ([]byte, []int) { |
| return fileDescriptor_caf139ab3abc8240, []int{3} |
| } |
| |
| func (m *LogicalDevice) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LogicalDevice.Unmarshal(m, b) |
| } |
| func (m *LogicalDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LogicalDevice.Marshal(b, m, deterministic) |
| } |
| func (m *LogicalDevice) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LogicalDevice.Merge(m, src) |
| } |
| func (m *LogicalDevice) XXX_Size() int { |
| return xxx_messageInfo_LogicalDevice.Size(m) |
| } |
| func (m *LogicalDevice) XXX_DiscardUnknown() { |
| xxx_messageInfo_LogicalDevice.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LogicalDevice proto.InternalMessageInfo |
| |
| func (m *LogicalDevice) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *LogicalDevice) GetDatapathId() uint64 { |
| if m != nil { |
| return m.DatapathId |
| } |
| return 0 |
| } |
| |
| func (m *LogicalDevice) GetDesc() *openflow_13.OfpDesc { |
| if m != nil { |
| return m.Desc |
| } |
| return nil |
| } |
| |
| func (m *LogicalDevice) GetSwitchFeatures() *openflow_13.OfpSwitchFeatures { |
| if m != nil { |
| return m.SwitchFeatures |
| } |
| return nil |
| } |
| |
| func (m *LogicalDevice) GetRootDeviceId() string { |
| if m != nil { |
| return m.RootDeviceId |
| } |
| return "" |
| } |
| |
| func (m *LogicalDevice) GetPorts() []*LogicalPort { |
| if m != nil { |
| return m.Ports |
| } |
| return nil |
| } |
| |
| func (m *LogicalDevice) GetFlows() *openflow_13.Flows { |
| if m != nil { |
| return m.Flows |
| } |
| return nil |
| } |
| |
| func (m *LogicalDevice) GetFlowGroups() *openflow_13.FlowGroups { |
| if m != nil { |
| return m.FlowGroups |
| } |
| return nil |
| } |
| |
| func (m *LogicalDevice) GetMeters() *openflow_13.Meters { |
| if m != nil { |
| return m.Meters |
| } |
| return nil |
| } |
| |
| type LogicalDevices struct { |
| Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *LogicalDevices) Reset() { *m = LogicalDevices{} } |
| func (m *LogicalDevices) String() string { return proto.CompactTextString(m) } |
| func (*LogicalDevices) ProtoMessage() {} |
| func (*LogicalDevices) Descriptor() ([]byte, []int) { |
| return fileDescriptor_caf139ab3abc8240, []int{4} |
| } |
| |
| func (m *LogicalDevices) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_LogicalDevices.Unmarshal(m, b) |
| } |
| func (m *LogicalDevices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_LogicalDevices.Marshal(b, m, deterministic) |
| } |
| func (m *LogicalDevices) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_LogicalDevices.Merge(m, src) |
| } |
| func (m *LogicalDevices) XXX_Size() int { |
| return xxx_messageInfo_LogicalDevices.Size(m) |
| } |
| func (m *LogicalDevices) XXX_DiscardUnknown() { |
| xxx_messageInfo_LogicalDevices.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_LogicalDevices proto.InternalMessageInfo |
| |
| func (m *LogicalDevices) GetItems() []*LogicalDevice { |
| if m != nil { |
| return m.Items |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*LogicalPortId)(nil), "voltha.LogicalPortId") |
| proto.RegisterType((*LogicalPort)(nil), "voltha.LogicalPort") |
| proto.RegisterType((*LogicalPorts)(nil), "voltha.LogicalPorts") |
| proto.RegisterType((*LogicalDevice)(nil), "voltha.LogicalDevice") |
| proto.RegisterType((*LogicalDevices)(nil), "voltha.LogicalDevices") |
| } |
| |
| func init() { proto.RegisterFile("voltha_protos/logical_device.proto", fileDescriptor_caf139ab3abc8240) } |
| |
| var fileDescriptor_caf139ab3abc8240 = []byte{ |
| // 532 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xcd, 0x6a, 0xdb, 0x40, |
| 0x10, 0xae, 0x6c, 0xcb, 0xb1, 0x47, 0x8e, 0x0b, 0x1b, 0x42, 0x44, 0xd2, 0x12, 0x23, 0x7a, 0x70, |
| 0x08, 0xb1, 0x53, 0x9b, 0x42, 0x7b, 0x28, 0xb4, 0x26, 0xa4, 0x18, 0xda, 0x52, 0xb6, 0xb7, 0x5e, |
| 0xc4, 0x46, 0x5a, 0xcb, 0x02, 0xdb, 0x23, 0xb4, 0xeb, 0xe4, 0xda, 0x9f, 0xd7, 0xea, 0x2b, 0xf4, |
| 0x25, 0xfa, 0x08, 0x3d, 0xf4, 0x5c, 0x76, 0x56, 0x4a, 0xad, 0x38, 0x39, 0xea, 0xfb, 0x99, 0xf9, |
| 0xf6, 0x1b, 0x04, 0xc1, 0x35, 0x2e, 0xf4, 0x5c, 0x84, 0x59, 0x8e, 0x1a, 0xd5, 0x70, 0x81, 0x49, |
| 0x1a, 0x89, 0x45, 0x18, 0xcb, 0xeb, 0x34, 0x92, 0x03, 0x42, 0x59, 0xd3, 0x6a, 0x0e, 0x9f, 0x24, |
| 0x88, 0xc9, 0x42, 0x0e, 0x45, 0x96, 0x0e, 0xc5, 0x6a, 0x85, 0x5a, 0xe8, 0x14, 0x57, 0xca, 0xaa, |
| 0x0e, 0xfd, 0xea, 0xa4, 0xa5, 0xd4, 0xa2, 0x60, 0x8e, 0xab, 0x0c, 0x66, 0x72, 0x35, 0x5b, 0xe0, |
| 0x4d, 0xf8, 0x7c, 0x6c, 0x05, 0xc1, 0x4b, 0xd8, 0x7d, 0x6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