blob: 3a0f1a0d35b2808d10b566d9c6b2f4591c371717 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
Ayaka Koshibe5460d622015-05-14 12:19:19 -070016package org.onosproject.openflow.controller;
17
18/**
19 * Port description property types (OFPPDPT enums) in OF 1.3 <.
20 */
21public 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 */
29
30 private final int value;
31
32 PortDescPropertyType(int v) {
33 value = v;
34 }
35
36 public int valueOf() {
37 return value;
38 }
39}