| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/openflow_13.proto |
| |
| package openflow_13 |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| _ "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 |
| |
| // Port numbering. Ports are numbered starting from 1. |
| type OfpPortNo int32 |
| |
| const ( |
| OfpPortNo_OFPP_INVALID OfpPortNo = 0 |
| // Maximum number of physical and logical switch ports. |
| OfpPortNo_OFPP_MAX OfpPortNo = 2147483392 |
| // Reserved OpenFlow Port (fake output "ports"). |
| OfpPortNo_OFPP_IN_PORT OfpPortNo = 2147483640 |
| OfpPortNo_OFPP_TABLE OfpPortNo = 2147483641 |
| OfpPortNo_OFPP_NORMAL OfpPortNo = 2147483642 |
| OfpPortNo_OFPP_FLOOD OfpPortNo = 2147483643 |
| OfpPortNo_OFPP_ALL OfpPortNo = 2147483644 |
| OfpPortNo_OFPP_CONTROLLER OfpPortNo = 2147483645 |
| OfpPortNo_OFPP_LOCAL OfpPortNo = 2147483646 |
| OfpPortNo_OFPP_ANY OfpPortNo = 2147483647 |
| ) |
| |
| var OfpPortNo_name = map[int32]string{ |
| 0: "OFPP_INVALID", |
| 2147483392: "OFPP_MAX", |
| 2147483640: "OFPP_IN_PORT", |
| 2147483641: "OFPP_TABLE", |
| 2147483642: "OFPP_NORMAL", |
| 2147483643: "OFPP_FLOOD", |
| 2147483644: "OFPP_ALL", |
| 2147483645: "OFPP_CONTROLLER", |
| 2147483646: "OFPP_LOCAL", |
| 2147483647: "OFPP_ANY", |
| } |
| |
| var OfpPortNo_value = map[string]int32{ |
| "OFPP_INVALID": 0, |
| "OFPP_MAX": 2147483392, |
| "OFPP_IN_PORT": 2147483640, |
| "OFPP_TABLE": 2147483641, |
| "OFPP_NORMAL": 2147483642, |
| "OFPP_FLOOD": 2147483643, |
| "OFPP_ALL": 2147483644, |
| "OFPP_CONTROLLER": 2147483645, |
| "OFPP_LOCAL": 2147483646, |
| "OFPP_ANY": 2147483647, |
| } |
| |
| func (x OfpPortNo) String() string { |
| return proto.EnumName(OfpPortNo_name, int32(x)) |
| } |
| |
| func (OfpPortNo) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{0} |
| } |
| |
| type OfpType int32 |
| |
| const ( |
| // Immutable messages. |
| OfpType_OFPT_HELLO OfpType = 0 |
| OfpType_OFPT_ERROR OfpType = 1 |
| OfpType_OFPT_ECHO_REQUEST OfpType = 2 |
| OfpType_OFPT_ECHO_REPLY OfpType = 3 |
| OfpType_OFPT_EXPERIMENTER OfpType = 4 |
| // Switch configuration messages. |
| OfpType_OFPT_FEATURES_REQUEST OfpType = 5 |
| OfpType_OFPT_FEATURES_REPLY OfpType = 6 |
| OfpType_OFPT_GET_CONFIG_REQUEST OfpType = 7 |
| OfpType_OFPT_GET_CONFIG_REPLY OfpType = 8 |
| OfpType_OFPT_SET_CONFIG OfpType = 9 |
| // Asynchronous messages. |
| OfpType_OFPT_PACKET_IN OfpType = 10 |
| OfpType_OFPT_FLOW_REMOVED OfpType = 11 |
| OfpType_OFPT_PORT_STATUS OfpType = 12 |
| // Controller command messages. |
| OfpType_OFPT_PACKET_OUT OfpType = 13 |
| OfpType_OFPT_FLOW_MOD OfpType = 14 |
| OfpType_OFPT_GROUP_MOD OfpType = 15 |
| OfpType_OFPT_PORT_MOD OfpType = 16 |
| OfpType_OFPT_TABLE_MOD OfpType = 17 |
| // Multipart messages. |
| OfpType_OFPT_MULTIPART_REQUEST OfpType = 18 |
| OfpType_OFPT_MULTIPART_REPLY OfpType = 19 |
| // Barrier messages. |
| OfpType_OFPT_BARRIER_REQUEST OfpType = 20 |
| OfpType_OFPT_BARRIER_REPLY OfpType = 21 |
| // Queue Configuration messages. |
| OfpType_OFPT_QUEUE_GET_CONFIG_REQUEST OfpType = 22 |
| OfpType_OFPT_QUEUE_GET_CONFIG_REPLY OfpType = 23 |
| // Controller role change request messages. |
| OfpType_OFPT_ROLE_REQUEST OfpType = 24 |
| OfpType_OFPT_ROLE_REPLY OfpType = 25 |
| // Asynchronous message configuration. |
| OfpType_OFPT_GET_ASYNC_REQUEST OfpType = 26 |
| OfpType_OFPT_GET_ASYNC_REPLY OfpType = 27 |
| OfpType_OFPT_SET_ASYNC OfpType = 28 |
| // Meters and rate limiters configuration messages. |
| OfpType_OFPT_METER_MOD OfpType = 29 |
| ) |
| |
| var OfpType_name = map[int32]string{ |
| 0: "OFPT_HELLO", |
| 1: "OFPT_ERROR", |
| 2: "OFPT_ECHO_REQUEST", |
| 3: "OFPT_ECHO_REPLY", |
| 4: "OFPT_EXPERIMENTER", |
| 5: "OFPT_FEATURES_REQUEST", |
| 6: "OFPT_FEATURES_REPLY", |
| 7: "OFPT_GET_CONFIG_REQUEST", |
| 8: "OFPT_GET_CONFIG_REPLY", |
| 9: "OFPT_SET_CONFIG", |
| 10: "OFPT_PACKET_IN", |
| 11: "OFPT_FLOW_REMOVED", |
| 12: "OFPT_PORT_STATUS", |
| 13: "OFPT_PACKET_OUT", |
| 14: "OFPT_FLOW_MOD", |
| 15: "OFPT_GROUP_MOD", |
| 16: "OFPT_PORT_MOD", |
| 17: "OFPT_TABLE_MOD", |
| 18: "OFPT_MULTIPART_REQUEST", |
| 19: "OFPT_MULTIPART_REPLY", |
| 20: "OFPT_BARRIER_REQUEST", |
| 21: "OFPT_BARRIER_REPLY", |
| 22: "OFPT_QUEUE_GET_CONFIG_REQUEST", |
| 23: "OFPT_QUEUE_GET_CONFIG_REPLY", |
| 24: "OFPT_ROLE_REQUEST", |
| 25: "OFPT_ROLE_REPLY", |
| 26: "OFPT_GET_ASYNC_REQUEST", |
| 27: "OFPT_GET_ASYNC_REPLY", |
| 28: "OFPT_SET_ASYNC", |
| 29: "OFPT_METER_MOD", |
| } |
| |
| var OfpType_value = map[string]int32{ |
| "OFPT_HELLO": 0, |
| "OFPT_ERROR": 1, |
| "OFPT_ECHO_REQUEST": 2, |
| "OFPT_ECHO_REPLY": 3, |
| "OFPT_EXPERIMENTER": 4, |
| "OFPT_FEATURES_REQUEST": 5, |
| "OFPT_FEATURES_REPLY": 6, |
| "OFPT_GET_CONFIG_REQUEST": 7, |
| "OFPT_GET_CONFIG_REPLY": 8, |
| "OFPT_SET_CONFIG": 9, |
| "OFPT_PACKET_IN": 10, |
| "OFPT_FLOW_REMOVED": 11, |
| "OFPT_PORT_STATUS": 12, |
| "OFPT_PACKET_OUT": 13, |
| "OFPT_FLOW_MOD": 14, |
| "OFPT_GROUP_MOD": 15, |
| "OFPT_PORT_MOD": 16, |
| "OFPT_TABLE_MOD": 17, |
| "OFPT_MULTIPART_REQUEST": 18, |
| "OFPT_MULTIPART_REPLY": 19, |
| "OFPT_BARRIER_REQUEST": 20, |
| "OFPT_BARRIER_REPLY": 21, |
| "OFPT_QUEUE_GET_CONFIG_REQUEST": 22, |
| "OFPT_QUEUE_GET_CONFIG_REPLY": 23, |
| "OFPT_ROLE_REQUEST": 24, |
| "OFPT_ROLE_REPLY": 25, |
| "OFPT_GET_ASYNC_REQUEST": 26, |
| "OFPT_GET_ASYNC_REPLY": 27, |
| "OFPT_SET_ASYNC": 28, |
| "OFPT_METER_MOD": 29, |
| } |
| |
| func (x OfpType) String() string { |
| return proto.EnumName(OfpType_name, int32(x)) |
| } |
| |
| func (OfpType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{1} |
| } |
| |
| // Hello elements types. |
| type OfpHelloElemType int32 |
| |
| const ( |
| OfpHelloElemType_OFPHET_INVALID OfpHelloElemType = 0 |
| OfpHelloElemType_OFPHET_VERSIONBITMAP OfpHelloElemType = 1 |
| ) |
| |
| var OfpHelloElemType_name = map[int32]string{ |
| 0: "OFPHET_INVALID", |
| 1: "OFPHET_VERSIONBITMAP", |
| } |
| |
| var OfpHelloElemType_value = map[string]int32{ |
| "OFPHET_INVALID": 0, |
| "OFPHET_VERSIONBITMAP": 1, |
| } |
| |
| func (x OfpHelloElemType) String() string { |
| return proto.EnumName(OfpHelloElemType_name, int32(x)) |
| } |
| |
| func (OfpHelloElemType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{2} |
| } |
| |
| type OfpConfigFlags int32 |
| |
| const ( |
| // Handling of IP fragments. |
| OfpConfigFlags_OFPC_FRAG_NORMAL OfpConfigFlags = 0 |
| OfpConfigFlags_OFPC_FRAG_DROP OfpConfigFlags = 1 |
| OfpConfigFlags_OFPC_FRAG_REASM OfpConfigFlags = 2 |
| OfpConfigFlags_OFPC_FRAG_MASK OfpConfigFlags = 3 |
| ) |
| |
| var OfpConfigFlags_name = map[int32]string{ |
| 0: "OFPC_FRAG_NORMAL", |
| 1: "OFPC_FRAG_DROP", |
| 2: "OFPC_FRAG_REASM", |
| 3: "OFPC_FRAG_MASK", |
| } |
| |
| var OfpConfigFlags_value = map[string]int32{ |
| "OFPC_FRAG_NORMAL": 0, |
| "OFPC_FRAG_DROP": 1, |
| "OFPC_FRAG_REASM": 2, |
| "OFPC_FRAG_MASK": 3, |
| } |
| |
| func (x OfpConfigFlags) String() string { |
| return proto.EnumName(OfpConfigFlags_name, int32(x)) |
| } |
| |
| func (OfpConfigFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{3} |
| } |
| |
| // Flags to configure the table. Reserved for future use. |
| type OfpTableConfig int32 |
| |
| const ( |
| OfpTableConfig_OFPTC_INVALID OfpTableConfig = 0 |
| OfpTableConfig_OFPTC_DEPRECATED_MASK OfpTableConfig = 3 |
| ) |
| |
| var OfpTableConfig_name = map[int32]string{ |
| 0: "OFPTC_INVALID", |
| 3: "OFPTC_DEPRECATED_MASK", |
| } |
| |
| var OfpTableConfig_value = map[string]int32{ |
| "OFPTC_INVALID": 0, |
| "OFPTC_DEPRECATED_MASK": 3, |
| } |
| |
| func (x OfpTableConfig) String() string { |
| return proto.EnumName(OfpTableConfig_name, int32(x)) |
| } |
| |
| func (OfpTableConfig) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{4} |
| } |
| |
| // Table numbering. Tables can use any number up to OFPT_MAX. |
| type OfpTable int32 |
| |
| const ( |
| OfpTable_OFPTT_INVALID OfpTable = 0 |
| // Last usable table number. |
| OfpTable_OFPTT_MAX OfpTable = 254 |
| // Fake tables. |
| OfpTable_OFPTT_ALL OfpTable = 255 |
| ) |
| |
| var OfpTable_name = map[int32]string{ |
| 0: "OFPTT_INVALID", |
| 254: "OFPTT_MAX", |
| 255: "OFPTT_ALL", |
| } |
| |
| var OfpTable_value = map[string]int32{ |
| "OFPTT_INVALID": 0, |
| "OFPTT_MAX": 254, |
| "OFPTT_ALL": 255, |
| } |
| |
| func (x OfpTable) String() string { |
| return proto.EnumName(OfpTable_name, int32(x)) |
| } |
| |
| func (OfpTable) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{5} |
| } |
| |
| // Capabilities supported by the datapath. |
| type OfpCapabilities int32 |
| |
| const ( |
| OfpCapabilities_OFPC_INVALID OfpCapabilities = 0 |
| OfpCapabilities_OFPC_FLOW_STATS OfpCapabilities = 1 |
| OfpCapabilities_OFPC_TABLE_STATS OfpCapabilities = 2 |
| OfpCapabilities_OFPC_PORT_STATS OfpCapabilities = 4 |
| OfpCapabilities_OFPC_GROUP_STATS OfpCapabilities = 8 |
| OfpCapabilities_OFPC_IP_REASM OfpCapabilities = 32 |
| OfpCapabilities_OFPC_QUEUE_STATS OfpCapabilities = 64 |
| OfpCapabilities_OFPC_PORT_BLOCKED OfpCapabilities = 256 |
| ) |
| |
| var OfpCapabilities_name = map[int32]string{ |
| 0: "OFPC_INVALID", |
| 1: "OFPC_FLOW_STATS", |
| 2: "OFPC_TABLE_STATS", |
| 4: "OFPC_PORT_STATS", |
| 8: "OFPC_GROUP_STATS", |
| 32: "OFPC_IP_REASM", |
| 64: "OFPC_QUEUE_STATS", |
| 256: "OFPC_PORT_BLOCKED", |
| } |
| |
| var OfpCapabilities_value = map[string]int32{ |
| "OFPC_INVALID": 0, |
| "OFPC_FLOW_STATS": 1, |
| "OFPC_TABLE_STATS": 2, |
| "OFPC_PORT_STATS": 4, |
| "OFPC_GROUP_STATS": 8, |
| "OFPC_IP_REASM": 32, |
| "OFPC_QUEUE_STATS": 64, |
| "OFPC_PORT_BLOCKED": 256, |
| } |
| |
| func (x OfpCapabilities) String() string { |
| return proto.EnumName(OfpCapabilities_name, int32(x)) |
| } |
| |
| func (OfpCapabilities) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{6} |
| } |
| |
| // Flags to indicate behavior of the physical port. These flags are |
| // used in ofp_port to describe the current configuration. They are |
| // used in the ofp_port_mod message to configure the port's behavior. |
| type OfpPortConfig int32 |
| |
| const ( |
| OfpPortConfig_OFPPC_INVALID OfpPortConfig = 0 |
| OfpPortConfig_OFPPC_PORT_DOWN OfpPortConfig = 1 |
| OfpPortConfig_OFPPC_NO_RECV OfpPortConfig = 4 |
| OfpPortConfig_OFPPC_NO_FWD OfpPortConfig = 32 |
| OfpPortConfig_OFPPC_NO_PACKET_IN OfpPortConfig = 64 |
| ) |
| |
| var OfpPortConfig_name = map[int32]string{ |
| 0: "OFPPC_INVALID", |
| 1: "OFPPC_PORT_DOWN", |
| 4: "OFPPC_NO_RECV", |
| 32: "OFPPC_NO_FWD", |
| 64: "OFPPC_NO_PACKET_IN", |
| } |
| |
| var OfpPortConfig_value = map[string]int32{ |
| "OFPPC_INVALID": 0, |
| "OFPPC_PORT_DOWN": 1, |
| "OFPPC_NO_RECV": 4, |
| "OFPPC_NO_FWD": 32, |
| "OFPPC_NO_PACKET_IN": 64, |
| } |
| |
| func (x OfpPortConfig) String() string { |
| return proto.EnumName(OfpPortConfig_name, int32(x)) |
| } |
| |
| func (OfpPortConfig) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{7} |
| } |
| |
| // Current state of the physical port. These are not configurable from |
| // the controller. |
| type OfpPortState int32 |
| |
| const ( |
| OfpPortState_OFPPS_INVALID OfpPortState = 0 |
| OfpPortState_OFPPS_LINK_DOWN OfpPortState = 1 |
| OfpPortState_OFPPS_BLOCKED OfpPortState = 2 |
| OfpPortState_OFPPS_LIVE OfpPortState = 4 |
| ) |
| |
| var OfpPortState_name = map[int32]string{ |
| 0: "OFPPS_INVALID", |
| 1: "OFPPS_LINK_DOWN", |
| 2: "OFPPS_BLOCKED", |
| 4: "OFPPS_LIVE", |
| } |
| |
| var OfpPortState_value = map[string]int32{ |
| "OFPPS_INVALID": 0, |
| "OFPPS_LINK_DOWN": 1, |
| "OFPPS_BLOCKED": 2, |
| "OFPPS_LIVE": 4, |
| } |
| |
| func (x OfpPortState) String() string { |
| return proto.EnumName(OfpPortState_name, int32(x)) |
| } |
| |
| func (OfpPortState) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{8} |
| } |
| |
| // Features of ports available in a datapath. |
| type OfpPortFeatures int32 |
| |
| const ( |
| OfpPortFeatures_OFPPF_INVALID OfpPortFeatures = 0 |
| OfpPortFeatures_OFPPF_10MB_HD OfpPortFeatures = 1 |
| OfpPortFeatures_OFPPF_10MB_FD OfpPortFeatures = 2 |
| OfpPortFeatures_OFPPF_100MB_HD OfpPortFeatures = 4 |
| OfpPortFeatures_OFPPF_100MB_FD OfpPortFeatures = 8 |
| OfpPortFeatures_OFPPF_1GB_HD OfpPortFeatures = 16 |
| OfpPortFeatures_OFPPF_1GB_FD OfpPortFeatures = 32 |
| OfpPortFeatures_OFPPF_10GB_FD OfpPortFeatures = 64 |
| OfpPortFeatures_OFPPF_40GB_FD OfpPortFeatures = 128 |
| OfpPortFeatures_OFPPF_100GB_FD OfpPortFeatures = 256 |
| OfpPortFeatures_OFPPF_1TB_FD OfpPortFeatures = 512 |
| OfpPortFeatures_OFPPF_OTHER OfpPortFeatures = 1024 |
| OfpPortFeatures_OFPPF_COPPER OfpPortFeatures = 2048 |
| OfpPortFeatures_OFPPF_FIBER OfpPortFeatures = 4096 |
| OfpPortFeatures_OFPPF_AUTONEG OfpPortFeatures = 8192 |
| OfpPortFeatures_OFPPF_PAUSE OfpPortFeatures = 16384 |
| OfpPortFeatures_OFPPF_PAUSE_ASYM OfpPortFeatures = 32768 |
| ) |
| |
| var OfpPortFeatures_name = map[int32]string{ |
| 0: "OFPPF_INVALID", |
| 1: "OFPPF_10MB_HD", |
| 2: "OFPPF_10MB_FD", |
| 4: "OFPPF_100MB_HD", |
| 8: "OFPPF_100MB_FD", |
| 16: "OFPPF_1GB_HD", |
| 32: "OFPPF_1GB_FD", |
| 64: "OFPPF_10GB_FD", |
| 128: "OFPPF_40GB_FD", |
| 256: "OFPPF_100GB_FD", |
| 512: "OFPPF_1TB_FD", |
| 1024: "OFPPF_OTHER", |
| 2048: "OFPPF_COPPER", |
| 4096: "OFPPF_FIBER", |
| 8192: "OFPPF_AUTONEG", |
| 16384: "OFPPF_PAUSE", |
| 32768: "OFPPF_PAUSE_ASYM", |
| } |
| |
| var OfpPortFeatures_value = map[string]int32{ |
| "OFPPF_INVALID": 0, |
| "OFPPF_10MB_HD": 1, |
| "OFPPF_10MB_FD": 2, |
| "OFPPF_100MB_HD": 4, |
| "OFPPF_100MB_FD": 8, |
| "OFPPF_1GB_HD": 16, |
| "OFPPF_1GB_FD": 32, |
| "OFPPF_10GB_FD": 64, |
| "OFPPF_40GB_FD": 128, |
| "OFPPF_100GB_FD": 256, |
| "OFPPF_1TB_FD": 512, |
| "OFPPF_OTHER": 1024, |
| "OFPPF_COPPER": 2048, |
| "OFPPF_FIBER": 4096, |
| "OFPPF_AUTONEG": 8192, |
| "OFPPF_PAUSE": 16384, |
| "OFPPF_PAUSE_ASYM": 32768, |
| } |
| |
| func (x OfpPortFeatures) String() string { |
| return proto.EnumName(OfpPortFeatures_name, int32(x)) |
| } |
| |
| func (OfpPortFeatures) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{9} |
| } |
| |
| // What changed about the physical port |
| type OfpPortReason int32 |
| |
| const ( |
| OfpPortReason_OFPPR_ADD OfpPortReason = 0 |
| OfpPortReason_OFPPR_DELETE OfpPortReason = 1 |
| OfpPortReason_OFPPR_MODIFY OfpPortReason = 2 |
| ) |
| |
| var OfpPortReason_name = map[int32]string{ |
| 0: "OFPPR_ADD", |
| 1: "OFPPR_DELETE", |
| 2: "OFPPR_MODIFY", |
| } |
| |
| var OfpPortReason_value = map[string]int32{ |
| "OFPPR_ADD": 0, |
| "OFPPR_DELETE": 1, |
| "OFPPR_MODIFY": 2, |
| } |
| |
| func (x OfpPortReason) String() string { |
| return proto.EnumName(OfpPortReason_name, int32(x)) |
| } |
| |
| func (OfpPortReason) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{10} |
| } |
| |
| // The match type indicates the match structure (set of fields that compose the |
| // match) in use. The match type is placed in the type field at the beginning |
| // of all match structures. The "OpenFlow Extensible Match" type corresponds |
| // to OXM TLV format described below and must be supported by all OpenFlow |
| // switches. Extensions that define other match types may be published on the |
| // ONF wiki. Support for extensions is optional. |
| type OfpMatchType int32 |
| |
| const ( |
| OfpMatchType_OFPMT_STANDARD OfpMatchType = 0 |
| OfpMatchType_OFPMT_OXM OfpMatchType = 1 |
| ) |
| |
| var OfpMatchType_name = map[int32]string{ |
| 0: "OFPMT_STANDARD", |
| 1: "OFPMT_OXM", |
| } |
| |
| var OfpMatchType_value = map[string]int32{ |
| "OFPMT_STANDARD": 0, |
| "OFPMT_OXM": 1, |
| } |
| |
| func (x OfpMatchType) String() string { |
| return proto.EnumName(OfpMatchType_name, int32(x)) |
| } |
| |
| func (OfpMatchType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{11} |
| } |
| |
| // OXM Class IDs. |
| // The high order bit differentiate reserved classes from member classes. |
| // Classes 0x0000 to 0x7FFF are member classes, allocated by ONF. |
| // Classes 0x8000 to 0xFFFE are reserved classes, reserved for standardisation. |
| type OfpOxmClass int32 |
| |
| const ( |
| OfpOxmClass_OFPXMC_NXM_0 OfpOxmClass = 0 |
| OfpOxmClass_OFPXMC_NXM_1 OfpOxmClass = 1 |
| OfpOxmClass_OFPXMC_OPENFLOW_BASIC OfpOxmClass = 32768 |
| OfpOxmClass_OFPXMC_EXPERIMENTER OfpOxmClass = 65535 |
| ) |
| |
| var OfpOxmClass_name = map[int32]string{ |
| 0: "OFPXMC_NXM_0", |
| 1: "OFPXMC_NXM_1", |
| 32768: "OFPXMC_OPENFLOW_BASIC", |
| 65535: "OFPXMC_EXPERIMENTER", |
| } |
| |
| var OfpOxmClass_value = map[string]int32{ |
| "OFPXMC_NXM_0": 0, |
| "OFPXMC_NXM_1": 1, |
| "OFPXMC_OPENFLOW_BASIC": 32768, |
| "OFPXMC_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpOxmClass) String() string { |
| return proto.EnumName(OfpOxmClass_name, int32(x)) |
| } |
| |
| func (OfpOxmClass) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{12} |
| } |
| |
| // OXM Flow field types for OpenFlow basic class. |
| type OxmOfbFieldTypes int32 |
| |
| const ( |
| OxmOfbFieldTypes_OFPXMT_OFB_IN_PORT OxmOfbFieldTypes = 0 |
| OxmOfbFieldTypes_OFPXMT_OFB_IN_PHY_PORT OxmOfbFieldTypes = 1 |
| OxmOfbFieldTypes_OFPXMT_OFB_METADATA OxmOfbFieldTypes = 2 |
| OxmOfbFieldTypes_OFPXMT_OFB_ETH_DST OxmOfbFieldTypes = 3 |
| OxmOfbFieldTypes_OFPXMT_OFB_ETH_SRC OxmOfbFieldTypes = 4 |
| OxmOfbFieldTypes_OFPXMT_OFB_ETH_TYPE OxmOfbFieldTypes = 5 |
| OxmOfbFieldTypes_OFPXMT_OFB_VLAN_VID OxmOfbFieldTypes = 6 |
| OxmOfbFieldTypes_OFPXMT_OFB_VLAN_PCP OxmOfbFieldTypes = 7 |
| OxmOfbFieldTypes_OFPXMT_OFB_IP_DSCP OxmOfbFieldTypes = 8 |
| OxmOfbFieldTypes_OFPXMT_OFB_IP_ECN OxmOfbFieldTypes = 9 |
| OxmOfbFieldTypes_OFPXMT_OFB_IP_PROTO OxmOfbFieldTypes = 10 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV4_SRC OxmOfbFieldTypes = 11 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV4_DST OxmOfbFieldTypes = 12 |
| OxmOfbFieldTypes_OFPXMT_OFB_TCP_SRC OxmOfbFieldTypes = 13 |
| OxmOfbFieldTypes_OFPXMT_OFB_TCP_DST OxmOfbFieldTypes = 14 |
| OxmOfbFieldTypes_OFPXMT_OFB_UDP_SRC OxmOfbFieldTypes = 15 |
| OxmOfbFieldTypes_OFPXMT_OFB_UDP_DST OxmOfbFieldTypes = 16 |
| OxmOfbFieldTypes_OFPXMT_OFB_SCTP_SRC OxmOfbFieldTypes = 17 |
| OxmOfbFieldTypes_OFPXMT_OFB_SCTP_DST OxmOfbFieldTypes = 18 |
| OxmOfbFieldTypes_OFPXMT_OFB_ICMPV4_TYPE OxmOfbFieldTypes = 19 |
| OxmOfbFieldTypes_OFPXMT_OFB_ICMPV4_CODE OxmOfbFieldTypes = 20 |
| OxmOfbFieldTypes_OFPXMT_OFB_ARP_OP OxmOfbFieldTypes = 21 |
| OxmOfbFieldTypes_OFPXMT_OFB_ARP_SPA OxmOfbFieldTypes = 22 |
| OxmOfbFieldTypes_OFPXMT_OFB_ARP_TPA OxmOfbFieldTypes = 23 |
| OxmOfbFieldTypes_OFPXMT_OFB_ARP_SHA OxmOfbFieldTypes = 24 |
| OxmOfbFieldTypes_OFPXMT_OFB_ARP_THA OxmOfbFieldTypes = 25 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_SRC OxmOfbFieldTypes = 26 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_DST OxmOfbFieldTypes = 27 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_FLABEL OxmOfbFieldTypes = 28 |
| OxmOfbFieldTypes_OFPXMT_OFB_ICMPV6_TYPE OxmOfbFieldTypes = 29 |
| OxmOfbFieldTypes_OFPXMT_OFB_ICMPV6_CODE OxmOfbFieldTypes = 30 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_TARGET OxmOfbFieldTypes = 31 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_SLL OxmOfbFieldTypes = 32 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_ND_TLL OxmOfbFieldTypes = 33 |
| OxmOfbFieldTypes_OFPXMT_OFB_MPLS_LABEL OxmOfbFieldTypes = 34 |
| OxmOfbFieldTypes_OFPXMT_OFB_MPLS_TC OxmOfbFieldTypes = 35 |
| OxmOfbFieldTypes_OFPXMT_OFB_MPLS_BOS OxmOfbFieldTypes = 36 |
| OxmOfbFieldTypes_OFPXMT_OFB_PBB_ISID OxmOfbFieldTypes = 37 |
| OxmOfbFieldTypes_OFPXMT_OFB_TUNNEL_ID OxmOfbFieldTypes = 38 |
| OxmOfbFieldTypes_OFPXMT_OFB_IPV6_EXTHDR OxmOfbFieldTypes = 39 |
| ) |
| |
| var OxmOfbFieldTypes_name = map[int32]string{ |
| 0: "OFPXMT_OFB_IN_PORT", |
| 1: "OFPXMT_OFB_IN_PHY_PORT", |
| 2: "OFPXMT_OFB_METADATA", |
| 3: "OFPXMT_OFB_ETH_DST", |
| 4: "OFPXMT_OFB_ETH_SRC", |
| 5: "OFPXMT_OFB_ETH_TYPE", |
| 6: "OFPXMT_OFB_VLAN_VID", |
| 7: "OFPXMT_OFB_VLAN_PCP", |
| 8: "OFPXMT_OFB_IP_DSCP", |
| 9: "OFPXMT_OFB_IP_ECN", |
| 10: "OFPXMT_OFB_IP_PROTO", |
| 11: "OFPXMT_OFB_IPV4_SRC", |
| 12: "OFPXMT_OFB_IPV4_DST", |
| 13: "OFPXMT_OFB_TCP_SRC", |
| 14: "OFPXMT_OFB_TCP_DST", |
| 15: "OFPXMT_OFB_UDP_SRC", |
| 16: "OFPXMT_OFB_UDP_DST", |
| 17: "OFPXMT_OFB_SCTP_SRC", |
| 18: "OFPXMT_OFB_SCTP_DST", |
| 19: "OFPXMT_OFB_ICMPV4_TYPE", |
| 20: "OFPXMT_OFB_ICMPV4_CODE", |
| 21: "OFPXMT_OFB_ARP_OP", |
| 22: "OFPXMT_OFB_ARP_SPA", |
| 23: "OFPXMT_OFB_ARP_TPA", |
| 24: "OFPXMT_OFB_ARP_SHA", |
| 25: "OFPXMT_OFB_ARP_THA", |
| 26: "OFPXMT_OFB_IPV6_SRC", |
| 27: "OFPXMT_OFB_IPV6_DST", |
| 28: "OFPXMT_OFB_IPV6_FLABEL", |
| 29: "OFPXMT_OFB_ICMPV6_TYPE", |
| 30: "OFPXMT_OFB_ICMPV6_CODE", |
| 31: "OFPXMT_OFB_IPV6_ND_TARGET", |
| 32: "OFPXMT_OFB_IPV6_ND_SLL", |
| 33: "OFPXMT_OFB_IPV6_ND_TLL", |
| 34: "OFPXMT_OFB_MPLS_LABEL", |
| 35: "OFPXMT_OFB_MPLS_TC", |
| 36: "OFPXMT_OFB_MPLS_BOS", |
| 37: "OFPXMT_OFB_PBB_ISID", |
| 38: "OFPXMT_OFB_TUNNEL_ID", |
| 39: "OFPXMT_OFB_IPV6_EXTHDR", |
| } |
| |
| var OxmOfbFieldTypes_value = map[string]int32{ |
| "OFPXMT_OFB_IN_PORT": 0, |
| "OFPXMT_OFB_IN_PHY_PORT": 1, |
| "OFPXMT_OFB_METADATA": 2, |
| "OFPXMT_OFB_ETH_DST": 3, |
| "OFPXMT_OFB_ETH_SRC": 4, |
| "OFPXMT_OFB_ETH_TYPE": 5, |
| "OFPXMT_OFB_VLAN_VID": 6, |
| "OFPXMT_OFB_VLAN_PCP": 7, |
| "OFPXMT_OFB_IP_DSCP": 8, |
| "OFPXMT_OFB_IP_ECN": 9, |
| "OFPXMT_OFB_IP_PROTO": 10, |
| "OFPXMT_OFB_IPV4_SRC": 11, |
| "OFPXMT_OFB_IPV4_DST": 12, |
| "OFPXMT_OFB_TCP_SRC": 13, |
| "OFPXMT_OFB_TCP_DST": 14, |
| "OFPXMT_OFB_UDP_SRC": 15, |
| "OFPXMT_OFB_UDP_DST": 16, |
| "OFPXMT_OFB_SCTP_SRC": 17, |
| "OFPXMT_OFB_SCTP_DST": 18, |
| "OFPXMT_OFB_ICMPV4_TYPE": 19, |
| "OFPXMT_OFB_ICMPV4_CODE": 20, |
| "OFPXMT_OFB_ARP_OP": 21, |
| "OFPXMT_OFB_ARP_SPA": 22, |
| "OFPXMT_OFB_ARP_TPA": 23, |
| "OFPXMT_OFB_ARP_SHA": 24, |
| "OFPXMT_OFB_ARP_THA": 25, |
| "OFPXMT_OFB_IPV6_SRC": 26, |
| "OFPXMT_OFB_IPV6_DST": 27, |
| "OFPXMT_OFB_IPV6_FLABEL": 28, |
| "OFPXMT_OFB_ICMPV6_TYPE": 29, |
| "OFPXMT_OFB_ICMPV6_CODE": 30, |
| "OFPXMT_OFB_IPV6_ND_TARGET": 31, |
| "OFPXMT_OFB_IPV6_ND_SLL": 32, |
| "OFPXMT_OFB_IPV6_ND_TLL": 33, |
| "OFPXMT_OFB_MPLS_LABEL": 34, |
| "OFPXMT_OFB_MPLS_TC": 35, |
| "OFPXMT_OFB_MPLS_BOS": 36, |
| "OFPXMT_OFB_PBB_ISID": 37, |
| "OFPXMT_OFB_TUNNEL_ID": 38, |
| "OFPXMT_OFB_IPV6_EXTHDR": 39, |
| } |
| |
| func (x OxmOfbFieldTypes) String() string { |
| return proto.EnumName(OxmOfbFieldTypes_name, int32(x)) |
| } |
| |
| func (OxmOfbFieldTypes) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{13} |
| } |
| |
| // The VLAN id is 12-bits, so we can use the entire 16 bits to indicate |
| // special conditions. |
| type OfpVlanId int32 |
| |
| const ( |
| OfpVlanId_OFPVID_NONE OfpVlanId = 0 |
| OfpVlanId_OFPVID_PRESENT OfpVlanId = 4096 |
| ) |
| |
| var OfpVlanId_name = map[int32]string{ |
| 0: "OFPVID_NONE", |
| 4096: "OFPVID_PRESENT", |
| } |
| |
| var OfpVlanId_value = map[string]int32{ |
| "OFPVID_NONE": 0, |
| "OFPVID_PRESENT": 4096, |
| } |
| |
| func (x OfpVlanId) String() string { |
| return proto.EnumName(OfpVlanId_name, int32(x)) |
| } |
| |
| func (OfpVlanId) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{14} |
| } |
| |
| // Bit definitions for IPv6 Extension Header pseudo-field. |
| type OfpIpv6ExthdrFlags int32 |
| |
| const ( |
| OfpIpv6ExthdrFlags_OFPIEH_INVALID OfpIpv6ExthdrFlags = 0 |
| OfpIpv6ExthdrFlags_OFPIEH_NONEXT OfpIpv6ExthdrFlags = 1 |
| OfpIpv6ExthdrFlags_OFPIEH_ESP OfpIpv6ExthdrFlags = 2 |
| OfpIpv6ExthdrFlags_OFPIEH_AUTH OfpIpv6ExthdrFlags = 4 |
| OfpIpv6ExthdrFlags_OFPIEH_DEST OfpIpv6ExthdrFlags = 8 |
| OfpIpv6ExthdrFlags_OFPIEH_FRAG OfpIpv6ExthdrFlags = 16 |
| OfpIpv6ExthdrFlags_OFPIEH_ROUTER OfpIpv6ExthdrFlags = 32 |
| OfpIpv6ExthdrFlags_OFPIEH_HOP OfpIpv6ExthdrFlags = 64 |
| OfpIpv6ExthdrFlags_OFPIEH_UNREP OfpIpv6ExthdrFlags = 128 |
| OfpIpv6ExthdrFlags_OFPIEH_UNSEQ OfpIpv6ExthdrFlags = 256 |
| ) |
| |
| var OfpIpv6ExthdrFlags_name = map[int32]string{ |
| 0: "OFPIEH_INVALID", |
| 1: "OFPIEH_NONEXT", |
| 2: "OFPIEH_ESP", |
| 4: "OFPIEH_AUTH", |
| 8: "OFPIEH_DEST", |
| 16: "OFPIEH_FRAG", |
| 32: "OFPIEH_ROUTER", |
| 64: "OFPIEH_HOP", |
| 128: "OFPIEH_UNREP", |
| 256: "OFPIEH_UNSEQ", |
| } |
| |
| var OfpIpv6ExthdrFlags_value = map[string]int32{ |
| "OFPIEH_INVALID": 0, |
| "OFPIEH_NONEXT": 1, |
| "OFPIEH_ESP": 2, |
| "OFPIEH_AUTH": 4, |
| "OFPIEH_DEST": 8, |
| "OFPIEH_FRAG": 16, |
| "OFPIEH_ROUTER": 32, |
| "OFPIEH_HOP": 64, |
| "OFPIEH_UNREP": 128, |
| "OFPIEH_UNSEQ": 256, |
| } |
| |
| func (x OfpIpv6ExthdrFlags) String() string { |
| return proto.EnumName(OfpIpv6ExthdrFlags_name, int32(x)) |
| } |
| |
| func (OfpIpv6ExthdrFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{15} |
| } |
| |
| type OfpActionType int32 |
| |
| const ( |
| OfpActionType_OFPAT_OUTPUT OfpActionType = 0 |
| OfpActionType_OFPAT_COPY_TTL_OUT OfpActionType = 11 |
| OfpActionType_OFPAT_COPY_TTL_IN OfpActionType = 12 |
| OfpActionType_OFPAT_SET_MPLS_TTL OfpActionType = 15 |
| OfpActionType_OFPAT_DEC_MPLS_TTL OfpActionType = 16 |
| OfpActionType_OFPAT_PUSH_VLAN OfpActionType = 17 |
| OfpActionType_OFPAT_POP_VLAN OfpActionType = 18 |
| OfpActionType_OFPAT_PUSH_MPLS OfpActionType = 19 |
| OfpActionType_OFPAT_POP_MPLS OfpActionType = 20 |
| OfpActionType_OFPAT_SET_QUEUE OfpActionType = 21 |
| OfpActionType_OFPAT_GROUP OfpActionType = 22 |
| OfpActionType_OFPAT_SET_NW_TTL OfpActionType = 23 |
| OfpActionType_OFPAT_DEC_NW_TTL OfpActionType = 24 |
| OfpActionType_OFPAT_SET_FIELD OfpActionType = 25 |
| OfpActionType_OFPAT_PUSH_PBB OfpActionType = 26 |
| OfpActionType_OFPAT_POP_PBB OfpActionType = 27 |
| OfpActionType_OFPAT_EXPERIMENTER OfpActionType = 65535 |
| ) |
| |
| var OfpActionType_name = map[int32]string{ |
| 0: "OFPAT_OUTPUT", |
| 11: "OFPAT_COPY_TTL_OUT", |
| 12: "OFPAT_COPY_TTL_IN", |
| 15: "OFPAT_SET_MPLS_TTL", |
| 16: "OFPAT_DEC_MPLS_TTL", |
| 17: "OFPAT_PUSH_VLAN", |
| 18: "OFPAT_POP_VLAN", |
| 19: "OFPAT_PUSH_MPLS", |
| 20: "OFPAT_POP_MPLS", |
| 21: "OFPAT_SET_QUEUE", |
| 22: "OFPAT_GROUP", |
| 23: "OFPAT_SET_NW_TTL", |
| 24: "OFPAT_DEC_NW_TTL", |
| 25: "OFPAT_SET_FIELD", |
| 26: "OFPAT_PUSH_PBB", |
| 27: "OFPAT_POP_PBB", |
| 65535: "OFPAT_EXPERIMENTER", |
| } |
| |
| var OfpActionType_value = map[string]int32{ |
| "OFPAT_OUTPUT": 0, |
| "OFPAT_COPY_TTL_OUT": 11, |
| "OFPAT_COPY_TTL_IN": 12, |
| "OFPAT_SET_MPLS_TTL": 15, |
| "OFPAT_DEC_MPLS_TTL": 16, |
| "OFPAT_PUSH_VLAN": 17, |
| "OFPAT_POP_VLAN": 18, |
| "OFPAT_PUSH_MPLS": 19, |
| "OFPAT_POP_MPLS": 20, |
| "OFPAT_SET_QUEUE": 21, |
| "OFPAT_GROUP": 22, |
| "OFPAT_SET_NW_TTL": 23, |
| "OFPAT_DEC_NW_TTL": 24, |
| "OFPAT_SET_FIELD": 25, |
| "OFPAT_PUSH_PBB": 26, |
| "OFPAT_POP_PBB": 27, |
| "OFPAT_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpActionType) String() string { |
| return proto.EnumName(OfpActionType_name, int32(x)) |
| } |
| |
| func (OfpActionType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{16} |
| } |
| |
| type OfpControllerMaxLen int32 |
| |
| const ( |
| OfpControllerMaxLen_OFPCML_INVALID OfpControllerMaxLen = 0 |
| OfpControllerMaxLen_OFPCML_MAX OfpControllerMaxLen = 65509 |
| OfpControllerMaxLen_OFPCML_NO_BUFFER OfpControllerMaxLen = 65535 |
| ) |
| |
| var OfpControllerMaxLen_name = map[int32]string{ |
| 0: "OFPCML_INVALID", |
| 65509: "OFPCML_MAX", |
| 65535: "OFPCML_NO_BUFFER", |
| } |
| |
| var OfpControllerMaxLen_value = map[string]int32{ |
| "OFPCML_INVALID": 0, |
| "OFPCML_MAX": 65509, |
| "OFPCML_NO_BUFFER": 65535, |
| } |
| |
| func (x OfpControllerMaxLen) String() string { |
| return proto.EnumName(OfpControllerMaxLen_name, int32(x)) |
| } |
| |
| func (OfpControllerMaxLen) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{17} |
| } |
| |
| type OfpInstructionType int32 |
| |
| const ( |
| OfpInstructionType_OFPIT_INVALID OfpInstructionType = 0 |
| OfpInstructionType_OFPIT_GOTO_TABLE OfpInstructionType = 1 |
| OfpInstructionType_OFPIT_WRITE_METADATA OfpInstructionType = 2 |
| OfpInstructionType_OFPIT_WRITE_ACTIONS OfpInstructionType = 3 |
| OfpInstructionType_OFPIT_APPLY_ACTIONS OfpInstructionType = 4 |
| OfpInstructionType_OFPIT_CLEAR_ACTIONS OfpInstructionType = 5 |
| OfpInstructionType_OFPIT_METER OfpInstructionType = 6 |
| OfpInstructionType_OFPIT_EXPERIMENTER OfpInstructionType = 65535 |
| ) |
| |
| var OfpInstructionType_name = map[int32]string{ |
| 0: "OFPIT_INVALID", |
| 1: "OFPIT_GOTO_TABLE", |
| 2: "OFPIT_WRITE_METADATA", |
| 3: "OFPIT_WRITE_ACTIONS", |
| 4: "OFPIT_APPLY_ACTIONS", |
| 5: "OFPIT_CLEAR_ACTIONS", |
| 6: "OFPIT_METER", |
| 65535: "OFPIT_EXPERIMENTER", |
| } |
| |
| var OfpInstructionType_value = map[string]int32{ |
| "OFPIT_INVALID": 0, |
| "OFPIT_GOTO_TABLE": 1, |
| "OFPIT_WRITE_METADATA": 2, |
| "OFPIT_WRITE_ACTIONS": 3, |
| "OFPIT_APPLY_ACTIONS": 4, |
| "OFPIT_CLEAR_ACTIONS": 5, |
| "OFPIT_METER": 6, |
| "OFPIT_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpInstructionType) String() string { |
| return proto.EnumName(OfpInstructionType_name, int32(x)) |
| } |
| |
| func (OfpInstructionType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{18} |
| } |
| |
| type OfpFlowModCommand int32 |
| |
| const ( |
| OfpFlowModCommand_OFPFC_ADD OfpFlowModCommand = 0 |
| OfpFlowModCommand_OFPFC_MODIFY OfpFlowModCommand = 1 |
| OfpFlowModCommand_OFPFC_MODIFY_STRICT OfpFlowModCommand = 2 |
| OfpFlowModCommand_OFPFC_DELETE OfpFlowModCommand = 3 |
| OfpFlowModCommand_OFPFC_DELETE_STRICT OfpFlowModCommand = 4 |
| ) |
| |
| var OfpFlowModCommand_name = map[int32]string{ |
| 0: "OFPFC_ADD", |
| 1: "OFPFC_MODIFY", |
| 2: "OFPFC_MODIFY_STRICT", |
| 3: "OFPFC_DELETE", |
| 4: "OFPFC_DELETE_STRICT", |
| } |
| |
| var OfpFlowModCommand_value = map[string]int32{ |
| "OFPFC_ADD": 0, |
| "OFPFC_MODIFY": 1, |
| "OFPFC_MODIFY_STRICT": 2, |
| "OFPFC_DELETE": 3, |
| "OFPFC_DELETE_STRICT": 4, |
| } |
| |
| func (x OfpFlowModCommand) String() string { |
| return proto.EnumName(OfpFlowModCommand_name, int32(x)) |
| } |
| |
| func (OfpFlowModCommand) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{19} |
| } |
| |
| type OfpFlowModFlags int32 |
| |
| const ( |
| OfpFlowModFlags_OFPFF_INVALID OfpFlowModFlags = 0 |
| OfpFlowModFlags_OFPFF_SEND_FLOW_REM OfpFlowModFlags = 1 |
| OfpFlowModFlags_OFPFF_CHECK_OVERLAP OfpFlowModFlags = 2 |
| OfpFlowModFlags_OFPFF_RESET_COUNTS OfpFlowModFlags = 4 |
| OfpFlowModFlags_OFPFF_NO_PKT_COUNTS OfpFlowModFlags = 8 |
| OfpFlowModFlags_OFPFF_NO_BYT_COUNTS OfpFlowModFlags = 16 |
| ) |
| |
| var OfpFlowModFlags_name = map[int32]string{ |
| 0: "OFPFF_INVALID", |
| 1: "OFPFF_SEND_FLOW_REM", |
| 2: "OFPFF_CHECK_OVERLAP", |
| 4: "OFPFF_RESET_COUNTS", |
| 8: "OFPFF_NO_PKT_COUNTS", |
| 16: "OFPFF_NO_BYT_COUNTS", |
| } |
| |
| var OfpFlowModFlags_value = map[string]int32{ |
| "OFPFF_INVALID": 0, |
| "OFPFF_SEND_FLOW_REM": 1, |
| "OFPFF_CHECK_OVERLAP": 2, |
| "OFPFF_RESET_COUNTS": 4, |
| "OFPFF_NO_PKT_COUNTS": 8, |
| "OFPFF_NO_BYT_COUNTS": 16, |
| } |
| |
| func (x OfpFlowModFlags) String() string { |
| return proto.EnumName(OfpFlowModFlags_name, int32(x)) |
| } |
| |
| func (OfpFlowModFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{20} |
| } |
| |
| // Group numbering. Groups can use any number up to OFPG_MAX. |
| type OfpGroup int32 |
| |
| const ( |
| OfpGroup_OFPG_INVALID OfpGroup = 0 |
| // Last usable group number. |
| OfpGroup_OFPG_MAX OfpGroup = 2147483392 |
| // Fake groups. |
| OfpGroup_OFPG_ALL OfpGroup = 2147483644 |
| OfpGroup_OFPG_ANY OfpGroup = 2147483647 |
| ) |
| |
| var OfpGroup_name = map[int32]string{ |
| 0: "OFPG_INVALID", |
| 2147483392: "OFPG_MAX", |
| 2147483644: "OFPG_ALL", |
| 2147483647: "OFPG_ANY", |
| } |
| |
| var OfpGroup_value = map[string]int32{ |
| "OFPG_INVALID": 0, |
| "OFPG_MAX": 2147483392, |
| "OFPG_ALL": 2147483644, |
| "OFPG_ANY": 2147483647, |
| } |
| |
| func (x OfpGroup) String() string { |
| return proto.EnumName(OfpGroup_name, int32(x)) |
| } |
| |
| func (OfpGroup) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{21} |
| } |
| |
| // Group commands |
| type OfpGroupModCommand int32 |
| |
| const ( |
| OfpGroupModCommand_OFPGC_ADD OfpGroupModCommand = 0 |
| OfpGroupModCommand_OFPGC_MODIFY OfpGroupModCommand = 1 |
| OfpGroupModCommand_OFPGC_DELETE OfpGroupModCommand = 2 |
| ) |
| |
| var OfpGroupModCommand_name = map[int32]string{ |
| 0: "OFPGC_ADD", |
| 1: "OFPGC_MODIFY", |
| 2: "OFPGC_DELETE", |
| } |
| |
| var OfpGroupModCommand_value = map[string]int32{ |
| "OFPGC_ADD": 0, |
| "OFPGC_MODIFY": 1, |
| "OFPGC_DELETE": 2, |
| } |
| |
| func (x OfpGroupModCommand) String() string { |
| return proto.EnumName(OfpGroupModCommand_name, int32(x)) |
| } |
| |
| func (OfpGroupModCommand) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{22} |
| } |
| |
| // Group types. Values in the range [128; 255] are reserved for experimental |
| // use. |
| type OfpGroupType int32 |
| |
| const ( |
| OfpGroupType_OFPGT_ALL OfpGroupType = 0 |
| OfpGroupType_OFPGT_SELECT OfpGroupType = 1 |
| OfpGroupType_OFPGT_INDIRECT OfpGroupType = 2 |
| OfpGroupType_OFPGT_FF OfpGroupType = 3 |
| ) |
| |
| var OfpGroupType_name = map[int32]string{ |
| 0: "OFPGT_ALL", |
| 1: "OFPGT_SELECT", |
| 2: "OFPGT_INDIRECT", |
| 3: "OFPGT_FF", |
| } |
| |
| var OfpGroupType_value = map[string]int32{ |
| "OFPGT_ALL": 0, |
| "OFPGT_SELECT": 1, |
| "OFPGT_INDIRECT": 2, |
| "OFPGT_FF": 3, |
| } |
| |
| func (x OfpGroupType) String() string { |
| return proto.EnumName(OfpGroupType_name, int32(x)) |
| } |
| |
| func (OfpGroupType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{23} |
| } |
| |
| // Why is this packet being sent to the controller? |
| type OfpPacketInReason int32 |
| |
| const ( |
| OfpPacketInReason_OFPR_NO_MATCH OfpPacketInReason = 0 |
| OfpPacketInReason_OFPR_ACTION OfpPacketInReason = 1 |
| OfpPacketInReason_OFPR_INVALID_TTL OfpPacketInReason = 2 |
| ) |
| |
| var OfpPacketInReason_name = map[int32]string{ |
| 0: "OFPR_NO_MATCH", |
| 1: "OFPR_ACTION", |
| 2: "OFPR_INVALID_TTL", |
| } |
| |
| var OfpPacketInReason_value = map[string]int32{ |
| "OFPR_NO_MATCH": 0, |
| "OFPR_ACTION": 1, |
| "OFPR_INVALID_TTL": 2, |
| } |
| |
| func (x OfpPacketInReason) String() string { |
| return proto.EnumName(OfpPacketInReason_name, int32(x)) |
| } |
| |
| func (OfpPacketInReason) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{24} |
| } |
| |
| // Why was this flow removed? |
| type OfpFlowRemovedReason int32 |
| |
| const ( |
| OfpFlowRemovedReason_OFPRR_IDLE_TIMEOUT OfpFlowRemovedReason = 0 |
| OfpFlowRemovedReason_OFPRR_HARD_TIMEOUT OfpFlowRemovedReason = 1 |
| OfpFlowRemovedReason_OFPRR_DELETE OfpFlowRemovedReason = 2 |
| OfpFlowRemovedReason_OFPRR_GROUP_DELETE OfpFlowRemovedReason = 3 |
| OfpFlowRemovedReason_OFPRR_METER_DELETE OfpFlowRemovedReason = 4 |
| ) |
| |
| var OfpFlowRemovedReason_name = map[int32]string{ |
| 0: "OFPRR_IDLE_TIMEOUT", |
| 1: "OFPRR_HARD_TIMEOUT", |
| 2: "OFPRR_DELETE", |
| 3: "OFPRR_GROUP_DELETE", |
| 4: "OFPRR_METER_DELETE", |
| } |
| |
| var OfpFlowRemovedReason_value = map[string]int32{ |
| "OFPRR_IDLE_TIMEOUT": 0, |
| "OFPRR_HARD_TIMEOUT": 1, |
| "OFPRR_DELETE": 2, |
| "OFPRR_GROUP_DELETE": 3, |
| "OFPRR_METER_DELETE": 4, |
| } |
| |
| func (x OfpFlowRemovedReason) String() string { |
| return proto.EnumName(OfpFlowRemovedReason_name, int32(x)) |
| } |
| |
| func (OfpFlowRemovedReason) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{25} |
| } |
| |
| // Meter numbering. Flow meters can use any number up to OFPM_MAX. |
| type OfpMeter int32 |
| |
| const ( |
| OfpMeter_OFPM_ZERO OfpMeter = 0 |
| // Last usable meter. |
| OfpMeter_OFPM_MAX OfpMeter = 2147418112 |
| // Virtual meters. |
| OfpMeter_OFPM_SLOWPATH OfpMeter = 2147483645 |
| OfpMeter_OFPM_CONTROLLER OfpMeter = 2147483646 |
| OfpMeter_OFPM_ALL OfpMeter = 2147483647 |
| ) |
| |
| var OfpMeter_name = map[int32]string{ |
| 0: "OFPM_ZERO", |
| 2147418112: "OFPM_MAX", |
| 2147483645: "OFPM_SLOWPATH", |
| 2147483646: "OFPM_CONTROLLER", |
| 2147483647: "OFPM_ALL", |
| } |
| |
| var OfpMeter_value = map[string]int32{ |
| "OFPM_ZERO": 0, |
| "OFPM_MAX": 2147418112, |
| "OFPM_SLOWPATH": 2147483645, |
| "OFPM_CONTROLLER": 2147483646, |
| "OFPM_ALL": 2147483647, |
| } |
| |
| func (x OfpMeter) String() string { |
| return proto.EnumName(OfpMeter_name, int32(x)) |
| } |
| |
| func (OfpMeter) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{26} |
| } |
| |
| // Meter band types |
| type OfpMeterBandType int32 |
| |
| const ( |
| OfpMeterBandType_OFPMBT_INVALID OfpMeterBandType = 0 |
| OfpMeterBandType_OFPMBT_DROP OfpMeterBandType = 1 |
| OfpMeterBandType_OFPMBT_DSCP_REMARK OfpMeterBandType = 2 |
| OfpMeterBandType_OFPMBT_EXPERIMENTER OfpMeterBandType = 65535 |
| ) |
| |
| var OfpMeterBandType_name = map[int32]string{ |
| 0: "OFPMBT_INVALID", |
| 1: "OFPMBT_DROP", |
| 2: "OFPMBT_DSCP_REMARK", |
| 65535: "OFPMBT_EXPERIMENTER", |
| } |
| |
| var OfpMeterBandType_value = map[string]int32{ |
| "OFPMBT_INVALID": 0, |
| "OFPMBT_DROP": 1, |
| "OFPMBT_DSCP_REMARK": 2, |
| "OFPMBT_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpMeterBandType) String() string { |
| return proto.EnumName(OfpMeterBandType_name, int32(x)) |
| } |
| |
| func (OfpMeterBandType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{27} |
| } |
| |
| // Meter commands |
| type OfpMeterModCommand int32 |
| |
| const ( |
| OfpMeterModCommand_OFPMC_ADD OfpMeterModCommand = 0 |
| OfpMeterModCommand_OFPMC_MODIFY OfpMeterModCommand = 1 |
| OfpMeterModCommand_OFPMC_DELETE OfpMeterModCommand = 2 |
| ) |
| |
| var OfpMeterModCommand_name = map[int32]string{ |
| 0: "OFPMC_ADD", |
| 1: "OFPMC_MODIFY", |
| 2: "OFPMC_DELETE", |
| } |
| |
| var OfpMeterModCommand_value = map[string]int32{ |
| "OFPMC_ADD": 0, |
| "OFPMC_MODIFY": 1, |
| "OFPMC_DELETE": 2, |
| } |
| |
| func (x OfpMeterModCommand) String() string { |
| return proto.EnumName(OfpMeterModCommand_name, int32(x)) |
| } |
| |
| func (OfpMeterModCommand) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{28} |
| } |
| |
| // Meter configuration flags |
| type OfpMeterFlags int32 |
| |
| const ( |
| OfpMeterFlags_OFPMF_INVALID OfpMeterFlags = 0 |
| OfpMeterFlags_OFPMF_KBPS OfpMeterFlags = 1 |
| OfpMeterFlags_OFPMF_PKTPS OfpMeterFlags = 2 |
| OfpMeterFlags_OFPMF_BURST OfpMeterFlags = 4 |
| OfpMeterFlags_OFPMF_STATS OfpMeterFlags = 8 |
| ) |
| |
| var OfpMeterFlags_name = map[int32]string{ |
| 0: "OFPMF_INVALID", |
| 1: "OFPMF_KBPS", |
| 2: "OFPMF_PKTPS", |
| 4: "OFPMF_BURST", |
| 8: "OFPMF_STATS", |
| } |
| |
| var OfpMeterFlags_value = map[string]int32{ |
| "OFPMF_INVALID": 0, |
| "OFPMF_KBPS": 1, |
| "OFPMF_PKTPS": 2, |
| "OFPMF_BURST": 4, |
| "OFPMF_STATS": 8, |
| } |
| |
| func (x OfpMeterFlags) String() string { |
| return proto.EnumName(OfpMeterFlags_name, int32(x)) |
| } |
| |
| func (OfpMeterFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{29} |
| } |
| |
| // Values for 'type' in ofp_error_message. These values are immutable: they |
| // will not change in future versions of the protocol (although new values may |
| // be added). |
| type OfpErrorType int32 |
| |
| const ( |
| OfpErrorType_OFPET_HELLO_FAILED OfpErrorType = 0 |
| OfpErrorType_OFPET_BAD_REQUEST OfpErrorType = 1 |
| OfpErrorType_OFPET_BAD_ACTION OfpErrorType = 2 |
| OfpErrorType_OFPET_BAD_INSTRUCTION OfpErrorType = 3 |
| OfpErrorType_OFPET_BAD_MATCH OfpErrorType = 4 |
| OfpErrorType_OFPET_FLOW_MOD_FAILED OfpErrorType = 5 |
| OfpErrorType_OFPET_GROUP_MOD_FAILED OfpErrorType = 6 |
| OfpErrorType_OFPET_PORT_MOD_FAILED OfpErrorType = 7 |
| OfpErrorType_OFPET_TABLE_MOD_FAILED OfpErrorType = 8 |
| OfpErrorType_OFPET_QUEUE_OP_FAILED OfpErrorType = 9 |
| OfpErrorType_OFPET_SWITCH_CONFIG_FAILED OfpErrorType = 10 |
| OfpErrorType_OFPET_ROLE_REQUEST_FAILED OfpErrorType = 11 |
| OfpErrorType_OFPET_METER_MOD_FAILED OfpErrorType = 12 |
| OfpErrorType_OFPET_TABLE_FEATURES_FAILED OfpErrorType = 13 |
| OfpErrorType_OFPET_EXPERIMENTER OfpErrorType = 65535 |
| ) |
| |
| var OfpErrorType_name = map[int32]string{ |
| 0: "OFPET_HELLO_FAILED", |
| 1: "OFPET_BAD_REQUEST", |
| 2: "OFPET_BAD_ACTION", |
| 3: "OFPET_BAD_INSTRUCTION", |
| 4: "OFPET_BAD_MATCH", |
| 5: "OFPET_FLOW_MOD_FAILED", |
| 6: "OFPET_GROUP_MOD_FAILED", |
| 7: "OFPET_PORT_MOD_FAILED", |
| 8: "OFPET_TABLE_MOD_FAILED", |
| 9: "OFPET_QUEUE_OP_FAILED", |
| 10: "OFPET_SWITCH_CONFIG_FAILED", |
| 11: "OFPET_ROLE_REQUEST_FAILED", |
| 12: "OFPET_METER_MOD_FAILED", |
| 13: "OFPET_TABLE_FEATURES_FAILED", |
| 65535: "OFPET_EXPERIMENTER", |
| } |
| |
| var OfpErrorType_value = map[string]int32{ |
| "OFPET_HELLO_FAILED": 0, |
| "OFPET_BAD_REQUEST": 1, |
| "OFPET_BAD_ACTION": 2, |
| "OFPET_BAD_INSTRUCTION": 3, |
| "OFPET_BAD_MATCH": 4, |
| "OFPET_FLOW_MOD_FAILED": 5, |
| "OFPET_GROUP_MOD_FAILED": 6, |
| "OFPET_PORT_MOD_FAILED": 7, |
| "OFPET_TABLE_MOD_FAILED": 8, |
| "OFPET_QUEUE_OP_FAILED": 9, |
| "OFPET_SWITCH_CONFIG_FAILED": 10, |
| "OFPET_ROLE_REQUEST_FAILED": 11, |
| "OFPET_METER_MOD_FAILED": 12, |
| "OFPET_TABLE_FEATURES_FAILED": 13, |
| "OFPET_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpErrorType) String() string { |
| return proto.EnumName(OfpErrorType_name, int32(x)) |
| } |
| |
| func (OfpErrorType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{30} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_HELLO_FAILED. 'data' contains an |
| // ASCII text string that may give failure details. |
| type OfpHelloFailedCode int32 |
| |
| const ( |
| OfpHelloFailedCode_OFPHFC_INCOMPATIBLE OfpHelloFailedCode = 0 |
| OfpHelloFailedCode_OFPHFC_EPERM OfpHelloFailedCode = 1 |
| ) |
| |
| var OfpHelloFailedCode_name = map[int32]string{ |
| 0: "OFPHFC_INCOMPATIBLE", |
| 1: "OFPHFC_EPERM", |
| } |
| |
| var OfpHelloFailedCode_value = map[string]int32{ |
| "OFPHFC_INCOMPATIBLE": 0, |
| "OFPHFC_EPERM": 1, |
| } |
| |
| func (x OfpHelloFailedCode) String() string { |
| return proto.EnumName(OfpHelloFailedCode_name, int32(x)) |
| } |
| |
| func (OfpHelloFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{31} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_BAD_REQUEST. 'data' contains at least |
| // the first 64 bytes of the failed request. |
| type OfpBadRequestCode int32 |
| |
| const ( |
| OfpBadRequestCode_OFPBRC_BAD_VERSION OfpBadRequestCode = 0 |
| OfpBadRequestCode_OFPBRC_BAD_TYPE OfpBadRequestCode = 1 |
| OfpBadRequestCode_OFPBRC_BAD_MULTIPART OfpBadRequestCode = 2 |
| OfpBadRequestCode_OFPBRC_BAD_EXPERIMENTER OfpBadRequestCode = 3 |
| OfpBadRequestCode_OFPBRC_BAD_EXP_TYPE OfpBadRequestCode = 4 |
| OfpBadRequestCode_OFPBRC_EPERM OfpBadRequestCode = 5 |
| OfpBadRequestCode_OFPBRC_BAD_LEN OfpBadRequestCode = 6 |
| OfpBadRequestCode_OFPBRC_BUFFER_EMPTY OfpBadRequestCode = 7 |
| OfpBadRequestCode_OFPBRC_BUFFER_UNKNOWN OfpBadRequestCode = 8 |
| OfpBadRequestCode_OFPBRC_BAD_TABLE_ID OfpBadRequestCode = 9 |
| OfpBadRequestCode_OFPBRC_IS_SLAVE OfpBadRequestCode = 10 |
| OfpBadRequestCode_OFPBRC_BAD_PORT OfpBadRequestCode = 11 |
| OfpBadRequestCode_OFPBRC_BAD_PACKET OfpBadRequestCode = 12 |
| OfpBadRequestCode_OFPBRC_MULTIPART_BUFFER_OVERFLOW OfpBadRequestCode = 13 |
| ) |
| |
| var OfpBadRequestCode_name = map[int32]string{ |
| 0: "OFPBRC_BAD_VERSION", |
| 1: "OFPBRC_BAD_TYPE", |
| 2: "OFPBRC_BAD_MULTIPART", |
| 3: "OFPBRC_BAD_EXPERIMENTER", |
| 4: "OFPBRC_BAD_EXP_TYPE", |
| 5: "OFPBRC_EPERM", |
| 6: "OFPBRC_BAD_LEN", |
| 7: "OFPBRC_BUFFER_EMPTY", |
| 8: "OFPBRC_BUFFER_UNKNOWN", |
| 9: "OFPBRC_BAD_TABLE_ID", |
| 10: "OFPBRC_IS_SLAVE", |
| 11: "OFPBRC_BAD_PORT", |
| 12: "OFPBRC_BAD_PACKET", |
| 13: "OFPBRC_MULTIPART_BUFFER_OVERFLOW", |
| } |
| |
| var OfpBadRequestCode_value = map[string]int32{ |
| "OFPBRC_BAD_VERSION": 0, |
| "OFPBRC_BAD_TYPE": 1, |
| "OFPBRC_BAD_MULTIPART": 2, |
| "OFPBRC_BAD_EXPERIMENTER": 3, |
| "OFPBRC_BAD_EXP_TYPE": 4, |
| "OFPBRC_EPERM": 5, |
| "OFPBRC_BAD_LEN": 6, |
| "OFPBRC_BUFFER_EMPTY": 7, |
| "OFPBRC_BUFFER_UNKNOWN": 8, |
| "OFPBRC_BAD_TABLE_ID": 9, |
| "OFPBRC_IS_SLAVE": 10, |
| "OFPBRC_BAD_PORT": 11, |
| "OFPBRC_BAD_PACKET": 12, |
| "OFPBRC_MULTIPART_BUFFER_OVERFLOW": 13, |
| } |
| |
| func (x OfpBadRequestCode) String() string { |
| return proto.EnumName(OfpBadRequestCode_name, int32(x)) |
| } |
| |
| func (OfpBadRequestCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{32} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_BAD_ACTION. 'data' contains at least |
| // the first 64 bytes of the failed request. |
| type OfpBadActionCode int32 |
| |
| const ( |
| OfpBadActionCode_OFPBAC_BAD_TYPE OfpBadActionCode = 0 |
| OfpBadActionCode_OFPBAC_BAD_LEN OfpBadActionCode = 1 |
| OfpBadActionCode_OFPBAC_BAD_EXPERIMENTER OfpBadActionCode = 2 |
| OfpBadActionCode_OFPBAC_BAD_EXP_TYPE OfpBadActionCode = 3 |
| OfpBadActionCode_OFPBAC_BAD_OUT_PORT OfpBadActionCode = 4 |
| OfpBadActionCode_OFPBAC_BAD_ARGUMENT OfpBadActionCode = 5 |
| OfpBadActionCode_OFPBAC_EPERM OfpBadActionCode = 6 |
| OfpBadActionCode_OFPBAC_TOO_MANY OfpBadActionCode = 7 |
| OfpBadActionCode_OFPBAC_BAD_QUEUE OfpBadActionCode = 8 |
| OfpBadActionCode_OFPBAC_BAD_OUT_GROUP OfpBadActionCode = 9 |
| OfpBadActionCode_OFPBAC_MATCH_INCONSISTENT OfpBadActionCode = 10 |
| OfpBadActionCode_OFPBAC_UNSUPPORTED_ORDER OfpBadActionCode = 11 |
| OfpBadActionCode_OFPBAC_BAD_TAG OfpBadActionCode = 12 |
| OfpBadActionCode_OFPBAC_BAD_SET_TYPE OfpBadActionCode = 13 |
| OfpBadActionCode_OFPBAC_BAD_SET_LEN OfpBadActionCode = 14 |
| OfpBadActionCode_OFPBAC_BAD_SET_ARGUMENT OfpBadActionCode = 15 |
| ) |
| |
| var OfpBadActionCode_name = map[int32]string{ |
| 0: "OFPBAC_BAD_TYPE", |
| 1: "OFPBAC_BAD_LEN", |
| 2: "OFPBAC_BAD_EXPERIMENTER", |
| 3: "OFPBAC_BAD_EXP_TYPE", |
| 4: "OFPBAC_BAD_OUT_PORT", |
| 5: "OFPBAC_BAD_ARGUMENT", |
| 6: "OFPBAC_EPERM", |
| 7: "OFPBAC_TOO_MANY", |
| 8: "OFPBAC_BAD_QUEUE", |
| 9: "OFPBAC_BAD_OUT_GROUP", |
| 10: "OFPBAC_MATCH_INCONSISTENT", |
| 11: "OFPBAC_UNSUPPORTED_ORDER", |
| 12: "OFPBAC_BAD_TAG", |
| 13: "OFPBAC_BAD_SET_TYPE", |
| 14: "OFPBAC_BAD_SET_LEN", |
| 15: "OFPBAC_BAD_SET_ARGUMENT", |
| } |
| |
| var OfpBadActionCode_value = map[string]int32{ |
| "OFPBAC_BAD_TYPE": 0, |
| "OFPBAC_BAD_LEN": 1, |
| "OFPBAC_BAD_EXPERIMENTER": 2, |
| "OFPBAC_BAD_EXP_TYPE": 3, |
| "OFPBAC_BAD_OUT_PORT": 4, |
| "OFPBAC_BAD_ARGUMENT": 5, |
| "OFPBAC_EPERM": 6, |
| "OFPBAC_TOO_MANY": 7, |
| "OFPBAC_BAD_QUEUE": 8, |
| "OFPBAC_BAD_OUT_GROUP": 9, |
| "OFPBAC_MATCH_INCONSISTENT": 10, |
| "OFPBAC_UNSUPPORTED_ORDER": 11, |
| "OFPBAC_BAD_TAG": 12, |
| "OFPBAC_BAD_SET_TYPE": 13, |
| "OFPBAC_BAD_SET_LEN": 14, |
| "OFPBAC_BAD_SET_ARGUMENT": 15, |
| } |
| |
| func (x OfpBadActionCode) String() string { |
| return proto.EnumName(OfpBadActionCode_name, int32(x)) |
| } |
| |
| func (OfpBadActionCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{33} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_BAD_INSTRUCTION. 'data' contains at |
| // least the first 64 bytes of the failed request. |
| type OfpBadInstructionCode int32 |
| |
| const ( |
| OfpBadInstructionCode_OFPBIC_UNKNOWN_INST OfpBadInstructionCode = 0 |
| OfpBadInstructionCode_OFPBIC_UNSUP_INST OfpBadInstructionCode = 1 |
| OfpBadInstructionCode_OFPBIC_BAD_TABLE_ID OfpBadInstructionCode = 2 |
| OfpBadInstructionCode_OFPBIC_UNSUP_METADATA OfpBadInstructionCode = 3 |
| OfpBadInstructionCode_OFPBIC_UNSUP_METADATA_MASK OfpBadInstructionCode = 4 |
| OfpBadInstructionCode_OFPBIC_BAD_EXPERIMENTER OfpBadInstructionCode = 5 |
| OfpBadInstructionCode_OFPBIC_BAD_EXP_TYPE OfpBadInstructionCode = 6 |
| OfpBadInstructionCode_OFPBIC_BAD_LEN OfpBadInstructionCode = 7 |
| OfpBadInstructionCode_OFPBIC_EPERM OfpBadInstructionCode = 8 |
| ) |
| |
| var OfpBadInstructionCode_name = map[int32]string{ |
| 0: "OFPBIC_UNKNOWN_INST", |
| 1: "OFPBIC_UNSUP_INST", |
| 2: "OFPBIC_BAD_TABLE_ID", |
| 3: "OFPBIC_UNSUP_METADATA", |
| 4: "OFPBIC_UNSUP_METADATA_MASK", |
| 5: "OFPBIC_BAD_EXPERIMENTER", |
| 6: "OFPBIC_BAD_EXP_TYPE", |
| 7: "OFPBIC_BAD_LEN", |
| 8: "OFPBIC_EPERM", |
| } |
| |
| var OfpBadInstructionCode_value = map[string]int32{ |
| "OFPBIC_UNKNOWN_INST": 0, |
| "OFPBIC_UNSUP_INST": 1, |
| "OFPBIC_BAD_TABLE_ID": 2, |
| "OFPBIC_UNSUP_METADATA": 3, |
| "OFPBIC_UNSUP_METADATA_MASK": 4, |
| "OFPBIC_BAD_EXPERIMENTER": 5, |
| "OFPBIC_BAD_EXP_TYPE": 6, |
| "OFPBIC_BAD_LEN": 7, |
| "OFPBIC_EPERM": 8, |
| } |
| |
| func (x OfpBadInstructionCode) String() string { |
| return proto.EnumName(OfpBadInstructionCode_name, int32(x)) |
| } |
| |
| func (OfpBadInstructionCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{34} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_BAD_MATCH. 'data' contains at least |
| // the first 64 bytes of the failed request. |
| type OfpBadMatchCode int32 |
| |
| const ( |
| OfpBadMatchCode_OFPBMC_BAD_TYPE OfpBadMatchCode = 0 |
| OfpBadMatchCode_OFPBMC_BAD_LEN OfpBadMatchCode = 1 |
| OfpBadMatchCode_OFPBMC_BAD_TAG OfpBadMatchCode = 2 |
| OfpBadMatchCode_OFPBMC_BAD_DL_ADDR_MASK OfpBadMatchCode = 3 |
| OfpBadMatchCode_OFPBMC_BAD_NW_ADDR_MASK OfpBadMatchCode = 4 |
| OfpBadMatchCode_OFPBMC_BAD_WILDCARDS OfpBadMatchCode = 5 |
| OfpBadMatchCode_OFPBMC_BAD_FIELD OfpBadMatchCode = 6 |
| OfpBadMatchCode_OFPBMC_BAD_VALUE OfpBadMatchCode = 7 |
| OfpBadMatchCode_OFPBMC_BAD_MASK OfpBadMatchCode = 8 |
| OfpBadMatchCode_OFPBMC_BAD_PREREQ OfpBadMatchCode = 9 |
| OfpBadMatchCode_OFPBMC_DUP_FIELD OfpBadMatchCode = 10 |
| OfpBadMatchCode_OFPBMC_EPERM OfpBadMatchCode = 11 |
| ) |
| |
| var OfpBadMatchCode_name = map[int32]string{ |
| 0: "OFPBMC_BAD_TYPE", |
| 1: "OFPBMC_BAD_LEN", |
| 2: "OFPBMC_BAD_TAG", |
| 3: "OFPBMC_BAD_DL_ADDR_MASK", |
| 4: "OFPBMC_BAD_NW_ADDR_MASK", |
| 5: "OFPBMC_BAD_WILDCARDS", |
| 6: "OFPBMC_BAD_FIELD", |
| 7: "OFPBMC_BAD_VALUE", |
| 8: "OFPBMC_BAD_MASK", |
| 9: "OFPBMC_BAD_PREREQ", |
| 10: "OFPBMC_DUP_FIELD", |
| 11: "OFPBMC_EPERM", |
| } |
| |
| var OfpBadMatchCode_value = map[string]int32{ |
| "OFPBMC_BAD_TYPE": 0, |
| "OFPBMC_BAD_LEN": 1, |
| "OFPBMC_BAD_TAG": 2, |
| "OFPBMC_BAD_DL_ADDR_MASK": 3, |
| "OFPBMC_BAD_NW_ADDR_MASK": 4, |
| "OFPBMC_BAD_WILDCARDS": 5, |
| "OFPBMC_BAD_FIELD": 6, |
| "OFPBMC_BAD_VALUE": 7, |
| "OFPBMC_BAD_MASK": 8, |
| "OFPBMC_BAD_PREREQ": 9, |
| "OFPBMC_DUP_FIELD": 10, |
| "OFPBMC_EPERM": 11, |
| } |
| |
| func (x OfpBadMatchCode) String() string { |
| return proto.EnumName(OfpBadMatchCode_name, int32(x)) |
| } |
| |
| func (OfpBadMatchCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{35} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_FLOW_MOD_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpFlowModFailedCode int32 |
| |
| const ( |
| OfpFlowModFailedCode_OFPFMFC_UNKNOWN OfpFlowModFailedCode = 0 |
| OfpFlowModFailedCode_OFPFMFC_TABLE_FULL OfpFlowModFailedCode = 1 |
| OfpFlowModFailedCode_OFPFMFC_BAD_TABLE_ID OfpFlowModFailedCode = 2 |
| OfpFlowModFailedCode_OFPFMFC_OVERLAP OfpFlowModFailedCode = 3 |
| OfpFlowModFailedCode_OFPFMFC_EPERM OfpFlowModFailedCode = 4 |
| OfpFlowModFailedCode_OFPFMFC_BAD_TIMEOUT OfpFlowModFailedCode = 5 |
| OfpFlowModFailedCode_OFPFMFC_BAD_COMMAND OfpFlowModFailedCode = 6 |
| OfpFlowModFailedCode_OFPFMFC_BAD_FLAGS OfpFlowModFailedCode = 7 |
| ) |
| |
| var OfpFlowModFailedCode_name = map[int32]string{ |
| 0: "OFPFMFC_UNKNOWN", |
| 1: "OFPFMFC_TABLE_FULL", |
| 2: "OFPFMFC_BAD_TABLE_ID", |
| 3: "OFPFMFC_OVERLAP", |
| 4: "OFPFMFC_EPERM", |
| 5: "OFPFMFC_BAD_TIMEOUT", |
| 6: "OFPFMFC_BAD_COMMAND", |
| 7: "OFPFMFC_BAD_FLAGS", |
| } |
| |
| var OfpFlowModFailedCode_value = map[string]int32{ |
| "OFPFMFC_UNKNOWN": 0, |
| "OFPFMFC_TABLE_FULL": 1, |
| "OFPFMFC_BAD_TABLE_ID": 2, |
| "OFPFMFC_OVERLAP": 3, |
| "OFPFMFC_EPERM": 4, |
| "OFPFMFC_BAD_TIMEOUT": 5, |
| "OFPFMFC_BAD_COMMAND": 6, |
| "OFPFMFC_BAD_FLAGS": 7, |
| } |
| |
| func (x OfpFlowModFailedCode) String() string { |
| return proto.EnumName(OfpFlowModFailedCode_name, int32(x)) |
| } |
| |
| func (OfpFlowModFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{36} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_GROUP_MOD_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpGroupModFailedCode int32 |
| |
| const ( |
| OfpGroupModFailedCode_OFPGMFC_GROUP_EXISTS OfpGroupModFailedCode = 0 |
| OfpGroupModFailedCode_OFPGMFC_INVALID_GROUP OfpGroupModFailedCode = 1 |
| OfpGroupModFailedCode_OFPGMFC_WEIGHT_UNSUPPORTED OfpGroupModFailedCode = 2 |
| OfpGroupModFailedCode_OFPGMFC_OUT_OF_GROUPS OfpGroupModFailedCode = 3 |
| OfpGroupModFailedCode_OFPGMFC_OUT_OF_BUCKETS OfpGroupModFailedCode = 4 |
| OfpGroupModFailedCode_OFPGMFC_CHAINING_UNSUPPORTED OfpGroupModFailedCode = 5 |
| OfpGroupModFailedCode_OFPGMFC_WATCH_UNSUPPORTED OfpGroupModFailedCode = 6 |
| OfpGroupModFailedCode_OFPGMFC_LOOP OfpGroupModFailedCode = 7 |
| OfpGroupModFailedCode_OFPGMFC_UNKNOWN_GROUP OfpGroupModFailedCode = 8 |
| OfpGroupModFailedCode_OFPGMFC_CHAINED_GROUP OfpGroupModFailedCode = 9 |
| OfpGroupModFailedCode_OFPGMFC_BAD_TYPE OfpGroupModFailedCode = 10 |
| OfpGroupModFailedCode_OFPGMFC_BAD_COMMAND OfpGroupModFailedCode = 11 |
| OfpGroupModFailedCode_OFPGMFC_BAD_BUCKET OfpGroupModFailedCode = 12 |
| OfpGroupModFailedCode_OFPGMFC_BAD_WATCH OfpGroupModFailedCode = 13 |
| OfpGroupModFailedCode_OFPGMFC_EPERM OfpGroupModFailedCode = 14 |
| ) |
| |
| var OfpGroupModFailedCode_name = map[int32]string{ |
| 0: "OFPGMFC_GROUP_EXISTS", |
| 1: "OFPGMFC_INVALID_GROUP", |
| 2: "OFPGMFC_WEIGHT_UNSUPPORTED", |
| 3: "OFPGMFC_OUT_OF_GROUPS", |
| 4: "OFPGMFC_OUT_OF_BUCKETS", |
| 5: "OFPGMFC_CHAINING_UNSUPPORTED", |
| 6: "OFPGMFC_WATCH_UNSUPPORTED", |
| 7: "OFPGMFC_LOOP", |
| 8: "OFPGMFC_UNKNOWN_GROUP", |
| 9: "OFPGMFC_CHAINED_GROUP", |
| 10: "OFPGMFC_BAD_TYPE", |
| 11: "OFPGMFC_BAD_COMMAND", |
| 12: "OFPGMFC_BAD_BUCKET", |
| 13: "OFPGMFC_BAD_WATCH", |
| 14: "OFPGMFC_EPERM", |
| } |
| |
| var OfpGroupModFailedCode_value = map[string]int32{ |
| "OFPGMFC_GROUP_EXISTS": 0, |
| "OFPGMFC_INVALID_GROUP": 1, |
| "OFPGMFC_WEIGHT_UNSUPPORTED": 2, |
| "OFPGMFC_OUT_OF_GROUPS": 3, |
| "OFPGMFC_OUT_OF_BUCKETS": 4, |
| "OFPGMFC_CHAINING_UNSUPPORTED": 5, |
| "OFPGMFC_WATCH_UNSUPPORTED": 6, |
| "OFPGMFC_LOOP": 7, |
| "OFPGMFC_UNKNOWN_GROUP": 8, |
| "OFPGMFC_CHAINED_GROUP": 9, |
| "OFPGMFC_BAD_TYPE": 10, |
| "OFPGMFC_BAD_COMMAND": 11, |
| "OFPGMFC_BAD_BUCKET": 12, |
| "OFPGMFC_BAD_WATCH": 13, |
| "OFPGMFC_EPERM": 14, |
| } |
| |
| func (x OfpGroupModFailedCode) String() string { |
| return proto.EnumName(OfpGroupModFailedCode_name, int32(x)) |
| } |
| |
| func (OfpGroupModFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{37} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_PORT_MOD_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpPortModFailedCode int32 |
| |
| const ( |
| OfpPortModFailedCode_OFPPMFC_BAD_PORT OfpPortModFailedCode = 0 |
| OfpPortModFailedCode_OFPPMFC_BAD_HW_ADDR OfpPortModFailedCode = 1 |
| OfpPortModFailedCode_OFPPMFC_BAD_CONFIG OfpPortModFailedCode = 2 |
| OfpPortModFailedCode_OFPPMFC_BAD_ADVERTISE OfpPortModFailedCode = 3 |
| OfpPortModFailedCode_OFPPMFC_EPERM OfpPortModFailedCode = 4 |
| ) |
| |
| var OfpPortModFailedCode_name = map[int32]string{ |
| 0: "OFPPMFC_BAD_PORT", |
| 1: "OFPPMFC_BAD_HW_ADDR", |
| 2: "OFPPMFC_BAD_CONFIG", |
| 3: "OFPPMFC_BAD_ADVERTISE", |
| 4: "OFPPMFC_EPERM", |
| } |
| |
| var OfpPortModFailedCode_value = map[string]int32{ |
| "OFPPMFC_BAD_PORT": 0, |
| "OFPPMFC_BAD_HW_ADDR": 1, |
| "OFPPMFC_BAD_CONFIG": 2, |
| "OFPPMFC_BAD_ADVERTISE": 3, |
| "OFPPMFC_EPERM": 4, |
| } |
| |
| func (x OfpPortModFailedCode) String() string { |
| return proto.EnumName(OfpPortModFailedCode_name, int32(x)) |
| } |
| |
| func (OfpPortModFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{38} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_TABLE_MOD_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpTableModFailedCode int32 |
| |
| const ( |
| OfpTableModFailedCode_OFPTMFC_BAD_TABLE OfpTableModFailedCode = 0 |
| OfpTableModFailedCode_OFPTMFC_BAD_CONFIG OfpTableModFailedCode = 1 |
| OfpTableModFailedCode_OFPTMFC_EPERM OfpTableModFailedCode = 2 |
| ) |
| |
| var OfpTableModFailedCode_name = map[int32]string{ |
| 0: "OFPTMFC_BAD_TABLE", |
| 1: "OFPTMFC_BAD_CONFIG", |
| 2: "OFPTMFC_EPERM", |
| } |
| |
| var OfpTableModFailedCode_value = map[string]int32{ |
| "OFPTMFC_BAD_TABLE": 0, |
| "OFPTMFC_BAD_CONFIG": 1, |
| "OFPTMFC_EPERM": 2, |
| } |
| |
| func (x OfpTableModFailedCode) String() string { |
| return proto.EnumName(OfpTableModFailedCode_name, int32(x)) |
| } |
| |
| func (OfpTableModFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{39} |
| } |
| |
| // ofp_error msg 'code' values for OFPET_QUEUE_OP_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request |
| type OfpQueueOpFailedCode int32 |
| |
| const ( |
| OfpQueueOpFailedCode_OFPQOFC_BAD_PORT OfpQueueOpFailedCode = 0 |
| OfpQueueOpFailedCode_OFPQOFC_BAD_QUEUE OfpQueueOpFailedCode = 1 |
| OfpQueueOpFailedCode_OFPQOFC_EPERM OfpQueueOpFailedCode = 2 |
| ) |
| |
| var OfpQueueOpFailedCode_name = map[int32]string{ |
| 0: "OFPQOFC_BAD_PORT", |
| 1: "OFPQOFC_BAD_QUEUE", |
| 2: "OFPQOFC_EPERM", |
| } |
| |
| var OfpQueueOpFailedCode_value = map[string]int32{ |
| "OFPQOFC_BAD_PORT": 0, |
| "OFPQOFC_BAD_QUEUE": 1, |
| "OFPQOFC_EPERM": 2, |
| } |
| |
| func (x OfpQueueOpFailedCode) String() string { |
| return proto.EnumName(OfpQueueOpFailedCode_name, int32(x)) |
| } |
| |
| func (OfpQueueOpFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{40} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_SWITCH_CONFIG_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpSwitchConfigFailedCode int32 |
| |
| const ( |
| OfpSwitchConfigFailedCode_OFPSCFC_BAD_FLAGS OfpSwitchConfigFailedCode = 0 |
| OfpSwitchConfigFailedCode_OFPSCFC_BAD_LEN OfpSwitchConfigFailedCode = 1 |
| OfpSwitchConfigFailedCode_OFPSCFC_EPERM OfpSwitchConfigFailedCode = 2 |
| ) |
| |
| var OfpSwitchConfigFailedCode_name = map[int32]string{ |
| 0: "OFPSCFC_BAD_FLAGS", |
| 1: "OFPSCFC_BAD_LEN", |
| 2: "OFPSCFC_EPERM", |
| } |
| |
| var OfpSwitchConfigFailedCode_value = map[string]int32{ |
| "OFPSCFC_BAD_FLAGS": 0, |
| "OFPSCFC_BAD_LEN": 1, |
| "OFPSCFC_EPERM": 2, |
| } |
| |
| func (x OfpSwitchConfigFailedCode) String() string { |
| return proto.EnumName(OfpSwitchConfigFailedCode_name, int32(x)) |
| } |
| |
| func (OfpSwitchConfigFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{41} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_ROLE_REQUEST_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpRoleRequestFailedCode int32 |
| |
| const ( |
| OfpRoleRequestFailedCode_OFPRRFC_STALE OfpRoleRequestFailedCode = 0 |
| OfpRoleRequestFailedCode_OFPRRFC_UNSUP OfpRoleRequestFailedCode = 1 |
| OfpRoleRequestFailedCode_OFPRRFC_BAD_ROLE OfpRoleRequestFailedCode = 2 |
| ) |
| |
| var OfpRoleRequestFailedCode_name = map[int32]string{ |
| 0: "OFPRRFC_STALE", |
| 1: "OFPRRFC_UNSUP", |
| 2: "OFPRRFC_BAD_ROLE", |
| } |
| |
| var OfpRoleRequestFailedCode_value = map[string]int32{ |
| "OFPRRFC_STALE": 0, |
| "OFPRRFC_UNSUP": 1, |
| "OFPRRFC_BAD_ROLE": 2, |
| } |
| |
| func (x OfpRoleRequestFailedCode) String() string { |
| return proto.EnumName(OfpRoleRequestFailedCode_name, int32(x)) |
| } |
| |
| func (OfpRoleRequestFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{42} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_METER_MOD_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpMeterModFailedCode int32 |
| |
| const ( |
| OfpMeterModFailedCode_OFPMMFC_UNKNOWN OfpMeterModFailedCode = 0 |
| OfpMeterModFailedCode_OFPMMFC_METER_EXISTS OfpMeterModFailedCode = 1 |
| OfpMeterModFailedCode_OFPMMFC_INVALID_METER OfpMeterModFailedCode = 2 |
| OfpMeterModFailedCode_OFPMMFC_UNKNOWN_METER OfpMeterModFailedCode = 3 |
| OfpMeterModFailedCode_OFPMMFC_BAD_COMMAND OfpMeterModFailedCode = 4 |
| OfpMeterModFailedCode_OFPMMFC_BAD_FLAGS OfpMeterModFailedCode = 5 |
| OfpMeterModFailedCode_OFPMMFC_BAD_RATE OfpMeterModFailedCode = 6 |
| OfpMeterModFailedCode_OFPMMFC_BAD_BURST OfpMeterModFailedCode = 7 |
| OfpMeterModFailedCode_OFPMMFC_BAD_BAND OfpMeterModFailedCode = 8 |
| OfpMeterModFailedCode_OFPMMFC_BAD_BAND_DETAIL OfpMeterModFailedCode = 9 |
| OfpMeterModFailedCode_OFPMMFC_OUT_OF_METERS OfpMeterModFailedCode = 10 |
| OfpMeterModFailedCode_OFPMMFC_OUT_OF_BANDS OfpMeterModFailedCode = 11 |
| ) |
| |
| var OfpMeterModFailedCode_name = map[int32]string{ |
| 0: "OFPMMFC_UNKNOWN", |
| 1: "OFPMMFC_METER_EXISTS", |
| 2: "OFPMMFC_INVALID_METER", |
| 3: "OFPMMFC_UNKNOWN_METER", |
| 4: "OFPMMFC_BAD_COMMAND", |
| 5: "OFPMMFC_BAD_FLAGS", |
| 6: "OFPMMFC_BAD_RATE", |
| 7: "OFPMMFC_BAD_BURST", |
| 8: "OFPMMFC_BAD_BAND", |
| 9: "OFPMMFC_BAD_BAND_DETAIL", |
| 10: "OFPMMFC_OUT_OF_METERS", |
| 11: "OFPMMFC_OUT_OF_BANDS", |
| } |
| |
| var OfpMeterModFailedCode_value = map[string]int32{ |
| "OFPMMFC_UNKNOWN": 0, |
| "OFPMMFC_METER_EXISTS": 1, |
| "OFPMMFC_INVALID_METER": 2, |
| "OFPMMFC_UNKNOWN_METER": 3, |
| "OFPMMFC_BAD_COMMAND": 4, |
| "OFPMMFC_BAD_FLAGS": 5, |
| "OFPMMFC_BAD_RATE": 6, |
| "OFPMMFC_BAD_BURST": 7, |
| "OFPMMFC_BAD_BAND": 8, |
| "OFPMMFC_BAD_BAND_DETAIL": 9, |
| "OFPMMFC_OUT_OF_METERS": 10, |
| "OFPMMFC_OUT_OF_BANDS": 11, |
| } |
| |
| func (x OfpMeterModFailedCode) String() string { |
| return proto.EnumName(OfpMeterModFailedCode_name, int32(x)) |
| } |
| |
| func (OfpMeterModFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{43} |
| } |
| |
| // ofp_error_msg 'code' values for OFPET_TABLE_FEATURES_FAILED. 'data' contains |
| // at least the first 64 bytes of the failed request. |
| type OfpTableFeaturesFailedCode int32 |
| |
| const ( |
| OfpTableFeaturesFailedCode_OFPTFFC_BAD_TABLE OfpTableFeaturesFailedCode = 0 |
| OfpTableFeaturesFailedCode_OFPTFFC_BAD_METADATA OfpTableFeaturesFailedCode = 1 |
| OfpTableFeaturesFailedCode_OFPTFFC_BAD_TYPE OfpTableFeaturesFailedCode = 2 |
| OfpTableFeaturesFailedCode_OFPTFFC_BAD_LEN OfpTableFeaturesFailedCode = 3 |
| OfpTableFeaturesFailedCode_OFPTFFC_BAD_ARGUMENT OfpTableFeaturesFailedCode = 4 |
| OfpTableFeaturesFailedCode_OFPTFFC_EPERM OfpTableFeaturesFailedCode = 5 |
| ) |
| |
| var OfpTableFeaturesFailedCode_name = map[int32]string{ |
| 0: "OFPTFFC_BAD_TABLE", |
| 1: "OFPTFFC_BAD_METADATA", |
| 2: "OFPTFFC_BAD_TYPE", |
| 3: "OFPTFFC_BAD_LEN", |
| 4: "OFPTFFC_BAD_ARGUMENT", |
| 5: "OFPTFFC_EPERM", |
| } |
| |
| var OfpTableFeaturesFailedCode_value = map[string]int32{ |
| "OFPTFFC_BAD_TABLE": 0, |
| "OFPTFFC_BAD_METADATA": 1, |
| "OFPTFFC_BAD_TYPE": 2, |
| "OFPTFFC_BAD_LEN": 3, |
| "OFPTFFC_BAD_ARGUMENT": 4, |
| "OFPTFFC_EPERM": 5, |
| } |
| |
| func (x OfpTableFeaturesFailedCode) String() string { |
| return proto.EnumName(OfpTableFeaturesFailedCode_name, int32(x)) |
| } |
| |
| func (OfpTableFeaturesFailedCode) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{44} |
| } |
| |
| type OfpMultipartType int32 |
| |
| const ( |
| // Description of this OpenFlow switch. |
| // The request body is empty. |
| // The reply body is struct ofp_desc. |
| OfpMultipartType_OFPMP_DESC OfpMultipartType = 0 |
| // Individual flow statistics. |
| // The request body is struct ofp_flow_stats_request. |
| // The reply body is an array of struct ofp_flow_stats. |
| OfpMultipartType_OFPMP_FLOW OfpMultipartType = 1 |
| // Aggregate flow statistics. |
| // The request body is struct ofp_aggregate_stats_request. |
| // The reply body is struct ofp_aggregate_stats_reply. |
| OfpMultipartType_OFPMP_AGGREGATE OfpMultipartType = 2 |
| // Flow table statistics. |
| // The request body is empty. |
| // The reply body is an array of struct ofp_table_stats. |
| OfpMultipartType_OFPMP_TABLE OfpMultipartType = 3 |
| // Port statistics. |
| // The request body is struct ofp_port_stats_request. |
| // The reply body is an array of struct ofp_port_stats. |
| OfpMultipartType_OFPMP_PORT_STATS OfpMultipartType = 4 |
| // Queue statistics for a port |
| // The request body is struct ofp_queue_stats_request. |
| // The reply body is an array of struct ofp_queue_stats |
| OfpMultipartType_OFPMP_QUEUE OfpMultipartType = 5 |
| // Group counter statistics. |
| // The request body is struct ofp_group_stats_request. |
| // The reply is an array of struct ofp_group_stats. |
| OfpMultipartType_OFPMP_GROUP OfpMultipartType = 6 |
| // Group description. |
| // The request body is empty. |
| // The reply body is an array of struct ofp_group_desc. |
| OfpMultipartType_OFPMP_GROUP_DESC OfpMultipartType = 7 |
| // Group features. |
| // The request body is empty. |
| // The reply body is struct ofp_group_features. |
| OfpMultipartType_OFPMP_GROUP_FEATURES OfpMultipartType = 8 |
| // Meter statistics. |
| // The request body is struct ofp_meter_multipart_requests. |
| // The reply body is an array of struct ofp_meter_stats. |
| OfpMultipartType_OFPMP_METER OfpMultipartType = 9 |
| // Meter configuration. |
| // The request body is struct ofp_meter_multipart_requests. |
| // The reply body is an array of struct ofp_meter_config. |
| OfpMultipartType_OFPMP_METER_CONFIG OfpMultipartType = 10 |
| // Meter features. |
| // The request body is empty. |
| // The reply body is struct ofp_meter_features. |
| OfpMultipartType_OFPMP_METER_FEATURES OfpMultipartType = 11 |
| // Table features. |
| // The request body is either empty or contains an array of |
| // struct ofp_table_features containing the controller's |
| // desired view of the switch. If the switch is unable to |
| // set the specified view an error is returned. |
| // The reply body is an array of struct ofp_table_features. |
| OfpMultipartType_OFPMP_TABLE_FEATURES OfpMultipartType = 12 |
| // Port description. |
| // The request body is empty. |
| // The reply body is an array of struct ofp_port. |
| OfpMultipartType_OFPMP_PORT_DESC OfpMultipartType = 13 |
| // Experimenter extension. |
| // The request and reply bodies begin with |
| // struct ofp_experimenter_multipart_header. |
| // The request and reply bodies are otherwise experimenter-defined. |
| OfpMultipartType_OFPMP_EXPERIMENTER OfpMultipartType = 65535 |
| ) |
| |
| var OfpMultipartType_name = map[int32]string{ |
| 0: "OFPMP_DESC", |
| 1: "OFPMP_FLOW", |
| 2: "OFPMP_AGGREGATE", |
| 3: "OFPMP_TABLE", |
| 4: "OFPMP_PORT_STATS", |
| 5: "OFPMP_QUEUE", |
| 6: "OFPMP_GROUP", |
| 7: "OFPMP_GROUP_DESC", |
| 8: "OFPMP_GROUP_FEATURES", |
| 9: "OFPMP_METER", |
| 10: "OFPMP_METER_CONFIG", |
| 11: "OFPMP_METER_FEATURES", |
| 12: "OFPMP_TABLE_FEATURES", |
| 13: "OFPMP_PORT_DESC", |
| 65535: "OFPMP_EXPERIMENTER", |
| } |
| |
| var OfpMultipartType_value = map[string]int32{ |
| "OFPMP_DESC": 0, |
| "OFPMP_FLOW": 1, |
| "OFPMP_AGGREGATE": 2, |
| "OFPMP_TABLE": 3, |
| "OFPMP_PORT_STATS": 4, |
| "OFPMP_QUEUE": 5, |
| "OFPMP_GROUP": 6, |
| "OFPMP_GROUP_DESC": 7, |
| "OFPMP_GROUP_FEATURES": 8, |
| "OFPMP_METER": 9, |
| "OFPMP_METER_CONFIG": 10, |
| "OFPMP_METER_FEATURES": 11, |
| "OFPMP_TABLE_FEATURES": 12, |
| "OFPMP_PORT_DESC": 13, |
| "OFPMP_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpMultipartType) String() string { |
| return proto.EnumName(OfpMultipartType_name, int32(x)) |
| } |
| |
| func (OfpMultipartType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{45} |
| } |
| |
| type OfpMultipartRequestFlags int32 |
| |
| const ( |
| OfpMultipartRequestFlags_OFPMPF_REQ_INVALID OfpMultipartRequestFlags = 0 |
| OfpMultipartRequestFlags_OFPMPF_REQ_MORE OfpMultipartRequestFlags = 1 |
| ) |
| |
| var OfpMultipartRequestFlags_name = map[int32]string{ |
| 0: "OFPMPF_REQ_INVALID", |
| 1: "OFPMPF_REQ_MORE", |
| } |
| |
| var OfpMultipartRequestFlags_value = map[string]int32{ |
| "OFPMPF_REQ_INVALID": 0, |
| "OFPMPF_REQ_MORE": 1, |
| } |
| |
| func (x OfpMultipartRequestFlags) String() string { |
| return proto.EnumName(OfpMultipartRequestFlags_name, int32(x)) |
| } |
| |
| func (OfpMultipartRequestFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{46} |
| } |
| |
| type OfpMultipartReplyFlags int32 |
| |
| const ( |
| OfpMultipartReplyFlags_OFPMPF_REPLY_INVALID OfpMultipartReplyFlags = 0 |
| OfpMultipartReplyFlags_OFPMPF_REPLY_MORE OfpMultipartReplyFlags = 1 |
| ) |
| |
| var OfpMultipartReplyFlags_name = map[int32]string{ |
| 0: "OFPMPF_REPLY_INVALID", |
| 1: "OFPMPF_REPLY_MORE", |
| } |
| |
| var OfpMultipartReplyFlags_value = map[string]int32{ |
| "OFPMPF_REPLY_INVALID": 0, |
| "OFPMPF_REPLY_MORE": 1, |
| } |
| |
| func (x OfpMultipartReplyFlags) String() string { |
| return proto.EnumName(OfpMultipartReplyFlags_name, int32(x)) |
| } |
| |
| func (OfpMultipartReplyFlags) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{47} |
| } |
| |
| // Table Feature property types. |
| // Low order bit cleared indicates a property for a regular Flow Entry. |
| // Low order bit set indicates a property for the Table-Miss Flow Entry. |
| type OfpTableFeaturePropType int32 |
| |
| const ( |
| OfpTableFeaturePropType_OFPTFPT_INSTRUCTIONS OfpTableFeaturePropType = 0 |
| OfpTableFeaturePropType_OFPTFPT_INSTRUCTIONS_MISS OfpTableFeaturePropType = 1 |
| OfpTableFeaturePropType_OFPTFPT_NEXT_TABLES OfpTableFeaturePropType = 2 |
| OfpTableFeaturePropType_OFPTFPT_NEXT_TABLES_MISS OfpTableFeaturePropType = 3 |
| OfpTableFeaturePropType_OFPTFPT_WRITE_ACTIONS OfpTableFeaturePropType = 4 |
| OfpTableFeaturePropType_OFPTFPT_WRITE_ACTIONS_MISS OfpTableFeaturePropType = 5 |
| OfpTableFeaturePropType_OFPTFPT_APPLY_ACTIONS OfpTableFeaturePropType = 6 |
| OfpTableFeaturePropType_OFPTFPT_APPLY_ACTIONS_MISS OfpTableFeaturePropType = 7 |
| OfpTableFeaturePropType_OFPTFPT_MATCH OfpTableFeaturePropType = 8 |
| OfpTableFeaturePropType_OFPTFPT_WILDCARDS OfpTableFeaturePropType = 10 |
| OfpTableFeaturePropType_OFPTFPT_WRITE_SETFIELD OfpTableFeaturePropType = 12 |
| OfpTableFeaturePropType_OFPTFPT_WRITE_SETFIELD_MISS OfpTableFeaturePropType = 13 |
| OfpTableFeaturePropType_OFPTFPT_APPLY_SETFIELD OfpTableFeaturePropType = 14 |
| OfpTableFeaturePropType_OFPTFPT_APPLY_SETFIELD_MISS OfpTableFeaturePropType = 15 |
| OfpTableFeaturePropType_OFPTFPT_EXPERIMENTER OfpTableFeaturePropType = 65534 |
| OfpTableFeaturePropType_OFPTFPT_EXPERIMENTER_MISS OfpTableFeaturePropType = 65535 |
| ) |
| |
| var OfpTableFeaturePropType_name = map[int32]string{ |
| 0: "OFPTFPT_INSTRUCTIONS", |
| 1: "OFPTFPT_INSTRUCTIONS_MISS", |
| 2: "OFPTFPT_NEXT_TABLES", |
| 3: "OFPTFPT_NEXT_TABLES_MISS", |
| 4: "OFPTFPT_WRITE_ACTIONS", |
| 5: "OFPTFPT_WRITE_ACTIONS_MISS", |
| 6: "OFPTFPT_APPLY_ACTIONS", |
| 7: "OFPTFPT_APPLY_ACTIONS_MISS", |
| 8: "OFPTFPT_MATCH", |
| 10: "OFPTFPT_WILDCARDS", |
| 12: "OFPTFPT_WRITE_SETFIELD", |
| 13: "OFPTFPT_WRITE_SETFIELD_MISS", |
| 14: "OFPTFPT_APPLY_SETFIELD", |
| 15: "OFPTFPT_APPLY_SETFIELD_MISS", |
| 65534: "OFPTFPT_EXPERIMENTER", |
| 65535: "OFPTFPT_EXPERIMENTER_MISS", |
| } |
| |
| var OfpTableFeaturePropType_value = map[string]int32{ |
| "OFPTFPT_INSTRUCTIONS": 0, |
| "OFPTFPT_INSTRUCTIONS_MISS": 1, |
| "OFPTFPT_NEXT_TABLES": 2, |
| "OFPTFPT_NEXT_TABLES_MISS": 3, |
| "OFPTFPT_WRITE_ACTIONS": 4, |
| "OFPTFPT_WRITE_ACTIONS_MISS": 5, |
| "OFPTFPT_APPLY_ACTIONS": 6, |
| "OFPTFPT_APPLY_ACTIONS_MISS": 7, |
| "OFPTFPT_MATCH": 8, |
| "OFPTFPT_WILDCARDS": 10, |
| "OFPTFPT_WRITE_SETFIELD": 12, |
| "OFPTFPT_WRITE_SETFIELD_MISS": 13, |
| "OFPTFPT_APPLY_SETFIELD": 14, |
| "OFPTFPT_APPLY_SETFIELD_MISS": 15, |
| "OFPTFPT_EXPERIMENTER": 65534, |
| "OFPTFPT_EXPERIMENTER_MISS": 65535, |
| } |
| |
| func (x OfpTableFeaturePropType) String() string { |
| return proto.EnumName(OfpTableFeaturePropType_name, int32(x)) |
| } |
| |
| func (OfpTableFeaturePropType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{48} |
| } |
| |
| // Group configuration flags |
| type OfpGroupCapabilities int32 |
| |
| const ( |
| OfpGroupCapabilities_OFPGFC_INVALID OfpGroupCapabilities = 0 |
| OfpGroupCapabilities_OFPGFC_SELECT_WEIGHT OfpGroupCapabilities = 1 |
| OfpGroupCapabilities_OFPGFC_SELECT_LIVENESS OfpGroupCapabilities = 2 |
| OfpGroupCapabilities_OFPGFC_CHAINING OfpGroupCapabilities = 4 |
| OfpGroupCapabilities_OFPGFC_CHAINING_CHECKS OfpGroupCapabilities = 8 |
| ) |
| |
| var OfpGroupCapabilities_name = map[int32]string{ |
| 0: "OFPGFC_INVALID", |
| 1: "OFPGFC_SELECT_WEIGHT", |
| 2: "OFPGFC_SELECT_LIVENESS", |
| 4: "OFPGFC_CHAINING", |
| 8: "OFPGFC_CHAINING_CHECKS", |
| } |
| |
| var OfpGroupCapabilities_value = map[string]int32{ |
| "OFPGFC_INVALID": 0, |
| "OFPGFC_SELECT_WEIGHT": 1, |
| "OFPGFC_SELECT_LIVENESS": 2, |
| "OFPGFC_CHAINING": 4, |
| "OFPGFC_CHAINING_CHECKS": 8, |
| } |
| |
| func (x OfpGroupCapabilities) String() string { |
| return proto.EnumName(OfpGroupCapabilities_name, int32(x)) |
| } |
| |
| func (OfpGroupCapabilities) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{49} |
| } |
| |
| type OfpQueueProperties int32 |
| |
| const ( |
| OfpQueueProperties_OFPQT_INVALID OfpQueueProperties = 0 |
| OfpQueueProperties_OFPQT_MIN_RATE OfpQueueProperties = 1 |
| OfpQueueProperties_OFPQT_MAX_RATE OfpQueueProperties = 2 |
| OfpQueueProperties_OFPQT_EXPERIMENTER OfpQueueProperties = 65535 |
| ) |
| |
| var OfpQueueProperties_name = map[int32]string{ |
| 0: "OFPQT_INVALID", |
| 1: "OFPQT_MIN_RATE", |
| 2: "OFPQT_MAX_RATE", |
| 65535: "OFPQT_EXPERIMENTER", |
| } |
| |
| var OfpQueueProperties_value = map[string]int32{ |
| "OFPQT_INVALID": 0, |
| "OFPQT_MIN_RATE": 1, |
| "OFPQT_MAX_RATE": 2, |
| "OFPQT_EXPERIMENTER": 65535, |
| } |
| |
| func (x OfpQueueProperties) String() string { |
| return proto.EnumName(OfpQueueProperties_name, int32(x)) |
| } |
| |
| func (OfpQueueProperties) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{50} |
| } |
| |
| // Controller roles. |
| type OfpControllerRole int32 |
| |
| const ( |
| OfpControllerRole_OFPCR_ROLE_NOCHANGE OfpControllerRole = 0 |
| OfpControllerRole_OFPCR_ROLE_EQUAL OfpControllerRole = 1 |
| OfpControllerRole_OFPCR_ROLE_MASTER OfpControllerRole = 2 |
| OfpControllerRole_OFPCR_ROLE_SLAVE OfpControllerRole = 3 |
| ) |
| |
| var OfpControllerRole_name = map[int32]string{ |
| 0: "OFPCR_ROLE_NOCHANGE", |
| 1: "OFPCR_ROLE_EQUAL", |
| 2: "OFPCR_ROLE_MASTER", |
| 3: "OFPCR_ROLE_SLAVE", |
| } |
| |
| var OfpControllerRole_value = map[string]int32{ |
| "OFPCR_ROLE_NOCHANGE": 0, |
| "OFPCR_ROLE_EQUAL": 1, |
| "OFPCR_ROLE_MASTER": 2, |
| "OFPCR_ROLE_SLAVE": 3, |
| } |
| |
| func (x OfpControllerRole) String() string { |
| return proto.EnumName(OfpControllerRole_name, int32(x)) |
| } |
| |
| func (OfpControllerRole) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{51} |
| } |
| |
| // Header on all OpenFlow packets. |
| type OfpHeader struct { |
| Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| Type OfpType `protobuf:"varint,2,opt,name=type,proto3,enum=openflow_13.OfpType" json:"type,omitempty"` |
| Xid uint32 `protobuf:"varint,3,opt,name=xid,proto3" json:"xid,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpHeader) Reset() { *m = OfpHeader{} } |
| func (m *OfpHeader) String() string { return proto.CompactTextString(m) } |
| func (*OfpHeader) ProtoMessage() {} |
| func (*OfpHeader) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{0} |
| } |
| |
| func (m *OfpHeader) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpHeader.Unmarshal(m, b) |
| } |
| func (m *OfpHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpHeader.Marshal(b, m, deterministic) |
| } |
| func (m *OfpHeader) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpHeader.Merge(m, src) |
| } |
| func (m *OfpHeader) XXX_Size() int { |
| return xxx_messageInfo_OfpHeader.Size(m) |
| } |
| func (m *OfpHeader) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpHeader.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpHeader proto.InternalMessageInfo |
| |
| func (m *OfpHeader) GetVersion() uint32 { |
| if m != nil { |
| return m.Version |
| } |
| return 0 |
| } |
| |
| func (m *OfpHeader) GetType() OfpType { |
| if m != nil { |
| return m.Type |
| } |
| return OfpType_OFPT_HELLO |
| } |
| |
| func (m *OfpHeader) GetXid() uint32 { |
| if m != nil { |
| return m.Xid |
| } |
| return 0 |
| } |
| |
| // Common header for all Hello Elements |
| type OfpHelloElemHeader struct { |
| Type OfpHelloElemType `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OfpHelloElemType" json:"type,omitempty"` |
| // Types that are valid to be assigned to Element: |
| // *OfpHelloElemHeader_Versionbitmap |
| Element isOfpHelloElemHeader_Element `protobuf_oneof:"element"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpHelloElemHeader) Reset() { *m = OfpHelloElemHeader{} } |
| func (m *OfpHelloElemHeader) String() string { return proto.CompactTextString(m) } |
| func (*OfpHelloElemHeader) ProtoMessage() {} |
| func (*OfpHelloElemHeader) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{1} |
| } |
| |
| func (m *OfpHelloElemHeader) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpHelloElemHeader.Unmarshal(m, b) |
| } |
| func (m *OfpHelloElemHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpHelloElemHeader.Marshal(b, m, deterministic) |
| } |
| func (m *OfpHelloElemHeader) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpHelloElemHeader.Merge(m, src) |
| } |
| func (m *OfpHelloElemHeader) XXX_Size() int { |
| return xxx_messageInfo_OfpHelloElemHeader.Size(m) |
| } |
| func (m *OfpHelloElemHeader) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpHelloElemHeader.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpHelloElemHeader proto.InternalMessageInfo |
| |
| func (m *OfpHelloElemHeader) GetType() OfpHelloElemType { |
| if m != nil { |
| return m.Type |
| } |
| return OfpHelloElemType_OFPHET_INVALID |
| } |
| |
| type isOfpHelloElemHeader_Element interface { |
| isOfpHelloElemHeader_Element() |
| } |
| |
| type OfpHelloElemHeader_Versionbitmap struct { |
| Versionbitmap *OfpHelloElemVersionbitmap `protobuf:"bytes,2,opt,name=versionbitmap,proto3,oneof"` |
| } |
| |
| func (*OfpHelloElemHeader_Versionbitmap) isOfpHelloElemHeader_Element() {} |
| |
| func (m *OfpHelloElemHeader) GetElement() isOfpHelloElemHeader_Element { |
| if m != nil { |
| return m.Element |
| } |
| return nil |
| } |
| |
| func (m *OfpHelloElemHeader) GetVersionbitmap() *OfpHelloElemVersionbitmap { |
| if x, ok := m.GetElement().(*OfpHelloElemHeader_Versionbitmap); ok { |
| return x.Versionbitmap |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*OfpHelloElemHeader) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*OfpHelloElemHeader_Versionbitmap)(nil), |
| } |
| } |
| |
| // Version bitmap Hello Element |
| type OfpHelloElemVersionbitmap struct { |
| Bitmaps []uint32 `protobuf:"varint,2,rep,packed,name=bitmaps,proto3" json:"bitmaps,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpHelloElemVersionbitmap) Reset() { *m = OfpHelloElemVersionbitmap{} } |
| func (m *OfpHelloElemVersionbitmap) String() string { return proto.CompactTextString(m) } |
| func (*OfpHelloElemVersionbitmap) ProtoMessage() {} |
| func (*OfpHelloElemVersionbitmap) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{2} |
| } |
| |
| func (m *OfpHelloElemVersionbitmap) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpHelloElemVersionbitmap.Unmarshal(m, b) |
| } |
| func (m *OfpHelloElemVersionbitmap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpHelloElemVersionbitmap.Marshal(b, m, deterministic) |
| } |
| func (m *OfpHelloElemVersionbitmap) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpHelloElemVersionbitmap.Merge(m, src) |
| } |
| func (m *OfpHelloElemVersionbitmap) XXX_Size() int { |
| return xxx_messageInfo_OfpHelloElemVersionbitmap.Size(m) |
| } |
| func (m *OfpHelloElemVersionbitmap) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpHelloElemVersionbitmap.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpHelloElemVersionbitmap proto.InternalMessageInfo |
| |
| func (m *OfpHelloElemVersionbitmap) GetBitmaps() []uint32 { |
| if m != nil { |
| return m.Bitmaps |
| } |
| return nil |
| } |
| |
| // OFPT_HELLO. This message includes zero or more hello elements having |
| // variable size. Unknown elements types must be ignored/skipped, to allow |
| // for future extensions. |
| type OfpHello struct { |
| // Hello element list |
| Elements []*OfpHelloElemHeader `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpHello) Reset() { *m = OfpHello{} } |
| func (m *OfpHello) String() string { return proto.CompactTextString(m) } |
| func (*OfpHello) ProtoMessage() {} |
| func (*OfpHello) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{3} |
| } |
| |
| func (m *OfpHello) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpHello.Unmarshal(m, b) |
| } |
| func (m *OfpHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpHello.Marshal(b, m, deterministic) |
| } |
| func (m *OfpHello) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpHello.Merge(m, src) |
| } |
| func (m *OfpHello) XXX_Size() int { |
| return xxx_messageInfo_OfpHello.Size(m) |
| } |
| func (m *OfpHello) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpHello.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpHello proto.InternalMessageInfo |
| |
| func (m *OfpHello) GetElements() []*OfpHelloElemHeader { |
| if m != nil { |
| return m.Elements |
| } |
| return nil |
| } |
| |
| // Switch configuration. |
| type OfpSwitchConfig struct { |
| //ofp_header header; |
| Flags uint32 `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"` |
| MissSendLen uint32 `protobuf:"varint,2,opt,name=miss_send_len,json=missSendLen,proto3" json:"miss_send_len,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpSwitchConfig) Reset() { *m = OfpSwitchConfig{} } |
| func (m *OfpSwitchConfig) String() string { return proto.CompactTextString(m) } |
| func (*OfpSwitchConfig) ProtoMessage() {} |
| func (*OfpSwitchConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{4} |
| } |
| |
| func (m *OfpSwitchConfig) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpSwitchConfig.Unmarshal(m, b) |
| } |
| func (m *OfpSwitchConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpSwitchConfig.Marshal(b, m, deterministic) |
| } |
| func (m *OfpSwitchConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpSwitchConfig.Merge(m, src) |
| } |
| func (m *OfpSwitchConfig) XXX_Size() int { |
| return xxx_messageInfo_OfpSwitchConfig.Size(m) |
| } |
| func (m *OfpSwitchConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpSwitchConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpSwitchConfig proto.InternalMessageInfo |
| |
| func (m *OfpSwitchConfig) GetFlags() uint32 { |
| if m != nil { |
| return m.Flags |
| } |
| return 0 |
| } |
| |
| func (m *OfpSwitchConfig) GetMissSendLen() uint32 { |
| if m != nil { |
| return m.MissSendLen |
| } |
| return 0 |
| } |
| |
| // Configure/Modify behavior of a flow table |
| type OfpTableMod struct { |
| //ofp_header header; |
| TableId uint32 `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` |
| Config uint32 `protobuf:"varint,2,opt,name=config,proto3" json:"config,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpTableMod) Reset() { *m = OfpTableMod{} } |
| func (m *OfpTableMod) String() string { return proto.CompactTextString(m) } |
| func (*OfpTableMod) ProtoMessage() {} |
| func (*OfpTableMod) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{5} |
| } |
| |
| func (m *OfpTableMod) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpTableMod.Unmarshal(m, b) |
| } |
| func (m *OfpTableMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpTableMod.Marshal(b, m, deterministic) |
| } |
| func (m *OfpTableMod) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpTableMod.Merge(m, src) |
| } |
| func (m *OfpTableMod) XXX_Size() int { |
| return xxx_messageInfo_OfpTableMod.Size(m) |
| } |
| func (m *OfpTableMod) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpTableMod.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpTableMod proto.InternalMessageInfo |
| |
| func (m *OfpTableMod) GetTableId() uint32 { |
| if m != nil { |
| return m.TableId |
| } |
| return 0 |
| } |
| |
| func (m *OfpTableMod) GetConfig() uint32 { |
| if m != nil { |
| return m.Config |
| } |
| return 0 |
| } |
| |
| // Description of a port |
| type OfpPort struct { |
| PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` |
| HwAddr []uint32 `protobuf:"varint,2,rep,packed,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` |
| Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` |
| Config uint32 `protobuf:"varint,4,opt,name=config,proto3" json:"config,omitempty"` |
| State uint32 `protobuf:"varint,5,opt,name=state,proto3" json:"state,omitempty"` |
| // Bitmaps of OFPPF_* that describe features. All bits zeroed if |
| // unsupported or unavailable. |
| Curr uint32 `protobuf:"varint,6,opt,name=curr,proto3" json:"curr,omitempty"` |
| Advertised uint32 `protobuf:"varint,7,opt,name=advertised,proto3" json:"advertised,omitempty"` |
| Supported uint32 `protobuf:"varint,8,opt,name=supported,proto3" json:"supported,omitempty"` |
| Peer uint32 `protobuf:"varint,9,opt,name=peer,proto3" json:"peer,omitempty"` |
| CurrSpeed uint32 `protobuf:"varint,10,opt,name=curr_speed,json=currSpeed,proto3" json:"curr_speed,omitempty"` |
| MaxSpeed uint32 `protobuf:"varint,11,opt,name=max_speed,json=maxSpeed,proto3" json:"max_speed,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpPort) Reset() { *m = OfpPort{} } |
| func (m *OfpPort) String() string { return proto.CompactTextString(m) } |
| func (*OfpPort) ProtoMessage() {} |
| func (*OfpPort) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{6} |
| } |
| |
| func (m *OfpPort) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpPort.Unmarshal(m, b) |
| } |
| func (m *OfpPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpPort.Marshal(b, m, deterministic) |
| } |
| func (m *OfpPort) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpPort.Merge(m, src) |
| } |
| func (m *OfpPort) XXX_Size() int { |
| return xxx_messageInfo_OfpPort.Size(m) |
| } |
| func (m *OfpPort) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpPort.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpPort proto.InternalMessageInfo |
| |
| func (m *OfpPort) GetPortNo() uint32 { |
| if m != nil { |
| return m.PortNo |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetHwAddr() []uint32 { |
| if m != nil { |
| return m.HwAddr |
| } |
| return nil |
| } |
| |
| func (m *OfpPort) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *OfpPort) GetConfig() uint32 { |
| if m != nil { |
| return m.Config |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetState() uint32 { |
| if m != nil { |
| return m.State |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetCurr() uint32 { |
| if m != nil { |
| return m.Curr |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetAdvertised() uint32 { |
| if m != nil { |
| return m.Advertised |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetSupported() uint32 { |
| if m != nil { |
| return m.Supported |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetPeer() uint32 { |
| if m != nil { |
| return m.Peer |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetCurrSpeed() uint32 { |
| if m != nil { |
| return m.CurrSpeed |
| } |
| return 0 |
| } |
| |
| func (m *OfpPort) GetMaxSpeed() uint32 { |
| if m != nil { |
| return m.MaxSpeed |
| } |
| return 0 |
| } |
| |
| // Switch features. |
| type OfpSwitchFeatures struct { |
| //ofp_header header; |
| DatapathId uint64 `protobuf:"varint,1,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"` |
| NBuffers uint32 `protobuf:"varint,2,opt,name=n_buffers,json=nBuffers,proto3" json:"n_buffers,omitempty"` |
| NTables uint32 `protobuf:"varint,3,opt,name=n_tables,json=nTables,proto3" json:"n_tables,omitempty"` |
| AuxiliaryId uint32 `protobuf:"varint,4,opt,name=auxiliary_id,json=auxiliaryId,proto3" json:"auxiliary_id,omitempty"` |
| // Features. |
| Capabilities uint32 `protobuf:"varint,5,opt,name=capabilities,proto3" json:"capabilities,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpSwitchFeatures) Reset() { *m = OfpSwitchFeatures{} } |
| func (m *OfpSwitchFeatures) String() string { return proto.CompactTextString(m) } |
| func (*OfpSwitchFeatures) ProtoMessage() {} |
| func (*OfpSwitchFeatures) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{7} |
| } |
| |
| func (m *OfpSwitchFeatures) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpSwitchFeatures.Unmarshal(m, b) |
| } |
| func (m *OfpSwitchFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpSwitchFeatures.Marshal(b, m, deterministic) |
| } |
| func (m *OfpSwitchFeatures) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpSwitchFeatures.Merge(m, src) |
| } |
| func (m *OfpSwitchFeatures) XXX_Size() int { |
| return xxx_messageInfo_OfpSwitchFeatures.Size(m) |
| } |
| func (m *OfpSwitchFeatures) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpSwitchFeatures.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpSwitchFeatures proto.InternalMessageInfo |
| |
| func (m *OfpSwitchFeatures) GetDatapathId() uint64 { |
| if m != nil { |
| return m.DatapathId |
| } |
| return 0 |
| } |
| |
| func (m *OfpSwitchFeatures) GetNBuffers() uint32 { |
| if m != nil { |
| return m.NBuffers |
| } |
| return 0 |
| } |
| |
| func (m *OfpSwitchFeatures) GetNTables() uint32 { |
| if m != nil { |
| return m.NTables |
| } |
| return 0 |
| } |
| |
| func (m *OfpSwitchFeatures) GetAuxiliaryId() uint32 { |
| if m != nil { |
| return m.AuxiliaryId |
| } |
| return 0 |
| } |
| |
| func (m *OfpSwitchFeatures) GetCapabilities() uint32 { |
| if m != nil { |
| return m.Capabilities |
| } |
| return 0 |
| } |
| |
| // A physical port has changed in the datapath |
| type OfpPortStatus struct { |
| //ofp_header header; |
| Reason OfpPortReason `protobuf:"varint,1,opt,name=reason,proto3,enum=openflow_13.OfpPortReason" json:"reason,omitempty"` |
| Desc *OfpPort `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpPortStatus) Reset() { *m = OfpPortStatus{} } |
| func (m *OfpPortStatus) String() string { return proto.CompactTextString(m) } |
| func (*OfpPortStatus) ProtoMessage() {} |
| func (*OfpPortStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{8} |
| } |
| |
| func (m *OfpPortStatus) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpPortStatus.Unmarshal(m, b) |
| } |
| func (m *OfpPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpPortStatus.Marshal(b, m, deterministic) |
| } |
| func (m *OfpPortStatus) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpPortStatus.Merge(m, src) |
| } |
| func (m *OfpPortStatus) XXX_Size() int { |
| return xxx_messageInfo_OfpPortStatus.Size(m) |
| } |
| func (m *OfpPortStatus) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpPortStatus.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpPortStatus proto.InternalMessageInfo |
| |
| func (m *OfpPortStatus) GetReason() OfpPortReason { |
| if m != nil { |
| return m.Reason |
| } |
| return OfpPortReason_OFPPR_ADD |
| } |
| |
| func (m *OfpPortStatus) GetDesc() *OfpPort { |
| if m != nil { |
| return m.Desc |
| } |
| return nil |
| } |
| |
| // Modify behavior of the physical port |
| type OfpPortMod struct { |
| //ofp_header header; |
| PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` |
| HwAddr []uint32 `protobuf:"varint,2,rep,packed,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` |
| // The hardware address is not |
| //configurable. This is used to |
| //sanity-check the request, so it must |
| //be the same as returned in an |
| //ofp_port struct. |
| Config uint32 `protobuf:"varint,3,opt,name=config,proto3" json:"config,omitempty"` |
| Mask uint32 `protobuf:"varint,4,opt,name=mask,proto3" json:"mask,omitempty"` |
| Advertise uint32 `protobuf:"varint,5,opt,name=advertise,proto3" json:"advertise,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpPortMod) Reset() { *m = OfpPortMod{} } |
| func (m *OfpPortMod) String() string { return proto.CompactTextString(m) } |
| func (*OfpPortMod) ProtoMessage() {} |
| func (*OfpPortMod) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{9} |
| } |
| |
| func (m *OfpPortMod) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpPortMod.Unmarshal(m, b) |
| } |
| func (m *OfpPortMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpPortMod.Marshal(b, m, deterministic) |
| } |
| func (m *OfpPortMod) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpPortMod.Merge(m, src) |
| } |
| func (m *OfpPortMod) XXX_Size() int { |
| return xxx_messageInfo_OfpPortMod.Size(m) |
| } |
| func (m *OfpPortMod) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpPortMod.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpPortMod proto.InternalMessageInfo |
| |
| func (m *OfpPortMod) GetPortNo() uint32 { |
| if m != nil { |
| return m.PortNo |
| } |
| return 0 |
| } |
| |
| func (m *OfpPortMod) GetHwAddr() []uint32 { |
| if m != nil { |
| return m.HwAddr |
| } |
| return nil |
| } |
| |
| func (m *OfpPortMod) GetConfig() uint32 { |
| if m != nil { |
| return m.Config |
| } |
| return 0 |
| } |
| |
| func (m *OfpPortMod) GetMask() uint32 { |
| if m != nil { |
| return m.Mask |
| } |
| return 0 |
| } |
| |
| func (m *OfpPortMod) GetAdvertise() uint32 { |
| if m != nil { |
| return m.Advertise |
| } |
| return 0 |
| } |
| |
| // Fields to match against flows |
| type OfpMatch struct { |
| Type OfpMatchType `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OfpMatchType" json:"type,omitempty"` |
| OxmFields []*OfpOxmField `protobuf:"bytes,2,rep,name=oxm_fields,json=oxmFields,proto3" json:"oxm_fields,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpMatch) Reset() { *m = OfpMatch{} } |
| func (m *OfpMatch) String() string { return proto.CompactTextString(m) } |
| func (*OfpMatch) ProtoMessage() {} |
| func (*OfpMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{10} |
| } |
| |
| func (m *OfpMatch) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpMatch.Unmarshal(m, b) |
| } |
| func (m *OfpMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpMatch.Marshal(b, m, deterministic) |
| } |
| func (m *OfpMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpMatch.Merge(m, src) |
| } |
| func (m *OfpMatch) XXX_Size() int { |
| return xxx_messageInfo_OfpMatch.Size(m) |
| } |
| func (m *OfpMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpMatch proto.InternalMessageInfo |
| |
| func (m *OfpMatch) GetType() OfpMatchType { |
| if m != nil { |
| return m.Type |
| } |
| return OfpMatchType_OFPMT_STANDARD |
| } |
| |
| func (m *OfpMatch) GetOxmFields() []*OfpOxmField { |
| if m != nil { |
| return m.OxmFields |
| } |
| return nil |
| } |
| |
| // OXM Flow match fields |
| type OfpOxmField struct { |
| OxmClass OfpOxmClass `protobuf:"varint,1,opt,name=oxm_class,json=oxmClass,proto3,enum=openflow_13.OfpOxmClass" json:"oxm_class,omitempty"` |
| // Types that are valid to be assigned to Field: |
| // *OfpOxmField_OfbField |
| // *OfpOxmField_ExperimenterField |
| Field isOfpOxmField_Field `protobuf_oneof:"field"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpOxmField) Reset() { *m = OfpOxmField{} } |
| func (m *OfpOxmField) String() string { return proto.CompactTextString(m) } |
| func (*OfpOxmField) ProtoMessage() {} |
| func (*OfpOxmField) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{11} |
| } |
| |
| func (m *OfpOxmField) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpOxmField.Unmarshal(m, b) |
| } |
| func (m *OfpOxmField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpOxmField.Marshal(b, m, deterministic) |
| } |
| func (m *OfpOxmField) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpOxmField.Merge(m, src) |
| } |
| func (m *OfpOxmField) XXX_Size() int { |
| return xxx_messageInfo_OfpOxmField.Size(m) |
| } |
| func (m *OfpOxmField) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpOxmField.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpOxmField proto.InternalMessageInfo |
| |
| func (m *OfpOxmField) GetOxmClass() OfpOxmClass { |
| if m != nil { |
| return m.OxmClass |
| } |
| return OfpOxmClass_OFPXMC_NXM_0 |
| } |
| |
| type isOfpOxmField_Field interface { |
| isOfpOxmField_Field() |
| } |
| |
| type OfpOxmField_OfbField struct { |
| OfbField *OfpOxmOfbField `protobuf:"bytes,4,opt,name=ofb_field,json=ofbField,proto3,oneof"` |
| } |
| |
| type OfpOxmField_ExperimenterField struct { |
| ExperimenterField *OfpOxmExperimenterField `protobuf:"bytes,5,opt,name=experimenter_field,json=experimenterField,proto3,oneof"` |
| } |
| |
| func (*OfpOxmField_OfbField) isOfpOxmField_Field() {} |
| |
| func (*OfpOxmField_ExperimenterField) isOfpOxmField_Field() {} |
| |
| func (m *OfpOxmField) GetField() isOfpOxmField_Field { |
| if m != nil { |
| return m.Field |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmField) GetOfbField() *OfpOxmOfbField { |
| if x, ok := m.GetField().(*OfpOxmField_OfbField); ok { |
| return x.OfbField |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmField) GetExperimenterField() *OfpOxmExperimenterField { |
| if x, ok := m.GetField().(*OfpOxmField_ExperimenterField); ok { |
| return x.ExperimenterField |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*OfpOxmField) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*OfpOxmField_OfbField)(nil), |
| (*OfpOxmField_ExperimenterField)(nil), |
| } |
| } |
| |
| // OXM OpenFlow Basic Match Field |
| type OfpOxmOfbField struct { |
| Type OxmOfbFieldTypes `protobuf:"varint,1,opt,name=type,proto3,enum=openflow_13.OxmOfbFieldTypes" json:"type,omitempty"` |
| HasMask bool `protobuf:"varint,2,opt,name=has_mask,json=hasMask,proto3" json:"has_mask,omitempty"` |
| // Types that are valid to be assigned to Value: |
| // *OfpOxmOfbField_Port |
| // *OfpOxmOfbField_PhysicalPort |
| // *OfpOxmOfbField_TableMetadata |
| // *OfpOxmOfbField_EthDst |
| // *OfpOxmOfbField_EthSrc |
| // *OfpOxmOfbField_EthType |
| // *OfpOxmOfbField_VlanVid |
| // *OfpOxmOfbField_VlanPcp |
| // *OfpOxmOfbField_IpDscp |
| // *OfpOxmOfbField_IpEcn |
| // *OfpOxmOfbField_IpProto |
| // *OfpOxmOfbField_Ipv4Src |
| // *OfpOxmOfbField_Ipv4Dst |
| // *OfpOxmOfbField_TcpSrc |
| // *OfpOxmOfbField_TcpDst |
| // *OfpOxmOfbField_UdpSrc |
| // *OfpOxmOfbField_UdpDst |
| // *OfpOxmOfbField_SctpSrc |
| // *OfpOxmOfbField_SctpDst |
| // *OfpOxmOfbField_Icmpv4Type |
| // *OfpOxmOfbField_Icmpv4Code |
| // *OfpOxmOfbField_ArpOp |
| // *OfpOxmOfbField_ArpSpa |
| // *OfpOxmOfbField_ArpTpa |
| // *OfpOxmOfbField_ArpSha |
| // *OfpOxmOfbField_ArpTha |
| // *OfpOxmOfbField_Ipv6Src |
| // *OfpOxmOfbField_Ipv6Dst |
| // *OfpOxmOfbField_Ipv6Flabel |
| // *OfpOxmOfbField_Icmpv6Type |
| // *OfpOxmOfbField_Icmpv6Code |
| // *OfpOxmOfbField_Ipv6NdTarget |
| // *OfpOxmOfbField_Ipv6NdSsl |
| // *OfpOxmOfbField_Ipv6NdTll |
| // *OfpOxmOfbField_MplsLabel |
| // *OfpOxmOfbField_MplsTc |
| // *OfpOxmOfbField_MplsBos |
| // *OfpOxmOfbField_PbbIsid |
| // *OfpOxmOfbField_TunnelId |
| // *OfpOxmOfbField_Ipv6Exthdr |
| Value isOfpOxmOfbField_Value `protobuf_oneof:"value"` |
| // Optional mask values (must be present when has_mask is true |
| // |
| // Types that are valid to be assigned to Mask: |
| // *OfpOxmOfbField_TableMetadataMask |
| // *OfpOxmOfbField_EthDstMask |
| // *OfpOxmOfbField_EthSrcMask |
| // *OfpOxmOfbField_VlanVidMask |
| // *OfpOxmOfbField_Ipv4SrcMask |
| // *OfpOxmOfbField_Ipv4DstMask |
| // *OfpOxmOfbField_ArpSpaMask |
| // *OfpOxmOfbField_ArpTpaMask |
| // *OfpOxmOfbField_Ipv6SrcMask |
| // *OfpOxmOfbField_Ipv6DstMask |
| // *OfpOxmOfbField_Ipv6FlabelMask |
| // *OfpOxmOfbField_PbbIsidMask |
| // *OfpOxmOfbField_TunnelIdMask |
| // *OfpOxmOfbField_Ipv6ExthdrMask |
| Mask isOfpOxmOfbField_Mask `protobuf_oneof:"mask"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OfpOxmOfbField) Reset() { *m = OfpOxmOfbField{} } |
| func (m *OfpOxmOfbField) String() string { return proto.CompactTextString(m) } |
| func (*OfpOxmOfbField) ProtoMessage() {} |
| func (*OfpOxmOfbField) Descriptor() ([]byte, []int) { |
| return fileDescriptor_08e3a4e375aeddc7, []int{12} |
| } |
| |
| func (m *OfpOxmOfbField) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_OfpOxmOfbField.Unmarshal(m, b) |
| } |
| func (m *OfpOxmOfbField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_OfpOxmOfbField.Marshal(b, m, deterministic) |
| } |
| func (m *OfpOxmOfbField) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OfpOxmOfbField.Merge(m, src) |
| } |
| func (m *OfpOxmOfbField) XXX_Size() int { |
| return xxx_messageInfo_OfpOxmOfbField.Size(m) |
| } |
| func (m *OfpOxmOfbField) XXX_DiscardUnknown() { |
| xxx_messageInfo_OfpOxmOfbField.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OfpOxmOfbField proto.InternalMessageInfo |
| |
| func (m *OfpOxmOfbField) GetType() OxmOfbFieldTypes { |
| if m != nil { |
| return m.Type |
| } |
| return OxmOfbFieldTypes_OFPXMT_OFB_IN_PORT |
| } |
| |
| func (m *OfpOxmOfbField) GetHasMask() bool { |
| if m != nil { |
| return m.HasMask |
| } |
| return false |
| } |
| |
| type isOfpOxmOfbField_Value interface { |
| isOfpOxmOfbField_Value() |
| } |
| |
| type OfpOxmOfbField_Port struct { |
| Port uint32 `protobuf:"varint,3,opt,name=port,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_PhysicalPort struct { |
| PhysicalPort uint32 `protobuf:"varint,4,opt,name=physical_port,json=physicalPort,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_TableMetadata struct { |
| TableMetadata uint64 `protobuf:"varint,5,opt,name=table_metadata,json=tableMetadata,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_EthDst struct { |
| EthDst []byte `protobuf:"bytes,6,opt,name=eth_dst,json=ethDst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_EthSrc struct { |
| EthSrc []byte `protobuf:"bytes,7,opt,name=eth_src,json=ethSrc,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_EthType struct { |
| EthType uint32 `protobuf:"varint,8,opt,name=eth_type,json=ethType,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_VlanVid struct { |
| VlanVid uint32 `protobuf:"varint,9,opt,name=vlan_vid,json=vlanVid,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_VlanPcp struct { |
| VlanPcp uint32 `protobuf:"varint,10,opt,name=vlan_pcp,json=vlanPcp,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_IpDscp struct { |
| IpDscp uint32 `protobuf:"varint,11,opt,name=ip_dscp,json=ipDscp,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_IpEcn struct { |
| IpEcn uint32 `protobuf:"varint,12,opt,name=ip_ecn,json=ipEcn,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_IpProto struct { |
| IpProto uint32 `protobuf:"varint,13,opt,name=ip_proto,json=ipProto,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv4Src struct { |
| Ipv4Src uint32 `protobuf:"varint,14,opt,name=ipv4_src,json=ipv4Src,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv4Dst struct { |
| Ipv4Dst uint32 `protobuf:"varint,15,opt,name=ipv4_dst,json=ipv4Dst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_TcpSrc struct { |
| TcpSrc uint32 `protobuf:"varint,16,opt,name=tcp_src,json=tcpSrc,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_TcpDst struct { |
| TcpDst uint32 `protobuf:"varint,17,opt,name=tcp_dst,json=tcpDst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_UdpSrc struct { |
| UdpSrc uint32 `protobuf:"varint,18,opt,name=udp_src,json=udpSrc,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_UdpDst struct { |
| UdpDst uint32 `protobuf:"varint,19,opt,name=udp_dst,json=udpDst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_SctpSrc struct { |
| SctpSrc uint32 `protobuf:"varint,20,opt,name=sctp_src,json=sctpSrc,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_SctpDst struct { |
| SctpDst uint32 `protobuf:"varint,21,opt,name=sctp_dst,json=sctpDst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Icmpv4Type struct { |
| Icmpv4Type uint32 `protobuf:"varint,22,opt,name=icmpv4_type,json=icmpv4Type,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Icmpv4Code struct { |
| Icmpv4Code uint32 `protobuf:"varint,23,opt,name=icmpv4_code,json=icmpv4Code,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_ArpOp struct { |
| ArpOp uint32 `protobuf:"varint,24,opt,name=arp_op,json=arpOp,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_ArpSpa struct { |
| ArpSpa uint32 `protobuf:"varint,25,opt,name=arp_spa,json=arpSpa,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_ArpTpa struct { |
| ArpTpa uint32 `protobuf:"varint,26,opt,name=arp_tpa,json=arpTpa,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_ArpSha struct { |
| ArpSha []byte `protobuf:"bytes,27,opt,name=arp_sha,json=arpSha,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_ArpTha struct { |
| ArpTha []byte `protobuf:"bytes,28,opt,name=arp_tha,json=arpTha,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6Src struct { |
| Ipv6Src []byte `protobuf:"bytes,29,opt,name=ipv6_src,json=ipv6Src,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6Dst struct { |
| Ipv6Dst []byte `protobuf:"bytes,30,opt,name=ipv6_dst,json=ipv6Dst,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6Flabel struct { |
| Ipv6Flabel uint32 `protobuf:"varint,31,opt,name=ipv6_flabel,json=ipv6Flabel,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Icmpv6Type struct { |
| Icmpv6Type uint32 `protobuf:"varint,32,opt,name=icmpv6_type,json=icmpv6Type,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Icmpv6Code struct { |
| Icmpv6Code uint32 `protobuf:"varint,33,opt,name=icmpv6_code,json=icmpv6Code,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6NdTarget struct { |
| Ipv6NdTarget []byte `protobuf:"bytes,34,opt,name=ipv6_nd_target,json=ipv6NdTarget,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6NdSsl struct { |
| Ipv6NdSsl []byte `protobuf:"bytes,35,opt,name=ipv6_nd_ssl,json=ipv6NdSsl,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6NdTll struct { |
| Ipv6NdTll []byte `protobuf:"bytes,36,opt,name=ipv6_nd_tll,json=ipv6NdTll,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_MplsLabel struct { |
| MplsLabel uint32 `protobuf:"varint,37,opt,name=mpls_label,json=mplsLabel,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_MplsTc struct { |
| MplsTc uint32 `protobuf:"varint,38,opt,name=mpls_tc,json=mplsTc,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_MplsBos struct { |
| MplsBos uint32 `protobuf:"varint,39,opt,name=mpls_bos,json=mplsBos,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_PbbIsid struct { |
| PbbIsid uint32 `protobuf:"varint,40,opt,name=pbb_isid,json=pbbIsid,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_TunnelId struct { |
| TunnelId uint64 `protobuf:"varint,41,opt,name=tunnel_id,json=tunnelId,proto3,oneof"` |
| } |
| |
| type OfpOxmOfbField_Ipv6Exthdr struct { |
| Ipv6Exthdr uint32 `protobuf:"varint,42,opt,name=ipv6_exthdr,json=ipv6Exthdr,proto3,oneof"` |
| } |
| |
| func (*OfpOxmOfbField_Port) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_PhysicalPort) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_TableMetadata) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_EthDst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_EthSrc) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_EthType) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_VlanVid) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_VlanPcp) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_IpDscp) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_IpEcn) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_IpProto) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv4Src) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv4Dst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_TcpSrc) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_TcpDst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_UdpSrc) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_UdpDst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_SctpSrc) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_SctpDst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Icmpv4Type) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Icmpv4Code) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_ArpOp) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_ArpSpa) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_ArpTpa) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_ArpSha) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_ArpTha) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6Src) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6Dst) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6Flabel) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Icmpv6Type) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Icmpv6Code) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6NdTarget) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6NdSsl) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6NdTll) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_MplsLabel) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_MplsTc) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_MplsBos) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_PbbIsid) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_TunnelId) isOfpOxmOfbField_Value() {} |
| |
| func (*OfpOxmOfbField_Ipv6Exthdr) isOfpOxmOfbField_Value() {} |
| |
| func (m *OfpOxmOfbField) GetValue() isOfpOxmOfbField_Value { |
| if m != nil { |
| return m.Value |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetPort() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Port); ok { |
| return x.Port |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetPhysicalPort() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_PhysicalPort); ok { |
| return x.PhysicalPort |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetTableMetadata() uint64 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_TableMetadata); ok { |
| return x.TableMetadata |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetEthDst() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_EthDst); ok { |
| return x.EthDst |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetEthSrc() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_EthSrc); ok { |
| return x.EthSrc |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetEthType() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_EthType); ok { |
| return x.EthType |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetVlanVid() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_VlanVid); ok { |
| return x.VlanVid |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetVlanPcp() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_VlanPcp); ok { |
| return x.VlanPcp |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpDscp() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_IpDscp); ok { |
| return x.IpDscp |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpEcn() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_IpEcn); ok { |
| return x.IpEcn |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpProto() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_IpProto); ok { |
| return x.IpProto |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv4Src() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv4Src); ok { |
| return x.Ipv4Src |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv4Dst() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv4Dst); ok { |
| return x.Ipv4Dst |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetTcpSrc() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_TcpSrc); ok { |
| return x.TcpSrc |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetTcpDst() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_TcpDst); ok { |
| return x.TcpDst |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetUdpSrc() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_UdpSrc); ok { |
| return x.UdpSrc |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetUdpDst() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_UdpDst); ok { |
| return x.UdpDst |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetSctpSrc() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_SctpSrc); ok { |
| return x.SctpSrc |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetSctpDst() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_SctpDst); ok { |
| return x.SctpDst |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIcmpv4Type() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv4Type); ok { |
| return x.Icmpv4Type |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIcmpv4Code() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv4Code); ok { |
| return x.Icmpv4Code |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetArpOp() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_ArpOp); ok { |
| return x.ArpOp |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetArpSpa() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_ArpSpa); ok { |
| return x.ArpSpa |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetArpTpa() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_ArpTpa); ok { |
| return x.ArpTpa |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetArpSha() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_ArpSha); ok { |
| return x.ArpSha |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetArpTha() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_ArpTha); ok { |
| return x.ArpTha |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6Src() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Src); ok { |
| return x.Ipv6Src |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6Dst() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Dst); ok { |
| return x.Ipv6Dst |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6Flabel() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6Flabel); ok { |
| return x.Ipv6Flabel |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIcmpv6Type() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv6Type); ok { |
| return x.Icmpv6Type |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIcmpv6Code() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Icmpv6Code); ok { |
| return x.Icmpv6Code |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6NdTarget() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdTarget); ok { |
| return x.Ipv6NdTarget |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6NdSsl() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdSsl); ok { |
| return x.Ipv6NdSsl |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetIpv6NdTll() []byte { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_Ipv6NdTll); ok { |
| return x.Ipv6NdTll |
| } |
| return nil |
| } |
| |
| func (m *OfpOxmOfbField) GetMplsLabel() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_MplsLabel); ok { |
| return x.MplsLabel |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetMplsTc() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_MplsTc); ok { |
| return x.MplsTc |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetMplsBos() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_MplsBos); ok { |
| return x.MplsBos |
| } |
| return 0 |
| } |
| |
| func (m *OfpOxmOfbField) GetPbbIsid() uint32 { |
| if x, ok := m.GetValue().(*OfpOxmOfbField_PbbIsid); ok { |
| return x.PbbIsid |
| |