9da75e9d82580d568e15c93507151a388b45431c
[vpnservice.git] / dhcpservice / dhcpservice-api / src / main / java / org / opendaylight / vpnservice / 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.vpnservice.dhcpservice.api;
10
11 import java.math.BigInteger;
12
13 public final class DHCPMConstants {
14
15     // DHCP Service Table Ids
16     public static final short DHCP_TABLE = 0;
17     public static final short L3_FIB_TABLE = 20;
18
19     public static final long DHCP_TABLE_MAX_ENTRY = 10000;
20
21     public static final int DEFAULT_DHCP_FLOW_PRIORITY = 50;
22     public static final int ARP_FLOW_PRIORITY = 50;
23
24     public static final BigInteger COOKIE_DHCP_BASE = new BigInteger("6800000", 16);
25     public static final BigInteger METADATA_ALL_CLEAR_MASK = new BigInteger("0000000000000000", 16);
26     public static final BigInteger METADATA_ALL_SET_MASK = new BigInteger("FFFFFFFFFFFFFFFF", 16);
27
28     public static final String FLOWID_PREFIX = "DHCP.";
29     public static final String VMFLOWID_PREFIX = "DHCP.INTERFACE.";
30     public static final String BCAST_DEST_IP = "255.255.255.255";
31     public static final int BCAST_IP = 0xffffffff;
32
33     public static final short dhcpClientPort = 68;
34     public static final short dhcpServerPort = 67;
35
36     public static final int DEFAULT_LEASE_TIME = 86400;
37 }