52300ea5683b2a83531404af852e69dbebd0d075
[netvirt.git] / vpnservice / dhcpservice / dhcpservice-api / src / main / java / org / opendaylight / netvirt / dhcpservice / api / DhcpMConstants.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
9 package org.opendaylight.netvirt.dhcpservice.api;
10
11 import java.math.BigInteger;
12
13 public interface DhcpMConstants {
14
15     long DHCP_TABLE_MAX_ENTRY = 10000;
16
17     int DEFAULT_DHCP_FLOW_PRIORITY = 50;
18     int DEFAULT_DHCP_ALLOCATION_POOL_FLOW_PRIORITY = DEFAULT_DHCP_FLOW_PRIORITY - 1;
19     int ARP_FLOW_PRIORITY = 50;
20     short DEFAULT_FLOW_PRIORITY = 100;
21
22     BigInteger COOKIE_DHCP_BASE = new BigInteger("6800000", 16);
23     BigInteger METADATA_ALL_CLEAR_MASK = new BigInteger("0000000000000000", 16);
24     BigInteger METADATA_ALL_SET_MASK = new BigInteger("FFFFFFFFFFFFFFFF", 16);
25
26     String FLOWID_PREFIX = "DHCP.";
27     String VMFLOWID_PREFIX = "DHCP.INTERFACE.";
28     String BCAST_DEST_IP = "255.255.255.255";
29     int BCAST_IP = 0xffffffff;
30
31     short DHCP_CLIENT_PORT = 68;
32     short DHCP_SERVER_PORT = 67;
33
34     int DEFAULT_LEASE_TIME = 86400;
35     String DEFAULT_DOMAIN_NAME = "openstacklocal";
36
37     BigInteger COOKIE_VM_INGRESS_TABLE = new BigInteger("6800001", 16);
38     BigInteger INVALID_DPID = new BigInteger("-1");
39     String DHCP_JOB_KEY_PREFIX = "DHCP_";
40     int RETRY_COUNT = 6;
41 }