ostinato.protocols.vlan_pb2 module¶
Configure VLAN settings in your network stream using ostinato.protocols.vlan_pb2. Easily adjust TPID and VLAN tags for testing the VLANS in your network
To add and configure Vlan in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kVlanFieldNumber
and access the Vlan object from the Protocol object's Extensions
dictionary using the key vlan_pb2.vlan
from ostinato.protocols import vlan_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kVlanFieldNumber
my_vlan = proto.Extensions[vlan_pb2.vlan]
my_vlan.<attribute>
Vlan class¶
Class attributes¶
is_override_tpid¶
Vlan.is_override_tpid : boolean
tpid¶
Vlan.tpid : long
vlan_tag¶
Vlan.vlan_tag : long