2 * Copyright (c) 2016, 2017 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.genius.interfacemanager;
10 import org.opendaylight.yangtools.yang.common.Uint64;
12 // FIXME: rename this to IfmImplConstants
13 // FIXME: this should be a final utility class
14 public interface IfmConstants {
15 String IFM_IDPOOL_NAME = "interfaces";
16 long IFM_ID_POOL_START = 1L;
17 long IFM_ID_POOL_END = 65535;
18 String IFM_IDPOOL_SIZE = "65535";
19 String OF_URI_PREFIX = "openflow:";
20 String OF_URI_SEPARATOR = ":";
21 int DEFAULT_IFINDEX = 65536;
22 int DEFAULT_FLOW_PRIORITY = 5;
23 String IFM_LPORT_TAG_IDPOOL_NAME = "vlaninterfaces.lporttag";
24 short VLAN_INTERFACE_INGRESS_TABLE = 0;
26 long VLAN_GROUP_START = 1000;
27 long TRUNK_GROUP_START = 20000;
28 long LOGICAL_GROUP_START = 100000;
29 Uint64 COOKIE_VM_LFIB_TABLE = Uint64.valueOf("8000002", 16).intern();
30 String TUNNEL_TABLE_FLOWID_PREFIX = "TUNNEL.";
31 Uint64 TUNNEL_TABLE_COOKIE = Uint64.valueOf("9000000", 16).intern();
32 int FLOW_HIGH_PRIORITY = 10;
33 int FLOW_PRIORITY_FOR_UNTAGGED_VLAN = 4;
35 int REG6_START_INDEX = 0;
36 int REG6_END_INDEX = 31;
38 int JOB_MAX_RETRIES = 6;
39 long DELAY_TIME_IN_MILLISECOND = 10000;
41 Uint64 DEAD_BEEF_MAC_PREFIX = Uint64.valueOf("DEADBEEF", 16).intern();
42 String INVALID_MAC = "00:00:00:00:00:00";
43 String MAC_SEPARATOR = ":";
44 int MAC_STRING_LENGTH = INVALID_MAC.length();
46 long INVALID_PORT_NO = -1;
48 String INTERFACE_CONFIG_ENTITY = "interface_config";
49 String INTERFACE_SERVICE_BINDING_ENTITY = "interface_service_binding";
50 String INTERFACE_SERVICE_NAME = "IFM";
51 String SERVICE_ENTITY_TYPE = "org.opendaylight.mdsal.ServiceEntityType";