diff options
author | imarom <imarom@cisco.com> | 2016-11-23 12:00:01 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-11-23 12:00:01 +0200 |
commit | d4dc81145d339e9cae7991f528b472d4c4178913 (patch) | |
tree | a89a2900aa9caea02a02cb877ebfa967601ea091 | |
parent | 5472a2937363370d8632bb0e53757bc66a0b2403 (diff) |
merge issues
Signed-off-by: imarom <imarom@cisco.com>
3 files changed, 12 insertions, 9 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index 9e727993..d23010db 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -1765,6 +1765,9 @@ class STLClient(object): self.__release(ports) raise STLError(rc) + for port_id in ports: + if not self.ports[port_id].is_resolved(): + self.logger.log(format_text('*** Warning - Port {0} destination is unresolved ***'.format(port_id), 'bold')) @__api_check(True) def release (self, ports = None): @@ -3118,7 +3121,7 @@ class STLClient(object): parsing_opts.SOURCE_PORT, parsing_opts.PING_IPV4, parsing_opts.PKT_SIZE, - parsing_opts.COUNT) + parsing_opts.PING_COUNT) opts = parser.parse_args(line.split()) if not opts: diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py index f20bdad6..8a667dc0 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py @@ -57,7 +57,8 @@ RETRIES = 37 RX_FILTER_MODE = 38 SOURCE_PORT = 39 PING_IPV4 = 40 -PKT_SIZE = 41 +PING_COUNT = 41 +PKT_SIZE = 42 GLOBAL_STATS = 50 PORT_STATS = 51 @@ -431,6 +432,12 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'], 'required': True, 'type': check_ipv4_addr}), + PING_COUNT: ArgumentPack(['-n', '--count'], + {'help': 'How many times to ping [default is 5]', + 'dest': 'count', + 'default': 5, + 'type': int}), + PKT_SIZE: ArgumentPack(['-s'], {'dest':'pkt_size', 'help': 'packet size to use', diff --git a/src/common/basic_utils.cpp b/src/common/basic_utils.cpp index d8a95b53..dfd3b183 100755 --- a/src/common/basic_utils.cpp +++ b/src/common/basic_utils.cpp @@ -178,13 +178,6 @@ void TestDump(void){ utl_DumpBuffer2(stdout,buffer,31,1,4,SHOW_BUFFER_ADDR_EN |SHOW_BUFFER_CHAR); } -std::string -utl_macaddr_to_str(const uint8_t *mac) { - std::string tmp; - utl_macaddr_to_str(mac, tmp); - return tmp; -} - void utl_macaddr_to_str(const uint8_t *macaddr, std::string &output) { for (int i = 0; i < 6; i++) { |