Skip to main content

Python OO API package to automate Xena traffic generator

Project description

This package implements Python OO API for Xena traffic generator.

This package was replaced with xenavalkyrie. All future developmenet will be done within the new package

xenavalkyrie keeps backward compatibility with pyxenamanager 1.0.0 so the move should be straight formard:

  • change all imports from xenamanager.* to xenavalkyrie.*


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

Upgrade from version 0.9.2 to version 1.0.0

Version 0.9.2 is the last version supporting only CLI API. In order to introduce REST API some changes that breaks backwards compatibility were made:

  • xena_object.get_attributes(): Remove the attribute parameter and return all attributes of the object instead.
  • xena_object.get_attribute(attribute): returns string attributes without the surrounding “”, just like they are returned by config/info commands.
  • xena_stream.modifiers: returns all and only standard modifiers indexed by modifier index instead of modifier position.
  • xena_stream.xmodifiers: returns all and only extended modifiers indexed by modifier index instead of modifier position.


pip instsll pyxenamanager

Getting started

Under xenamanager.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.


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 pyxenamanager, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyxenamanager-1.0.3.tar.gz (21.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page