2 * Copyright (c) 2015 - 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
8 package org.opendaylight.vpnservice.mdsalutil;
10 public class NwConstants {
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;
17 public static final int ETHTYPE_MPLS_UC = 0X8847;
18 public static final int ETHTYPE_PBB = 0X88E7;
21 public static final int IP_PROT_UDP = 17;
22 public static final int IP_PROT_GRE = 47;
25 public static final int ARP_REQUEST = 1;
26 public static final int ARP_REPLY = 2;
29 public static final int UDP_DEFAULT_PORT = 4789;
33 public static final int ADD_FLOW = 0;
34 public static final int DEL_FLOW = 1;
35 public static final int MOD_FLOW = 2;
38 public static final String FLOWID_SEPARATOR = ".";
39 public static final int TABLE_MISS_FLOW = 0;
40 public static final int TABLE_MISS_PRIORITY = 0;
42 public static final int DEFAULT_ARP_FLOW_PRIORITY = 100;
45 public static final short L3_FIB_TABLE = 21;
46 public static final short L3_LFIB_TABLE = 20;
47 public static final short L3_SUBNET_ROUTE_TABLE=22;
49 public static final short L3_PROTOCOL_TABLE = 36;
50 public static final short L3_INTERFACE_TABLE = 80;
51 public static final short LPORT_DISPATCHER_TABLE = 17;
52 public static final short VLAN_INTERFACE_INGRESS_TABLE = 0;
53 public static final short INTERNAL_TUNNEL_TABLE = 36;
54 public static final short EXTERNAL_TUNNEL_TABLE = 38;
55 public static final short DHCP_TABLE = 16;
56 public static final short DHCP_TABLE_EXTERNAL_TUNNEL = 18;