2f7850f3c0
- Added appliance manager to deploy, maintain, update and clean topology appliances for test modules - Added traffic manager to define network related traffic functions - Added feature manager to CRUD feature related tasks - Rewrote test_micro_segmentation_ops.py based on new design - Rewrote L2gaeway nsxv3 tests based on new design - Added L2gateway nsxv3 scenario tests based on new design Change-Id: I571a9dede56266204efd36ad2720340e7128fd79
62 lines
1.7 KiB
Python
62 lines
1.7 KiB
Python
# Copyright 2017 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
|
|
EXCLUSIVE_ROUTER = 'exclusive'
|
|
DISTRIBUTED_ROUTER = 'distributed'
|
|
TCP_PROTOCOL = 'tcp'
|
|
ICMP_PROTOCOL = 'icmp'
|
|
|
|
# NSXV3 Firewall
|
|
NSX_FIREWALL_REALIZED_DELAY = 2
|
|
|
|
APPLIANCE_NAME_STARTS_WITH = "vmw_"
|