2 * Copyright 2015 Open Networking Laboratory
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onosproject.openflow.controller;
19 * Port description property types (OFPPDPT enums) in OF 1.3 <.
21 public enum PortDescPropertyType {
22 ETHERNET(0), /* Ethernet port */
23 OPTICAL(1), /* Optical port */
24 OPTICAL_TRANSPORT(2), /* OF1.3 Optical transport extension */
25 PIPELINE_INPUT(2), /* Ingress pipeline */
26 PIPELINE_OUTPUT(3), /* Egress pipeline */
27 RECIRCULATE(4), /* Recirculation */
28 EXPERIMENTER(0xffff); /* Experimenter-implemented */
30 private final int value;
32 PortDescPropertyType(int v) {
36 public int valueOf() {