| /* |
| * Copyright 2016-present Open Networking Foundation |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.onosproject.openstacknetworking.api; |
| |
| import org.onlab.packet.MacAddress; |
| |
| /** |
| * Provides constants used in OpenStackSwitching. |
| */ |
| public final class Constants { |
| |
| private Constants() { |
| } |
| |
| public static final String OPENSTACK_NETWORKING_APP_ID = "org.onosproject.openstacknetworking"; |
| |
| public static final String DEFAULT_GATEWAY_MAC_STR = "fe:00:00:00:00:02"; |
| public static final MacAddress DEFAULT_GATEWAY_MAC = MacAddress.valueOf(DEFAULT_GATEWAY_MAC_STR); |
| public static final MacAddress DEFAULT_EXTERNAL_ROUTER_MAC = MacAddress.valueOf("fe:00:00:00:00:01"); |
| |
| public static final int PRIORITY_TUNNEL_TAG_RULE = 30000; |
| public static final int PRIORITY_FLOATING_INTERNAL = 42000; |
| public static final int PRIORITY_FLOATING_EXTERNAL = 41000; |
| public static final int PRIORITY_STATEFUL_SNAT_RULE = 40500; |
| public static final int PRIORITY_ICMP_RULE = 43000; |
| public static final int PRIORITY_INTERNAL_ROUTING_RULE = 28000; |
| public static final int PRIORITY_EXTERNAL_ROUTING_RULE = 25000; |
| public static final int PRIORITY_SNAT_RULE = 26000; |
| public static final int PRIORITY_SWITCHING_RULE = 30000; |
| public static final int PRIORITY_ADMIN_RULE = 32000; |
| public static final int PRIORITY_ACL_RULE = 31000; |
| public static final int PRIORITY_CT_HOOK_RULE = 30500; |
| public static final int PRIORITY_CT_RULE = 32000; |
| public static final int PRIORITY_CT_DROP_RULE = 32500; |
| |
| public static final int SRC_VNI_TABLE = 0; |
| public static final int ACL_TABLE = 1; |
| public static final int CT_TABLE = 2; |
| public static final int JUMP_TABLE = 3; |
| public static final int ROUTING_TABLE = 4; |
| public static final int FORWARDING_TABLE = 5; |
| public static final int GW_COMMON_TABLE = 0; |
| public static final int ERROR_TABLE = 10; |
| } |