blob: 84677c9802592e2e052a2d8902590e6efa870035 [file] [log] [blame]
Charles Chancad338a2016-09-16 18:03:11 -07001/*
2 * Copyright 2016-present 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 */
16
17package org.onosproject.driver.extensions;
18
19/**
20 * OFDPA MPLS Type experimenter match fields.
21 */
22public 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 Ventre9cf536b2016-10-21 13:30:18 -070042 L3_UNICAST((short) 8),
Charles Chancad338a2016-09-16 18:03:11 -070043 /**
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}