OseTrafficConfig Object


Description:

Device level traffic configuration options.

Automatically created from: OseSwitchConfig

OseTrafficConfig Writable Attributes

Attribute Description
Common Writable Attributes Active, Name
ArpRatePerSecond

The rate at which the ARP frames are being sent.

Type: u16

Default: 1

Range: 1 - 100

ArpTrafficEnable

Specify whether to add ARP header to the generated traffic frame.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Add ARP Header.

FALSE

Do Not add ARP Header.

CustomPacketInHostParams

Custom packet-in parameters that are available if Hosts are configured on switches.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Configure custom parameters.

FALSE

Do not configure custom parameters.

DestIpv4Addr

Ipv4 address of destination host.

Type: ip

Default: 0.0.0.1

DestMacAddr

MAC address of destination host.

Type: mac

Default: 00:00:10:00:00:01

EndPointMapping

End point mapping for the traffic.

Type: enum

Default: ONE_TO_MANY

Possible Values:

Value Description
ONE_TO_MANY

One to many.

MANY_TO_MANY

Many to many.

MANY_TO_ONE

Many to one.

FrameCount

Number of traffic frames to be generated as part of Burst.

Type: u32

Default: 1

Ipv4TrafficEnable

Specify whether to add Ipv4 header to the generated traffic frame.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Add Ipv4 Header.

FALSE

Do not add Ipv4 Header.

MacTrafficEnable

Specify whether to add Ethernet header to the generated traffic frame.

Type: bool

Default: TRUE

Possible Values:

Value Description
TRUE

Add Ethernet Header.

FALSE

Does not apply (Ethernet header will always be added).

PacketInReason

Packet-In reason

Type: enum

Default: OFPR_NO_MATCH

Possible Values:

Value Description
OFPR_NO_MATCH

No matching flow (table-miss flow entry)

OFPR_ACTION

Action explicitly output to controller

OFPR_INVALID_TTL

Packet has invalid TTL

TableId

Table ID

Type: u8

Default: 0

TrafficFrameSize

Size of the traffic (packet-in) frame generated.

Type: u16

Default: 1518

Range: 64 - 9014

TrafficFramesPerSecond

Number of traffic (packet-in) frames generated per switch per second.

Type: u16

Default: 1

TrafficMode

Traffic mode to be generated.

Type: enum

Default: CONTINUOUS

Possible Values:

Value Description
CONTINUOUS

Continuous mode of traffic generation.

BURST

Burst mode of traffic generation.

UseSpirentPacketInParams

Use Spirent packet-in params

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Use Spirent packet-in params

FALSE

Do not use Spirent packet-in params

VlanId

VLAN Id to be used if VLAN header is to be added to traffic frame.

Type: u16

Default: 200

Range: 0 - 4095

VlanTrafficEnable

Specify whether to add VLAN header to the generated traffic frame.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Add VLAN Header.

FALSE

Do not add VLAN Header.

OseTrafficConfig Read-Only Attributes

There are no read-only attributes.