Skip to content

ostinato.protocols.llc_pb2 module

To add and configure Llc in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kLlcFieldNumber and access the Llc object from the Protocol object's Extensions dictionary using the key llc_pb2.llc

from ostinato.protocols import llc_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kLlcFieldNumber
my_llc = proto.Extensions[llc_pb2.llc]

You can then set Llc attributes using my_llc.<attribute>

Llc class

Class attributes

is_override_dsap

Llc.is_override_dsap : boolean

Optional. If not set, defaults to False.

is_override_ssap

Llc.is_override_ssap : boolean

Optional. If not set, defaults to False.

is_override_ctl

Llc.is_override_ctl : boolean

Optional. If not set, defaults to False.

dsap

Llc.dsap : long

Optional. If not set, defaults to 0.

ssap

Llc.ssap : long

Optional. If not set, defaults to 0.

ctl

Llc.ctl : long

Optional. If not set, defaults to 0.

Back to top