2 * Copyright (c) 2016 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
9 package org.opendaylight.netvirt.aclservice.utils;
11 import java.math.BigInteger;
14 * The class to have ACL related constants.
16 public final class AclConstants {
18 // TODO: To be deleted once it is available in NwConstants
19 public static final short EGRESS_LPORT_DISPATCHER_TABLE = 220;
21 public static final short INGRESS_ACL_DEFAULT_FLOW_PRIORITY = 1;
22 public static final short EGRESS_ACL_DEFAULT_FLOW_PRIORITY = 11;
24 public static final Integer PROTO_MATCH_PRIORITY = 61010;
25 public static final Integer PREFIX_MATCH_PRIORITY = 61009;
26 public static final Integer PROTO_PREFIX_MATCH_PRIORITY = 61008;
27 public static final Integer PROTO_PORT_MATCH_PRIORITY = 61007;
28 public static final Integer PROTO_PORT_PREFIX_MATCH_PRIORITY = 61007;
29 public static final Integer PROTO_DHCP_SERVER_MATCH_PRIORITY = 61006;
30 public static final Integer PROTO_VM_IP_MAC_MATCH_PRIORITY = 36001;
31 public static final Integer CT_STATE_UNTRACKED_PRIORITY = 62030;
32 public static final Integer CT_STATE_TRACKED_EXIST_PRIORITY = 62020;
33 public static final Integer CT_STATE_TRACKED_NEW_PRIORITY = 62010;
34 public static final Integer CT_STATE_NEW_PRIORITY_DROP = 36007;
35 public static final short DHCP_CLIENT_PORT_IPV4 = 68;
36 public static final short DHCP_SERVER_PORT_IPV4 = 67;
37 public static final short DHCP_CLIENT_PORT_IPV6 = 568;
38 public static final short DHCP_SERVER_PORT_IPV6 = 567;
39 public static final BigInteger COOKIE_ACL_BASE = new BigInteger("6900000", 16);
41 public static final int UNTRACKED_CT_STATE = 0x00;
42 public static final int TRACKED_CT_STATE = 0x20;
43 public static final int TRACKED_EST_CT_STATE = 0x22;
44 public static final int TRACKED_REL_CT_STATE = 0x24;
45 public static final int TRACKED_NEW_CT_STATE = 0x21;
46 public static final int TRACKED_INV_CT_STATE = 0x30;
48 public static final int UNTRACKED_CT_STATE_MASK = 0x20;
49 public static final int TRACKED_CT_STATE_MASK = 0x20;
50 public static final int TRACKED_EST_CT_STATE_MASK = 0x37;
51 public static final int TRACKED_REL_CT_STATE_MASK = 0x37;
52 public static final int TRACKED_NEW_CT_STATE_MASK = 0x21;
53 public static final int TRACKED_INV_CT_STATE_MASK = 0x30;
55 private AclConstants() {