8c73712b02635294acb18320f5e6ca3b15bc3cc5
[genius.git] / interfacemanager / interfacemanager-api / src / main / java / org / opendaylight / genius / interfacemanager / globals / IfmConstants.java
1 /*
2  * Copyright (c) 2016, 2017 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.genius.interfacemanager.globals;
9
10 import java.math.BigInteger;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri;
12 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
13
14
15 public final class  IfmConstants {
16
17     private IfmConstants() {
18     }
19
20     public static final String OF_URI_PREFIX = "openflow:";
21     public static final String OF_URI_SEPARATOR = ":";
22     public static final int DEFAULT_IFINDEX = 65536;
23     public static final int FLOW_HIGH_PRIORITY = 10;
24     public static final int FLOW_PRIORITY_FOR_UNTAGGED_VLAN = 4;
25     public static final int FLOW_TABLE_MISS_PRIORITY = 0;
26     public static final int DEFAULT_ARP_FLOW_PRIORITY = 100;
27     public static final int INVALID_PORT_NO = -1;
28     public static final BigInteger INVALID_DPID = new BigInteger("-1");
29
30     // Id pool
31     public static final String IFM_IDPOOL_NAME = "interfaces";
32     public static final long IFM_ID_POOL_START = 1L;
33     public static final long IFM_ID_POOL_END = 65535;
34
35     public static final long VXLAN_GROUPID_MIN = 300000L;
36     // Group Prefix
37     public static final long VLAN_GROUP_START = 1000;
38     public static final long TRUNK_GROUP_START = 20000;
39     public static final long LOGICAL_GROUP_START = 100000;
40     // Table
41     public static final long DELAY_TIME_IN_MILLISECOND = 10000;
42     // Cookies
43     public static final BigInteger COOKIE_L3_BASE = new BigInteger("8000000", 16);
44     public static final BigInteger COOKIE_EGRESS_DISPATCHER_TABLE = new BigInteger("1300000", 16);
45     // Tunnel Monitoring
46     public static final int DEFAULT_MONITOR_INTERVAL = 10000;
47
48     public static final TopologyId OVSDB_TOPOLOGY_ID = new TopologyId(new Uri("ovsdb:1"));
49
50     // TUNNEL TYPE KEYWORDS
51     // These are the reserved keywords to be used for service-binding on tunnel-type
52     public static final String ALL_VXLAN_INTERNAL = "all_vxlan_internal";
53     public static final String ALL_VXLAN_EXTERNAL = "all_vxlan_external";
54     public static final String ALL_MPLS_OVER_GRE = "all_mpls_over_gre";
55 }