Charles Chan | cad338a | 2016-09-16 18:03:11 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Charles Chan | cad338a | 2016-09-16 18:03:11 -0700 | [diff] [blame] | 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 | */ |
| 16 | |
| 17 | package org.onosproject.driver.extensions; |
| 18 | |
| 19 | /** |
| 20 | * OFDPA MPLS Type experimenter match fields. |
| 21 | */ |
| 22 | public enum Ofdpa3MplsType { |
| 23 | /** |
| 24 | * None. |
| 25 | */ |
| 26 | NONE((short) 0), |
| 27 | /** |
| 28 | * Virtual Private Wire Service. |
| 29 | */ |
| 30 | VPWS((short) 1), |
| 31 | /** |
| 32 | * Virtual Private LAN Service. |
| 33 | */ |
| 34 | VPLS((short) 2), |
| 35 | /** |
| 36 | * MPLS-TP OAM (Operation, Administration and Maintenance). |
| 37 | */ |
| 38 | OAM((short) 4), |
| 39 | /** |
| 40 | * L3 unicast. |
| 41 | */ |
Pier Ventre | 9cf536b | 2016-10-21 13:30:18 -0700 | [diff] [blame] | 42 | L3_UNICAST((short) 8), |
Charles Chan | cad338a | 2016-09-16 18:03:11 -0700 | [diff] [blame] | 43 | /** |
| 44 | * L3 multicast. |
| 45 | */ |
| 46 | L3_MULTICAST((short) 16), |
| 47 | /** |
| 48 | * L3 PHP (Penultimate Hop Popping). |
| 49 | */ |
| 50 | L3_PHP((short) 32); |
| 51 | |
| 52 | private short value; |
| 53 | |
| 54 | Ofdpa3MplsType(short value) { |
| 55 | this.value = value; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Gets the value as an short. |
| 60 | * |
| 61 | * @return the value as an short |
| 62 | */ |
| 63 | public short getValue() { |
| 64 | return this.value; |
| 65 | } |
| 66 | } |