blob: 899add7ffa78e2b54e117c3f728dd56b05b2f215 [file] [log] [blame]
/*
* Copyright 2017-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Code generated by protoc-gen-go.
// source: logical_device.proto
// DO NOT EDIT!
/*
Package voltha is a generated protocol buffer package.
It is generated from these files:
logical_device.proto
It has these top-level messages:
LogicalPort
LogicalPorts
LogicalDevice
LogicalDevices
*/
package logical_device
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import openflow_13 "github.com/opencord/voltha/netconf/translator/voltha/openflow_13"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type LogicalPort struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
OfpPort *openflow_13.OfpPort `protobuf:"bytes,2,opt,name=ofp_port,json=ofpPort" json:"ofp_port,omitempty"`
DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId" json:"device_id,omitempty"`
DevicePortNo uint32 `protobuf:"varint,4,opt,name=device_port_no,json=devicePortNo" json:"device_port_no,omitempty"`
RootPort bool `protobuf:"varint,5,opt,name=root_port,json=rootPort" json:"root_port,omitempty"`
}
func (m *LogicalPort) Reset() { *m = LogicalPort{} }
func (m *LogicalPort) String() string { return proto.CompactTextString(m) }
func (*LogicalPort) ProtoMessage() {}
func (*LogicalPort) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
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
}
type LogicalPorts struct {
Items []*LogicalPort `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
func (m *LogicalPorts) Reset() { *m = LogicalPorts{} }
func (m *LogicalPorts) String() string { return proto.CompactTextString(m) }
func (*LogicalPorts) ProtoMessage() {}
func (*LogicalPorts) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
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" 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" json:"datapath_id,omitempty"`
// device description
Desc *openflow_13.OfpDesc `protobuf:"bytes,3,opt,name=desc" json:"desc,omitempty"`
// device features
SwitchFeatures *openflow_13.OfpSwitchFeatures `protobuf:"bytes,4,opt,name=switch_features,json=switchFeatures" json:"switch_features,omitempty"`
// name of the root device anchoring logical device
RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId" json:"root_device_id,omitempty"`
// logical device ports
Ports []*LogicalPort `protobuf:"bytes,128,rep,name=ports" json:"ports,omitempty"`
// flows configured on the logical device
Flows *openflow_13.Flows `protobuf:"bytes,129,opt,name=flows" json:"flows,omitempty"`
// flow groups configured on the logical device
FlowGroups *openflow_13.FlowGroups `protobuf:"bytes,130,opt,name=flow_groups,json=flowGroups" json:"flow_groups,omitempty"`
}
func (m *LogicalDevice) Reset() { *m = LogicalDevice{} }
func (m *LogicalDevice) String() string { return proto.CompactTextString(m) }
func (*LogicalDevice) ProtoMessage() {}
func (*LogicalDevice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
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
}
type LogicalDevices struct {
Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
func (m *LogicalDevices) Reset() { *m = LogicalDevices{} }
func (m *LogicalDevices) String() string { return proto.CompactTextString(m) }
func (*LogicalDevices) ProtoMessage() {}
func (*LogicalDevices) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *LogicalDevices) GetItems() []*LogicalDevice {
if m != nil {
return m.Items
}
return nil
}
func init() {
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("logical_device.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 438 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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