# Copyright 2016 VMware, Inc. # All Rights Reserved # # 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. from oslo_log import log LOG = log.getLogger(__name__) # General constants. ONE_SEC = 1 # L2GW constants. L2GW = "l2_gateway" L2GWS = L2GW + "s" L2_GWS_BASE_URI = "/l2-gateways" EXPECTED_HTTP_RESPONSE_200 = "200" EXPECTED_HTTP_RESPONSE_201 = "201" EXPECTED_HTTP_RESPONSE_204 = "204" L2GWC = "l2_gateway_connection" # MAC Learning constants MAC_SW_PROFILE = "MacManagementSwitchingProfile" PORT_SEC_PROFILE = "SpoofGuardSwitchingProfile" SEC_GRPS_PROFILE = "SwitchSecuritySwitchingProfile" # NSXV3 MDProxy constants. MD_ERROR_CODE_WHEN_LS_BOUNDED = "10026" INTERVAL_BETWEEN_EXEC_RETRY_ON_SSH = 5 MAX_NO_OF_TIMES_EXECUTION_OVER_SSH = 30 MD_BASE_URL = "http://169.254.169.254/" # NSXV3 Port Security constants. NSX_BACKEND_TIME_INTERVAL = 30 NSX_BACKEND_SMALL_TIME_INTERVAL = 10 NSX_BACKEND_VERY_SMALL_TIME_INTERVAL = 5 # DFW NSX_FIREWALL_REALIZED_TIMEOUT = 120 # FWaaS NO_OF_ENTRIES = 20