blob: 54334b93b16ed8f8f2638651fb5b14086fdafc9b [file] [log] [blame]
Hyunsun Moonb974fca2016-06-30 21:20:39 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
sangho6032f342016-07-07 14:32:03 +090016package org.onosproject.openstacknetworking;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070017
18import org.onlab.packet.Ip4Address;
19import org.onlab.packet.Ip4Prefix;
20import org.onlab.packet.IpPrefix;
sangho6032f342016-07-07 14:32:03 +090021import org.onlab.packet.MacAddress;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070022
23/**
sangho6032f342016-07-07 14:32:03 +090024 * Provides constants used in OpenStackSwitching.
Hyunsun Moonb974fca2016-06-30 21:20:39 -070025 */
26public final class Constants {
27
28 private Constants() {
29 }
30
31 public static final String APP_ID = "org.onosproject.openstackswitching";
32
33 public static final String PORTNAME_PREFIX_VM = "tap";
34 public static final String PORTNAME_PREFIX_ROUTER = "qr-";
35 public static final String PORTNAME_PREFIX_TUNNEL = "vxlan";
36
sangho6032f342016-07-07 14:32:03 +090037 public static final MacAddress GATEWAY_MAC = MacAddress.valueOf("1f:1f:1f:1f:1f:1f");
38
39 // TODO: Please change these valuses following the way vrouter is implemented
40 public static final MacAddress GW_EXT_INT_MAC = MacAddress.valueOf("56:e6:30:a6:8c:e5");
41 public static final MacAddress PHY_ROUTER_MAC = MacAddress.valueOf("00:00:00:00:01:01");
Hyunsun Moonb974fca2016-06-30 21:20:39 -070042
43 public static final Ip4Address DNS_SERVER_IP = Ip4Address.valueOf("8.8.8.8");
44 public static final IpPrefix IP_PREFIX_ANY = Ip4Prefix.valueOf("0.0.0.0/0");
45 public static final int DHCP_INFINITE_LEASE = -1;
46
47 public static final String NETWORK_ID = "networkId";
48 public static final String PORT_ID = "portId";
49 public static final String VXLAN_ID = "vxlanId";
50 public static final String TENANT_ID = "tenantId";
51 public static final String GATEWAY_IP = "gatewayIp";
52 public static final String CREATE_TIME = "createTime";
53
54 public static final int SWITCHING_RULE_PRIORITY = 30000;
55 public static final int TUNNELTAG_RULE_PRIORITY = 30000;
56 public static final int ACL_RULE_PRIORITY = 30000;
sangho6032f342016-07-07 14:32:03 +090057
Hyunsun Moonb974fca2016-06-30 21:20:39 -070058}