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: Move all service related constants across all modules to a common
20 public static final short EGRESS_ACL_TABLE_ID = 40;
21 public static final short EGRESS_ACL_NEXT_TABLE_ID = 41;
22 public static final short EGRESS_ACL_SERVICE_PRIORITY = 2;
23 public static final short EGRESS_ACL_DEFAULT_FLOW_PRIORITY = 11;
25 public static final short INGRESS_ACL_TABLE_ID = 251;
26 public static final short INGRESS_ACL_NEXT_TABLE_ID = 252;
27 public static final short INGRESS_ACL_SERVICE_PRIORITY = 10;
28 public static final short INGRESS_ACL_DEFAULT_FLOW_PRIORITY = 1;
30 public static final Integer PROTO_MATCH_PRIORITY = 61010;
31 public static final Integer PREFIX_MATCH_PRIORITY = 61009;
32 public static final Integer PROTO_PREFIX_MATCH_PRIORITY = 61008;
33 public static final Integer PROTO_PORT_MATCH_PRIORITY = 61007;
34 public static final Integer PROTO_PORT_PREFIX_MATCH_PRIORITY = 61007;
35 public static final Integer PROTO_DHCP_SERVER_MATCH_PRIORITY = 61006;
36 public static final Integer PROTO_VM_IP_MAC_MATCH_PRIORITY = 36001;
37 public static final Integer CT_STATE_UNTRACKED_PRIORITY = 62030;
38 public static final Integer CT_STATE_TRACKED_EXIST_PRIORITY = 62020;
39 public static final Integer CT_STATE_TRACKED_NEW_PRIORITY = 62010;
40 public static final Integer CT_STATE_NEW_PRIORITY_DROP = 36007;
41 public static final short DHCP_CLIENT_PORT_IPV4 = 68;
42 public static final short DHCP_SERVER_PORT_IPV4 = 67;
43 public static final short DHCP_CLIENT_PORT_IPV6 = 568;
44 public static final short DHCP_SERVER_PORT_IPV6 = 567;
45 public static final BigInteger COOKIE_ACL_BASE = new BigInteger("6900000", 16);
46 public static final int UNTRACKED_CT_STATE = 0x00;
47 public static final int UNTRACKED_CT_STATE_MASK = 0x20;
48 public static final int TRACKED_EST_CT_STATE = 0x22;
49 public static final int TRACKED_REL_CT_STATE = 0x24;
50 public static final int TRACKED_NEW_CT_STATE = 0x21;
51 public static final int TRACKED_INV_CT_STATE = 0x30;
52 public static final int TRACKED_INV_CT_STATE_MASK = 0x30;
53 public static final int TRACKED_CT_STATE_MASK = 0x37;
54 public static final int TRACKED_NEW_CT_STATE_MASK = 0x21;
56 private AclConstants() {