Ayaka Koshibe | 5460d62 | 2015-05-14 12:19:19 -0700 | [diff] [blame] | 1 | package org.onosproject.openflow.controller; |
| 2 | |
| 3 | /** |
| 4 | * Port description property types (OFPPDPT enums) in OF 1.3 <. |
| 5 | */ |
| 6 | public enum PortDescPropertyType { |
| 7 | ETHERNET(0), /* Ethernet port */ |
| 8 | OPTICAL(1), /* Optical port */ |
| 9 | OPTICAL_TRANSPORT(2), /* OF1.3 Optical transport extension */ |
| 10 | PIPELINE_INPUT(2), /* Ingress pipeline */ |
| 11 | PIPELINE_OUTPUT(3), /* Egress pipeline */ |
| 12 | RECIRCULATE(4), /* Recirculation */ |
| 13 | EXPERIMENTER(0xffff); /* Experimenter-implemented */ |
| 14 | |
| 15 | private final int value; |
| 16 | |
| 17 | PortDescPropertyType(int v) { |
| 18 | value = v; |
| 19 | } |
| 20 | |
| 21 | public int valueOf() { |
| 22 | return value; |
| 23 | } |
| 24 | } |