Added copyright and updated appropriate log levels
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / mdsalutil / NwConstants.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.vpnservice.mdsalutil;
9
10 public class NwConstants {
11
12     // EthType Values
13     public static final int ETHTYPE_802_1Q            = 0X8100;
14     public static final int ETHTYPE_IPV4              = 0X0800;
15     public static final int ETHTYPE_ARP               = 0X0806;
16
17     public static final int ETHTYPE_MPLS_UC           = 0X8847;
18     public static final int ETHTYPE_PBB               = 0X88E7;
19     
20     //Protocol Type
21     public static final int IP_PROT_UDP = 17;
22     public static final int IP_PROT_GRE = 47;
23
24     //Default Port
25     public static final int UDP_DEFAULT_PORT = 4789;
26
27     
28     // Flow Actions
29     public static final int ADD_FLOW = 0;
30     public static final int DEL_FLOW = 1;
31     public static final int MOD_FLOW = 2;
32
33     // Flow Constants
34     public static final String FLOWID_SEPARATOR = ".";
35     public static final int TABLE_MISS_FLOW = 0;
36     public static final int TABLE_MISS_PRIORITY = 0;
37
38  }