pyats.aereport.iou package

iou – IOU

This module implement IOU section used by TestSuite.

class pyats.aereport.iou.IOU

Bases: AEReportElement

Iou server info started on local or remote hosts

Class based on the following schema definition

<xs:element name="iou" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
                <xs:sequence>
                        <xs:element name="name"/>
                        <xs:element name="initinfo">...</xs:element>
                        <xs:element name="ioulive">...</xs:element>
                        <xs:element name="diou">...</xs:element>
                        <xs:element name="core" minOccurs="0">...</xs:element>
                </xs:sequence>
        </xs:complexType>
</xs:element>
tag

Default value = ‘iou’. This is to ensure that all elements contain a tag attribute.

Type:

str

name

Name of the iou

Type:

str

initinfo

info for iou

Type:

IOUInitInfo

image

Image object, containing name and full path to image

Type:

Image

ioulive

IOULive object

Type:

IOULive

diou

DIOU object

Type:

DIOU

core

Core file name if iou crashes

Type:

str

Subpackages

Submodules

iouinitinfo – IOUInitInfo

This module implements IOUInitInfo element used by IOU.

class pyats.aereport.iou.iouinitinfo.IOUInitInfo

Bases: AEReportElement

IOUInitInfo implements element used by IOU

Class based on the following schema definition

<xs:element name="initinfo">
        <xs:complexType>
                <xs:sequence>
                        <xs:element name="image">...</xs:element>
                        <xs:element name="appid" type="xs:integer">...</xs:element>
                        <xs:element name="options">...</xs:element>
                        <xs:element name="host">...</xs:element>
                        <xs:element name="path">...</xs:element>
                        <xs:element name="timeout" type="xs:integer"/>
                        <xs:element name="logfile" type="LogFileType">...</xs:element>
                </xs:sequence>
        </xs:complexType>
</xs:element>
tag

Default value = ‘initinfo’. This is to ensure that all elements contain a tag attribute.

Type:

str

image

Image object

Type:

Image

appid

0 - 1024 app id for iou

Type:

int

options

Iou options such as -e8 -s8

Type:

str

host

Iou server host

Type:

str

path

Directory in which iou image should be invoke

Type:

str

timeout

timeout time

Type:

str

logfile

iou server logs

Type:

LogFile

ioulive – IOULive

This module implements IOULive element used by IOU.

class pyats.aereport.iou.ioulive.IOULive

Bases: AEReportElement

IOULive implements element used by IOU

Class based on the following schema definition

<xs:element name="ioulive">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="image"></xs:element>
            <xs:element name="appid" type="xs:integer"></xs:element>
            <xs:element name="options"></xs:element>
            <xs:element name="timeout" type="xs:integer"/>
            <xs:element name="device"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
tag

Default value = ‘notag’. This is to ensure that all elements contain a tag attribute.

Type:

str

image

Image object

Type:

Image()

addid

0 - 1024 app id for iou

Type:

string

options

Ioulive options

Type:

string

timeout

Timeout value

Type:

integer

device

Device used

Type:

string