X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FConstants.py;h=dc9eda7505ea3fcf73b65d1755fe69fc0de53592;hb=2da2aa12260143bc513b4dff5e2b2ef6755172ab;hp=626dab83314d10e4a249221c5a1c2c27fe3036cd;hpb=efcdd3eadfadb2814a9e3b67cce84b5dc89c7108;p=csit.git diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py index 626dab8331..dc9eda7505 100644 --- a/resources/libraries/python/Constants.py +++ b/resources/libraries/python/Constants.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2020 Cisco and/or its affiliates. # 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: @@ -182,10 +182,10 @@ class Constants: DOCKER_SUT_IMAGE_UBUNTU_ARM = u"snergster/csit-arm-sut:latest" # TRex install directory - TREX_INSTALL_DIR = u"/opt/trex-core-2.61" + TREX_INSTALL_DIR = u"/opt/trex-core-2.73" - # TRex limit memory - TREX_LIMIT_MEMORY = get_int_from_env(u"TREX_LIMIT_MEMORY ", 8192) + # TRex limit memory. + TREX_LIMIT_MEMORY = get_int_from_env(u"TREX_LIMIT_MEMORY ", 4096) # TRex number of cores TREX_CORE_COUNT = get_int_from_env(u"TREX_CORE_COUNT", 7) @@ -224,6 +224,12 @@ class Constants: u"FAIL_ON_CRC_MISMATCH" ) + # Default IP4 prefix length (if not defined in topology file) + DEFAULT_IP4_PREFIX_LENGTH = u"24" + + # Maximum number of interfaces in a data path + DATAPATH_INTERFACES_MAX = 100 + # Mapping from NIC name to its bps limit. NIC_NAME_TO_BPS_LIMIT = { u"Cisco-VIC-1227": 10000000000, @@ -234,6 +240,7 @@ class Constants: u"Intel-XL710": 24500000000, u"Intel-XXV710": 24500000000, u"Mellanox-CX556A": 100000000000, + u"Amazon-Nitro-50G": 10000000000, u"virtual": 100000000, } @@ -247,6 +254,7 @@ class Constants: u"Intel-XL710": 18750000, u"Intel-XXV710": 18750000, u"Mellanox-CX556A": 60000000, # 148809523, + u"Amazon-Nitro-50G": 1500000, u"virtual": 14880952, }