aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
AgeCommit message (Collapse)AuthorFilesLines
2016-04-13Move methods from topology.py to more appropriate place.Matej Klotton6-418/+341
Change-Id: I2612a9466095b3d79a4a9d938fcdbf9f93133f69 Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-04-13Honeycomb setup and utilsTibor3-242/+390
- re-implement HTTPCodes as IntEnum rather then dictionary - add methods to manipulate data using honeycomb - get, set, delete - change the name of url file from vpp_version.url to oper_vpp_version.url - improve checking of startup and shutdown state of honeycomb - PEP8 fixes - add docstrings in all modules and classes - move logging to the lowest possible level - improve logging in exceptions - add method exec_command_sudo_log to resources.libraries.python.ssh module Change-Id: I54e0c6b45313e3a3c11bafa475488ae2b1e605c2 Signed-off-by: Tibor Frank <tifrank@cisco.com>
2016-04-13Add keywords for Honeycomb testsselias2-20/+78
-add interface dump and bridge-domain dump to Vat command templates -add low level keywords to implement vat dump commands The resulting data dumps will be used in Honeycomb testing, to verify data retrieved through Honeycomb API. Change-Id: I2a913eaf23aa13d7223576220681821007672812 Signed-off-by: selias <samuel.elias@pantheon.tech>
2016-04-11Combined DropRateSearchpmikus1-82/+155
- combined search algorithm using linear and binary search - add KWs into performance library for binary and combined search - remove short_bridge_domain_binary.robot as binary and combined search KWs are in library for optional use - PEP8 fixes Change-Id: I4a6c3c07c82db4f855fb93214b0532ee0c783e0a Signed-off-by: pmikus <pmikus@cisco.com>
2016-04-08Add Vagrantfile for local testing.Stefan Kobza2-17/+65
Vagrantfile contains 3 VMs as of now, 2 DUTs 1 TG, with these notes: - login is csit/csit - by default provision script installs all deb packages from the dir where Vagrantfile is - developed for, and only tested on vbox (someone can pick up vmware) - All nodes have 1 shared mgmt network: 192.168.255.0/24 - hosts have these IP addresses in host-only network TG : 192.168.255.100 DUT1 : 192.168.255.101 DUT2 : 192.168.255.102 - script created to download MAC address information - PCI addresses are always the same for vbox (not sure about vmware) HOWTO (will create a wiki page once one is created for CSIT project): - copy Vagrantfile to separate dir on host - vagrant up --parallel sit-back-and-relax - from VM that has access to the same host-only network (192.168.255.0 above) - copy your ssh-key to csit@192.168.255.{101,102,250} using ssh-copy-id - cd ${csit_dir} - virtualenv & pip as in README - export PYTHONPATH=${csit_dir} - resources/tools/topology/update_topology.py -v -f -o topologies/available/vagrant_pci.yaml \ topologies/available/vagrant.yaml - pybot -L TRACE \ -v TOPOLOGY_PATH:topologies/available/vagrant_pci.yaml -s \ "ipv4" tests - see tests results Change-Id: Ic27626605a9c820bca977b38f4e8ca37d1504ff5 Signed-off-by: Stefan Kobza <skobza@cisco.com>
2016-04-05Setup and check honeycomb on all DUTsselias4-2/+671
- methods implementing HTTP requests (PUT,GET,POST,DELETE) - methods for parsing HTTP responses - methods for honeycomb setup on DUT - updated constants.py - keywords for honeycomb setup and communication - simple honeycomb sanity test (not enabled for jenkins job runs) Change-Id: I589f0ca56cc01072b92fe9363aed16a4098aee40 Signed-off-by: selias <samuel.elias@pantheon.tech>
2016-04-01Add get_vhost_user_if_name_by_sockMatus Fabian1-0/+16
Change-Id: I1d7f2cdfcf29763ce94417c98d363021f1fb27a1 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-30Add linux_add/del_bridge and modify vpp_add_l2fib_entryMatus Fabian1-4/+39
linux_add_bridge - bridge two interfaces on linux node linux_del_bridge - delete bridge from linux node vpp_add_l2fib_entry - param interface should be interface name or sw_if_index Change-Id: Ia8030e24a0afe088df0dcb6c65a85ed341224206 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-30BestN/WorstN DropRateSearchpmikus1-29/+132
- implementation of Best-of-N/Worst-of-N result evaluation with max attempts per one rate step Change-Id: Ice1d6e93807d90761462c4df601cbe068011159a Signed-off-by: pmikus <pmikus@cisco.com>
2016-03-24Setup and run QEMU VMMatus Fabian1-2/+358
Change-Id: I22640caa9f13be09d2a837c6332d7b86cef77efc Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-24Add node type VM to set_interface_stateMatus Fabian1-1/+1
Change-Id: Ib70de73eec7c015f328f877fa34ead15e27eb254 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-24Binary DropRateSearchpmikus1-4/+69
- binary search - short perf bridge_domain with binary Change-Id: I50538738b356cc8fef4cfcb4974c43c5123827d1 Signed-off-by: pmikus <pmikus@cisco.com>
2016-03-18Remove apt-get call to install dependencies.Carsten Koester1-15/+0
Change-Id: I309a13bc857b89f1f342d659ab80b70d7a5fc686 Signed-off-by: Carsten Koester <ckoester@cisco.com>
2016-03-18Add SSH disconnectMatus Fabian1-0/+11
Change-Id: Ib0efec083aa9ee33b7d15680e5a15989827b8e57 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-18Fixed SSH exec_command timeoutMatus Fabian1-15/+6
Change-Id: I8cd2fcfbe774bd651ed57be0129c32d6ba68adcc Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-17DropRateSearch libraryMiroslav Miklus2-60/+406
- linear search - t-rex DropRateSearch implementation - long perf bridge_domain test - introduced PERFORMANCE_SHORT, PERFORMANCE_LONG test tags Change-Id: I497b72f3e6d58a67ca5a386403d1e84dcf433ec4 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-03-14Add vxlan tests using xconnectPatrik Hrnciar4-13/+22
Change-Id: I190689d5a624f1c876df90ce29b05a2b0b8a2df4 Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
2016-03-14Add VM to NodeTypeMatus Fabian1-0/+2
Change-Id: Ic3a313837f48a1c7bd1c70876c82799ac1994f2f Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-14SSH connect use port specified in node dictMatus Fabian1-1/+2
Change-Id: I4ed7d58466724e68dc7ad22f85f6e7703a6c7a64 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-11Add Vhost-user interfaces libraryMatus Fabian1-0/+39
Change-Id: I295e67b4a5622b1fff4fbe5d4a7e5753f3c4af57 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-11Add KW to build QEMU 2.2.1 on nodeMatus Fabian1-0/+40
Change-Id: I58271aff1ef558752f00593bbad5c3317d08288d Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-03-11Update VPP version downloaded from Nexus.Matej Klotton2-11/+23
Change-Id: Iae2ee6d576347262d9f3f9a9e9b9cc65dbc5bf5e Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-03-10Add library to generate VPP configuration fileCarsten Koester1-0/+331
Change-Id: Icc202c82b238a30735ffa3d0017c61e2dd8bd532 Signed-off-by: Carsten Koester <ckoester@cisco.com>
2016-03-07Modify sweep ping test casesJuraj Sloboda3-5/+83
- Write separate sweep ping test cases for jumbo frames - Compute sweep ping end size from reported MTU on DUT interface - Set MTU on TG according to MTU on DUT interface - Log VPP packet traces on IPv4 and IPv6 tests failure - Remove VM_ENV tag from sweep ping test cases for jumbo frames Change-Id: I47aa7977bcff9c4366c67578aef542924a1d055b Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2016-03-07change interface up calls to explicit keywordsselias2-5/+19
Remove implicit "set interface state" calls from ipv4 and ipv6 test keywords. Use robot keyword instead. Change-Id: I535a7a967910e77dded39eb167fb9c164187566e Signed-off-by: selias <samuel.elias@pantheon.tech>
2016-03-07Add with-statment support to VatTerminal.Matej Klotton6-81/+77
Change-Id: I7b4b32ce07b9247ccf80bf6b5d3339d00bc0999f Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-03-07Performance suite reorg, v4 testsMiroslav Miklus1-56/+93
- perf suite splitted to 1.xconnect 2.bridge-domain 3.IPv4 - IPv4 perf tests implemented - renamed perf tests prefix 2core -> 1core Change-Id: I9ef2dbdfcfdcb36e8865989e6255d69ced33269c Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-03-04Add more IP networks to IPV4_NETWORKS and IPV6_NETWORKSMatej Klotton2-4/+2
Change-Id: If340a21aac02f94aaf8a282f7b689c0f5d9aa438 Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-03-02Transfer l2_xconnect setup to L2UtilPatrik Hrnciar2-46/+23
Change-Id: I7a661c9ce8b5f9ca8fbd36858f7a9cd6f1da8ffd Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
2016-02-29Add VXLAN testMatej Klotton4-70/+139
Change-Id: Id1d37fda2697fbfb7aa7a79318f8316b80e96963 Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-02-27Fix checksum comparison in traffic scriptsJuraj Sloboda1-1/+23
Change-Id: Ibeff7c790ed4aba8b3a0534681912d0d5b826dbb Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2016-02-27Minor change in virtual env creationJan Gelety1-1/+3
- increase timeout for virtualenv creation - confirm successful virtualenv creation Change-Id: Ic973f97e23ccf35c677849f31251637bf8551fef Signed-off-by: Jan Gelety <jgelety@cisco.com>
2016-02-26T-REX: startup config generationMiroslav Miklus1-4/+47
- T-rex startup config generated based on computed path - move t-rex tooling to t-rex directory Change-Id: I3ac698f41f98934bcce4af35dc3a755a8948e887 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-02-25Performance suite: introduced suite variablesMiroslav Miklus1-3/+8
- perf suite variables - T-REX setup fix Change-Id: I608581e45d0e5f80e8f75c2a07c994bf0e0d0df3 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-02-24vpp_ra_supress_link_layer run VAT tempalteMatus Fabian1-11/+6
Change-Id: I7385650a1c9502b430c9f8022f8c298be52deba8 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-23Automate VIRL simulation life cycle.Stefan Kobza1-0/+14
Change-Id: I126c42b994c1356acc202f4ec1b153c790c43d46 Signed-off-by: Stefan Kobza <skobza@cisco.com>
2016-02-23Remove Interface.close, rename script argumentJuraj Sloboda1-4/+0
Change-Id: I5da20a12f801264821890e6516899344456576a8 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2016-02-23Fixed strings with format splittingMatus Fabian1-1/+1
Change-Id: Iaded6b2ba46df86dd89afb2e2dc411d9972fb7d7 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-23Instead of Sleep loop verification of interfacesMatus Fabian1-2/+69
Change-Id: I29a974182082f0e5c84a9dd21a539d21ef75b41b Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-19Remove duplicate codeJuraj Sloboda1-40/+0
Change-Id: I2382c3a418966f2f5c585e872889667945850fe0 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2016-02-19Removed link-up/link-down from if state setupMatus Fabian1-2/+2
Change-Id: Ic30102159dc53c2dfc8827bb3a78d040cc336166 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-19Convert ipv4 to use node_pathJuraj Sloboda1-0/+32
Change-Id: Ie5587d4de9accb852e8f7634c42b9ccd9292830b Signed-off-by: Juraj Sloboda <jsloboda@cisco.com> Signed-off-by: Stefan Kobza <skobza@cisco.com>
2016-02-19T-REX: change relative rate values to absolute unitsMiroslav Miklus1-3/+3
Instead of using realative values expressed in percentage of linerate rather use absolute values to assure consistency of results across NICs with various speeds (10G, 40G, 100G, ...) Change-Id: Ifd455d823e80002c277deaf8cb8295c81b59bf4a Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-02-19IPv6 VPP setup changed to VAT templatesMatus Fabian1-37/+25
Change-Id: I54c79ab1b76af93d46f6ee6f391ba2807a3be772 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-18Bridge Domain tests updateMatus Fabian2-15/+38
Change-Id: I4ad1566fd23746c0a85d7abce2bbffd085ee397c Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-02-17T-REX fixesMiroslav Miklus1-3/+4
- ssh session hang with bash as /bin/sh - trex-cfg to handle initial configuration Change-Id: Ibcbde2d17f0e10ce126dc5db6bf9654185b0bb75 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-02-17Test VIRL connection.Stefan Kobza5-18/+59
Change-Id: I812ff9c8c9669b63907469c643c839e8bd3b419a Signed-off-by: Stefan Kobza <skobza@cisco.com>
2016-02-17Refactor IPv4 utilsFilip Tehlar5-515/+462
Change-Id: Iae12444efba33e2d37b5d7beb1620e859abd84d7 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-02-17LF testbed2 topology, T-REX upgrade, vpe->vpp renameMiroslav Miklus5-39/+18
Testing testbed2 infrastructure T-REX upgrade 1.88 -> 1.91 Rename "vpe" to "vpp" Change-Id: Ia03c363e2b3c77a4e469509460b25028e5e1814f Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
2016-02-16VppCounters: DBG CLI: show commandsMiroslav Miklus1-0/+30
show commands usefull for further debugging of FAILED tests Change-Id: I225a2e251e2ee7a1037255dd39a833d7ca1c94ed Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>