ostinato.protocols.snap_pb2 module¶
Customize SNAP protocol attributes such as OUI (Organizationally Unique Identifier) and Type to configure packet behavior within Ostinato streams
To add and configure Snap in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kSnapFieldNumber
and access the Snap object from the Protocol object's Extensions
dictionary using the key snap_pb2.snap
from ostinato.protocols import snap_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kSnapFieldNumber
my_snap = proto.Extensions[snap_pb2.snap]
my_snap.<attribute>
Snap class¶
Class attributes¶
is_override_oui¶
Snap.is_override_oui : boolean
is_override_type¶
Snap.is_override_type : boolean
oui¶
Snap.oui : long
type¶
Snap.type : long