From: Hanoh Haim Date: Mon, 14 Mar 2016 16:14:52 +0000 (+0200) Subject: david comments X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=db1d9b461fb4ab78f290a71ff73443dbb6e7beaa;p=trex.git david comments --- diff --git a/draft_trex_stateless.asciidoc b/draft_trex_stateless.asciidoc index 976ac2fb..79533fec 100644 --- a/draft_trex_stateless.asciidoc +++ b/draft_trex_stateless.asciidoc @@ -80,7 +80,7 @@ TRex has limited functionality compared to IXIA, but has some advantages. The fo [cols="1^,3^,3^,5^", options="header"] |================= | Feature | IXExplorer |TRex | Description -| Line rate | Yes |Almost ~15MPPS/core| +| Line rate | Yes |Almost ~14MPPS/core| | Multi stream | 255 | [green]*Unlimited* | | Packet build flexibility | Limited | [green]*Scapy- Unlimited* | e.g GRE/VXLAN/NSH is supported. Can be extended to future protocols | Packet Field engine | limited | [green]*Unlimited* | @@ -556,6 +556,36 @@ NUMA Node | 0 | 0 | <1> Configure all the ports to be promiscuous <2> Check port promiscuous mode +To change the mode via Python API do this: + +.Python API to change to promiscuous mode +[source,python] +---- + c = STLClient(verbose_level = LoggerApi.VERBOSE_REGULAR) + + c.connect() + + my_ports=[0,1] + + # prepare our ports + c.reset(ports = my_ports) + + # port info, mac-addr info, speed + print c.get_port_info(my_ports) <1> + + c.set_port_attr(my_ports, promiscuous = True) <2> +---- +<1> Get port info for all the ports +<2> Change port attribute + +See here for more info link:cp_stl_docs/api/client_code.html[Python Client API] + + +[NOTE] +===================================================================== +Interface is not promiscuous mode by default. If you change it to be True, it is better to change it back after your test. +===================================================================== + ==== Tutorial: Python automation *Goal*:: Simple automation test using Python from remote or local machine @@ -2763,16 +2793,9 @@ TRex>start -f stl/hlt/hlt_udp_inc_dec_len_9k.py -m 10mbps -a more profiles and example can be found in `stl/hlt` folder - === Reference -==== Stream - -==== Packet - -==== Field Engine commands - -==== Modes +Have a look link:cp_stl_docs/index.html[Python Client API] === Console commands diff --git a/ws_main.py b/ws_main.py index 06e45c48..42e1e3c1 100644 --- a/ws_main.py +++ b/ws_main.py @@ -208,7 +208,7 @@ def build(bld): source='trex_book.asciidoc waf.css', target='trex_manual.html', scan=ascii_doc_scan) bld(rule='${ASCIIDOC} -a docinfo -a stylesheet=${SRC[1].abspath()} -a icons=true -a toc2 -a max-width=55em -d book -o ${TGT} ${SRC[0].abspath()}', - source='draft_trex_stateless.asciidoc waf.css', target='draft_trex_stateless1.html', scan=ascii_doc_scan) + source='draft_trex_stateless.asciidoc waf.css', target='draft_trex_stateless.html', scan=ascii_doc_scan) bld(rule=convert_to_pdf_book,source='trex_book.asciidoc waf.css', target='trex_book.pdf', scan=ascii_doc_scan)