X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=mdsalutil%2Fmdsalutil-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fmdsalutil%2FNwConstants.java;h=55472e297497c3d236e7e88c22a0c22fe85828e6;hb=HEAD;hp=37d35863a0fce9cb33c3541b738906a2120ce23f;hpb=2bfbbe0cf9942ff975dc82fc298c603fd9cef6a6;p=vpnservice.git diff --git a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/NwConstants.java b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/NwConstants.java index 37d35863..55472e29 100644 --- a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/NwConstants.java +++ b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/NwConstants.java @@ -1,6 +1,9 @@ /* - * Copyright (c) 2013 Ericsson AB. All rights reserved. + * Copyright (c) 2015 - 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.vpnservice.mdsalutil; @@ -13,21 +16,18 @@ public class NwConstants { public static final int ETHTYPE_MPLS_UC = 0X8847; public static final int ETHTYPE_PBB = 0X88E7; - + //Protocol Type public static final int IP_PROT_UDP = 17; public static final int IP_PROT_GRE = 47; + //ARP TYPE + public static final int ARP_REQUEST = 1; + public static final int ARP_REPLY = 2; + //Default Port public static final int UDP_DEFAULT_PORT = 4789; - // Table IDs - public static final short PRECHECK_TABLE = 0; - public static final short PORT_VLAN_TABLE = 0; - - // Table Max Entries - public static final long INGRESS_TABLE_MAX_ENTRY = 1000; - public static final long PRECHECK_TABLE_MAX_ENTRY = 100; // Flow Actions public static final int ADD_FLOW = 0; @@ -39,10 +39,19 @@ public class NwConstants { public static final int TABLE_MISS_FLOW = 0; public static final int TABLE_MISS_PRIORITY = 0; - // Misc FIXME: Find new place for this - public static final String DPN_STATE_CACHE = "dpn.state.cache"; - public static final String DPN_SYNCSTATUS_CACHE = "dpn.resync.status.cache"; - public static final String STATISTICS_LOCK_PREFIX ="scf.statistics.lock"; - public static final String STATISTICS_LOCK_SEPARATOR ="."; - public static final int STATISTICS_LOCK_RETRY_COUNT =1800; -} \ No newline at end of file + public static final int DEFAULT_ARP_FLOW_PRIORITY = 100; + + //Table IDs + public static final short L3_FIB_TABLE = 21; + public static final short L3_LFIB_TABLE = 20; + public static final short L3_SUBNET_ROUTE_TABLE=22; + + public static final short L3_PROTOCOL_TABLE = 36; + public static final short L3_INTERFACE_TABLE = 80; + public static final short LPORT_DISPATCHER_TABLE = 17; + public static final short VLAN_INTERFACE_INGRESS_TABLE = 0; + public static final short INTERNAL_TUNNEL_TABLE = 36; + public static final short EXTERNAL_TUNNEL_TABLE = 38; + public static final short DHCP_TABLE = 16; + public static final short DHCP_TABLE_EXTERNAL_TUNNEL = 18; + }