Skip to content

ostinato.emul module

Flexible network emulation using ARP, IPv4/IPv6, MAC, NDP, and VLAN configurations for automated network testing using API

Module Classes

ArpEntry class

Class attributes

ip4

ArpEntry.ip4 : long

Optional. If not set, defaults to 0.

mac

ArpEntry.mac : long

Optional. If not set, defaults to 0.

Device class

Class attributes

mac

Device.mac : long

Optional. If not set, defaults to 0.

vlan

Device.vlan : List[long]

Optional. If not set, defaults to 0.

ip4

Device.ip4 : long

Optional. If not set, defaults to 0.

ip4_prefix_length

Device.ip4_prefix_length : long

Optional. If not set, defaults to 0.

ip4_default_gateway

Device.ip4_default_gateway : long

Optional. If not set, defaults to 0.

ip6

Device.ip6 : Ip6Address
See Ip6Address

ip6_prefix_length

Device.ip6_prefix_length : long

Optional. If not set, defaults to 0.

ip6_default_gateway

Device.ip6_default_gateway : Ip6Address
See Ip6Address

DeviceNeighborList class

Class attributes

device_index

DeviceNeighborList.device_index : long

Optional. If not set, defaults to 0.

arp

DeviceNeighborList.arp : List[ArpEntry]
See ArpEntry

ndp

DeviceNeighborList.ndp : List[NdpEntry]
See NdpEntry

Ip4Emulation class

Class attributes

address

Ip4Emulation.address : long

Optional. If not set, defaults to 0.

prefix_length

Ip4Emulation.prefix_length : long

Optional. If not set, defaults to 24.

default_gateway

Ip4Emulation.default_gateway : long

Optional. If not set, defaults to 0.

step

Ip4Emulation.step : long

Optional. If not set, defaults to 1.

Ip6Address class

Class attributes

hi

Ip6Address.hi : long

Optional. If not set, defaults to 0.

lo

Ip6Address.lo : long

Optional. If not set, defaults to 0.

Ip6Emulation class

Class attributes

address

Ip6Emulation.address : Ip6Address
See Ip6Address

prefix_length

Ip6Emulation.prefix_length : long

Optional. If not set, defaults to 64.

default_gateway

Ip6Emulation.default_gateway : Ip6Address
See Ip6Address

step

Ip6Emulation.step : Ip6Address
See Ip6Address

MacEmulation class

Class attributes

address

MacEmulation.address : long

Optional. If not set, defaults to 0.

step

MacEmulation.step : long

Optional. If not set, defaults to 1.

NdpEntry class

Class attributes

ip6

NdpEntry.ip6 : Ip6Address
See Ip6Address

mac

NdpEntry.mac : long

Optional. If not set, defaults to 0.

VlanEmulation class

Class attributes

stack

VlanEmulation.stack : List[Vlan]
See Vlan

Vlan class

Class attributes

tpid

Vlan.tpid : long

Optional. If not set, defaults to 33024.

vlan_tag

Vlan.vlan_tag : long

Optional. If not set, defaults to 100.

count

Vlan.count : long

Optional. If not set, defaults to 1.

step

Vlan.step : long

Optional. If not set, defaults to 1.

Back to top