ixnetwork package

Submodules

ixload.ixl_app module

Classes and utilities to manage IxLoad application.

@author yoram@ignissoft.com

class ixload.ixl_app.IxlApp(logger, api_wrapper=None)[source]

Bases: trafficgenerator.trafficgenerator.TrafficGenerator

IxLoad driver. Equivalent to IxLoad Application.

connect(ip='localhost', port=8080)[source]

Connect to IxTcl/REST server.

Parameters:
  • server – TxTcl/REST server.
  • port – REST port, ignored for IxTcl server.
controller = None
disconnect()[source]

Disconnect from chassis and server.

load_config(config_file_name, test_name='Test1')[source]
save_config(config_file_name)[source]
start_test(blocking=True)[source]
stop_test()[source]
class ixload.ixl_app.IxlChassisChain(**data)[source]

Bases: ixload.ixl_object.IxlObject

append(chassis)[source]
clear()[source]
class ixload.ixl_app.IxlController(**data)[source]

Bases: ixload.ixl_object.IxlObject

release_test()[source]
set_results_dir(results_dir)[source]
start_test(test, blocking=True)[source]
stop_test()[source]
wait_for_test_finish()[source]
class ixload.ixl_app.IxlElement(**data)[source]

Bases: ixload.ixl_object.IxlObject

reserve(location)[source]
class ixload.ixl_app.IxlRepository(**data)[source]

Bases: ixload.ixl_object.IxlObject

load_test(name='Test1')[source]
save_config(name)[source]

ixload.ixl_object module

Base classes and utilities to manage IxLoad (IXL).

author:yoram@ignissoft.com
class ixload.ixl_object.IxlList(parent, name)[source]

Bases: object

append(**attributes)[source]
clear()[source]
get_index_count()[source]
get_item(item_id)[source]
get_items()[source]
class ixload.ixl_object.IxlObject(**data)[source]

Bases: trafficgenerator.tgn_object.TgnObject

Base class for all IXN classes.

api = None
command(command, *arguments, **attributes)[source]
execute(command, *arguments)[source]
get_attribute(attribute)[source]
Parameters:attribute – requested attributes.
Returns:attribute value.
get_children(*types)[source]

Read (getList) children from IXN.

Use this method to align with current IXN configuration.

Parameters:types – list of requested children.
Returns:list of all children objects of the requested types.
get_list_attribute(attribute)[source]
Returns:attribute value as Python list.
get_name()[source]
get_obj_class(obj_type)[source]
Parameters:obj_type – IXL object type.
Returns:object class if specific class else IxlObject.
logger = None
repository = None
set_attributes(**attributes)[source]
str_2_class = {}

ixload.ixl_statistics_view module

Classes and utilities to read IxLoad statistics views (==csv files).

@author yoram@ignissoft.com

class ixload.ixl_statistics_view.IxlStatView(view, results_dir=None)[source]

Bases: object

get_counter(time_stamp, stat_name)[source]
Parameters:
  • time_stamp – requested time stamp.
  • stat_name – requested statistics name.
Returns:

int, the value of the requested statics for the requested time stamp.

get_counters(stat_name)[source]
Parameters:stat_name – requested statistics name.
Returns:all values of the requested statistic for all objects.
get_stat(time_stamp, stat_name)[source]
Parameters:
  • time_stamp – requested time stamp.
  • stat_name – requested statistics name.
Returns:

str, the value of the requested statics for the requested time stamp.

get_stats(stat_name)[source]
Parameters:stat_name – requested statistics name.
Returns:all values of the requested statistic for all objects.
get_time_stamp_stats(time_stamp)[source]
Parameters:obj_name – requested object name
Returns:all statistics values for the requested time stamp.
read_stats()[source]

Reads the statistics view from the CSV file and saves it in statistics dictionary.

The original CSV file is saved in self.csv list so the test can access the raw data at any time.

Module contents

@author yoram@ignissoft.com