ostinato.protocols.snap_pb2 module

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]

You can then set Snap attributes using my_snap.<attribute>

Snap class

Class attributes

is_override_oui

Snap.is_override_oui : boolean

Optional. If not set, defaults to False.

is_override_type

Snap.is_override_type : boolean

Optional. If not set, defaults to False.

oui

Snap.oui : long

Optional. If not set, defaults to 0.

type

Snap.type : long

Optional. If not set, defaults to 0.

results matching ""

    No results matching ""