Skip to main content

Python OO API package to automate Xena traffic generator

Project description

Python OO API for Xena Valkyrie traffic generator.

Functionality

The current version supports the following test flow:

  • Load/Build configuration -> Change configuration -> Start/Stop traffic -> Get statistics/capture

Supported operations:

  • Login, connect to chassis and reserve ports
  • Load existing configuration file
  • Build configuration from scratch
  • Get/set attributes
  • Start/Stop - transmit, capture
  • Statistics - ports, streams (end to ends) and TPLDs
  • Capture - get captured packets
  • Release ports and disconnect

Migrate from pyxenamanager

  • Package renamed from xenamanager to xenavalkyrie
  • XenaStreamsStats.statistics['rx']:
    Returns all RX statistics indexed by RX port instead of TPLD object.

Installation

pip install xenavalkyrie

Getting started

Under xenavalkyrie.test.xena_samples you will find some basic samples.
See inside for more info.

Documentation

http://pyxenavalkyrie.readthedocs.io/en/latest/

Usage notes

  • Do not create XenaManager manually but use the init_xena factory
  • When loading configuration files, first load all files only then manipulate the configuration.

Related works

The package replaces pyxenamanager - https://github.com/xenadevel/PyXenaManager

Contact

Feel free to contact me with any question or feature request at yoram@ignissoft.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xenavalkyrie-1.3.7.tar.gz (30.6 kB view details)

Uploaded Source

File details

Details for the file xenavalkyrie-1.3.7.tar.gz.

File metadata

  • Download URL: xenavalkyrie-1.3.7.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15+

File hashes

Hashes for xenavalkyrie-1.3.7.tar.gz
Algorithm Hash digest
SHA256 7018042528dff7d09e18000b0cb1831fea1c674006cb37b0fb2d3ad48ff92714
MD5 70d4e76dba17eb15dfecda021f93ca74
BLAKE2b-256 ffabb6fa59474629df89e6a84995d76fc99469673fee39b2367d4a28f41cdd56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page