Mohammad Shahid | 4c30ea3 | 2017-08-09 18:02:10 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 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 | */ |
| 16 | |
| 17 | package org.onosproject.evpnopenflow.rsc; |
| 18 | |
| 19 | /** |
| 20 | * Provides constants used in EVPN openflow application. |
| 21 | */ |
| 22 | public final class EvpnConstants { |
| 23 | private EvpnConstants() { |
| 24 | } |
| 25 | |
| 26 | public static final String APP_ID = "org.onosproject.evpnopenflow"; |
| 27 | public static final String EVPN_OPENFLOW_START = "evpn-openflow app is " + |
| 28 | "started"; |
| 29 | public static final String EVPN_OPENFLOW_STOP = "evpn-openflow app is " + |
| 30 | "stopped"; |
| 31 | public static final String EVPN_VPN_PORT_START = "EVPN port started"; |
| 32 | public static final String EVPN_VPN_PORT_STOP = "EVPN port stopped"; |
| 33 | public static final String EVPN_VPN_INSTANCE_START = "EVPN instance " + |
| 34 | "started"; |
| 35 | public static final String EVPN_VPN_INSTANCE_STOP = "EVPN instance " + |
| 36 | "stopped"; |
| 37 | public static final String HOST_DETECT = "Host detected {}"; |
| 38 | public static final String HOST_VANISHED = "Host vanished {}"; |
| 39 | public static final String IFACEID = "ifaceid"; |
| 40 | public static final String IFACEID_OF_HOST_IS_NULL = |
| 41 | "The ifaceId of host is null"; |
| 42 | public static final String CANT_FIND_VPN_PORT = "Can't find vpnport {}"; |
| 43 | public static final String CANT_FIND_VPN_INSTANCE = "EVPN instance {} is " + |
| 44 | "not exist"; |
| 45 | public static final String CANT_FIND_CONTROLLER_DEVICE = "Can't find " + |
| 46 | "controller of device: {}"; |
| 47 | public static final String GET_PRIVATE_LABEL = "Get private label {}"; |
| 48 | public static final String RELEASE_LABEL_FAILED = "Release resoure label " + |
| 49 | "{} failed"; |
| 50 | public static final String VPN_PORT_UNBIND = "On EVPN port unbind"; |
| 51 | public static final String VPN_PORT_BIND = "On EVPN port bind"; |
| 52 | public static final String SLASH = "/"; |
| 53 | public static final String COMMA = ","; |
| 54 | public static final String VPN_INSTANCE_TARGET = "VpnService"; |
| 55 | public static final String VPN_PORT_TARGET = "VpnBinding"; |
| 56 | public static final String BASEPORT = "Port"; |
| 57 | public static final String VPN_AF_TARGET = "VpnAfConfig"; |
| 58 | public static final String BGP_PEERING = "BGPPeering"; |
| 59 | public static final String DATA_PLANE_TUNNEL = "DataplaneTunnel"; |
| 60 | public static final String VPN_PORT_STORE = "evpn-port-store"; |
| 61 | public static final String BASE_PORT_STORE = "evpn-baseport-store"; |
| 62 | public static final String VPN_INSTANCE_STORE = |
| 63 | "evpn-instance-store"; |
| 64 | public static final String VPN_PORT_ID_NOT_NULL = "EVPN port ID cannot be" + |
| 65 | " null"; |
| 66 | public static final String VPN_PORT_NOT_NULL = "EVPN port cannot be null"; |
| 67 | public static final String RESPONSE_NOT_NULL = "JsonNode can not be null"; |
| 68 | public static final String LISTENER_NOT_NULL = "Listener cannot be null"; |
| 69 | public static final String EVENT_NOT_NULL = "Event cannot be null"; |
| 70 | public static final String DELETE = "delete"; |
| 71 | public static final String SET = "set"; |
| 72 | public static final String UPDATE = "update"; |
| 73 | public static final String VPN_PORT_ID = "EVPN port ID is {} "; |
| 74 | public static final String VPN_PORT_CREATION_FAILED = "The EVPN port " + |
| 75 | "creation is failed whose identifier is {} "; |
| 76 | public static final String VPN_PORT_IS_NOT_EXIST = "The EVPN port is not " + |
| 77 | "exist whose identifier is {}"; |
| 78 | public static final String VPN_PORT_UPDATE_FAILED = "The EVPN port update" + |
| 79 | " is failed whose identifier is {}"; |
| 80 | public static final String VPN_PORT_DELETE_FAILED = |
| 81 | "The EVPN port delete is failed whose identifier is {}"; |
| 82 | public static final String INTERFACE_ID = "interface_id"; |
| 83 | public static final String ID = "id"; |
| 84 | public static final String VPN_INSTANCE = "service_id"; |
| 85 | public static final String VPN_INSTANCE_ID_NOT_NULL = "EVPN instance ID " + |
| 86 | "cannot be null"; |
| 87 | public static final String VPN_INSTANCE_NOT_NULL = "EVPN instance cannot " + |
| 88 | "be null"; |
| 89 | public static final String JSON_NOT_NULL = "JsonNode can not be null"; |
| 90 | public static final String INSTANCE_ID = "EVPN instance ID is {} "; |
| 91 | public static final String VPN_INSTANCE_CREATION_FAILED = "The " + |
| 92 | "EVPN instance creation is failed whose identifier is {} "; |
| 93 | public static final String VPN_INSTANCE_IS_NOT_EXIST = "The EVPN instance" + |
| 94 | " is not exist whose identifier is {}"; |
| 95 | public static final String VPN_INSTANCE_UPDATE_FAILED = "The EVPN " + |
| 96 | "instance update is failed whose identifier is {}"; |
| 97 | public static final String VPN_INSTANCE_DELETE_FAILED = "The EVPN " + |
| 98 | "instance delete is failed whose identifier is {}"; |
| 99 | public static final String VPN_INSTANCE_NAME = "name"; |
| 100 | public static final String DESCRIPTION = "description"; |
| 101 | public static final String ROUTE_DISTINGUISHERS = "route_distinguishers"; |
| 102 | public static final String IPV4_FAMILY = "ipv4_family"; |
| 103 | static final String ID_CANNOT_BE_NULL = "ID cannot be null"; |
| 104 | static final String INSTANCE_NAME_CANNOT_BE_NULL = "Instance name cannot " + |
| 105 | "be null"; |
| 106 | static final String DESCRIPTION_CANNOT_BE_NULL = "Description cannot be " + |
| 107 | "null"; |
| 108 | static final String RD_CANNOT_BE_NULL = "RouteDistinguisher cannot be null"; |
| 109 | static final String RT_CANNOT_BE_NULL = "RouteTarget cannot be null"; |
| 110 | static final String VPNINSTANCE_NAME = "vpnInstanceName"; |
| 111 | static final String ROUTE_DISTINGUISHER = "routeDistinguisher"; |
| 112 | static final String VPN_INSTANCE_ID_CANNOT_BE_NULL = "EVPN instance ID " + |
| 113 | "cannot be null"; |
| 114 | static final String VPN_INSTANCE_ID = "vpnInstanceId"; |
| 115 | public static final String FORMAT_VPN_INSTANCE = "Id=%s, description=%s," |
| 116 | + " name=%s, routeDistinguisher=%s, routeTarget=%s"; |
| 117 | public static final String FORMAT_VPN_PORT = " EVPN port id=%-32s, " + |
| 118 | "EVPN instance id=%-18s"; |
| 119 | public static final String FORMAT_PRIVATE_ROUTE = " %-18s %-15s %-10s"; |
| 120 | public static final String FORMAT_PUBLIC_ROUTE = " %-18s %-18s %-10s"; |
| 121 | public static final String SWITCH_CHANNEL_ID = "channelId"; |
| 122 | public static final String NOT_MASTER_FOR_SPECIFIC_DEVICE = "The local " + |
| 123 | "controller is not master for the specified deviceId"; |
| 124 | public static final String VPN_AF_CONFIG_STORE = |
| 125 | "evpn-vpn-af-config-store"; |
| 126 | public static final String EVPN_VPN_AF_CONFIG_START = "EVPN af config" + |
| 127 | " started"; |
| 128 | public static final String EVPN_VPN_AF_CONFIG_STOP = "EVPN af config" + |
| 129 | " stopped"; |
| 130 | static final String RT_TYPE_CANNOT_BE_NULL = "Route target type " + |
| 131 | "cannot be null"; |
| 132 | public static final String VPN_AF_CONFIG_NOT_NULL = "EVPN af config be " + |
| 133 | "null"; |
| 134 | public static final String ROUTE_TARGET_VALUE = "Route target value is {} "; |
| 135 | public static final String VPN_AF_CONFIG_CREATION_FAILED = "The " + |
| 136 | "EVPN af config creation is failed whose route target is {} "; |
| 137 | public static final String VPN_AF_CONFIG_UPDATE_FAILED = "The EVPN af " + |
| 138 | "config update is failed whose identifier is {}"; |
| 139 | public static final String VPN_AF_CONFIG_IS_NOT_EXIST = "The EVPN AF " + |
| 140 | "config is not exist whose identifier is {}"; |
| 141 | public static final String ROUTE_TARGET_CANNOT_NOT_NULL = "Route target " + |
| 142 | "value cannot be null"; |
| 143 | public static final String ROUTE_TARGET_DELETE_FAILED = "The route target" + |
| 144 | " delete is failed whose route target value is {}"; |
| 145 | static final String EXPORT_RT_CANNOT_BE_NULL = "export route " + |
| 146 | "target set cannot be null"; |
| 147 | static final String IMPORT_RT_CANNOT_BE_NULL = "import route " + |
| 148 | "target set cannot be null"; |
| 149 | static final String CONFIG_RT_CANNOT_BE_NULL = "import route " + |
| 150 | "target set cannot be null"; |
| 151 | public static final String EXPORT_EXTCOMMUNITY = "export_extcommunity"; |
| 152 | public static final String IMPORT_EXTCOMMUNITY = "import_extcommunity"; |
| 153 | public static final String BOTH = "both"; |
| 154 | public static final String INVALID_ROUTE_TARGET_TYPE |
| 155 | = "Invalid route target type has received"; |
| 156 | public static final String INVALID_EVENT_RECEIVED |
| 157 | = "Invalid event is received while processing network " + |
| 158 | "configuration event"; |
| 159 | public static final String NETWORK_CONFIG_EVENT_IS_RECEIVED |
| 160 | = "Event is received from network configuration {}"; |
| 161 | public static final int ARP_PRIORITY = 0xffff; |
| 162 | public static final short ARP_RESPONSE = 0x2; |
| 163 | public static final String INVALID_TARGET_RECEIVED |
| 164 | = "Invalid target type has received"; |
| 165 | public static final String INVALID_ACTION_VPN_AF_CONFIG |
| 166 | = "Invalid action is received while processing VPN af" + |
| 167 | " configuration"; |
| 168 | public static final String EXPORT_ROUTE_POLICY = "export_route_policy"; |
| 169 | public static final String IMPORT_ROUTE_POLICY = "import_route_policy"; |
| 170 | public static final String VRF_RT_TYPE = "vrf_rt_type"; |
| 171 | public static final String VRF_RT_VALUE = "vrf_rt_value"; |
| 172 | public static final String BGP_EVPN_ROUTE_UPDATE_START |
| 173 | = "bgp evpn route update start {}"; |
| 174 | public static final String MPLS_OUT_FLOWS = "mpls out flows --> {}"; |
| 175 | public static final String BGP_EVPN_ROUTE_DELETE_START |
| 176 | = "bgp route delete start {}"; |
| 177 | public static final String ROUTE_ADD_ARP_RULES = "Route ARP Rules-->ADD"; |
| 178 | public static final String ROUTE_REMOVE_ARP_RULES |
| 179 | = "Route ARP Rules-->REMOVE"; |
| 180 | public static final String TUNNEL_DST = "tunnelDst"; |
| 181 | public static final String FAILED_TO_SET_TUNNEL_DST |
| 182 | = "Failed to get extension instruction to set tunnel dst {}"; |
| 183 | public static final String VXLAN = "vxlan"; |
| 184 | public static final String CANNOT_FIND_TUNNEL_PORT_DEVICE = |
| 185 | "Can't find tunnel port in device {}"; |
| 186 | } |