Skip to main content

Python OO API package to automate Xena traffic generator

Project description

Python OO API for Xena Valkyrie traffic generator.


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.


pip install xenavalkyrie

Getting started

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


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 -


Feel free to contact me with any question or feature request at

Project details

Download files

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

Files for xenavalkyrie, version 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size xenavalkyrie-3.0.0.tar.gz (26.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page