ostinato.protocols.gre_pb2 module¶
To add and configure Gre in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kGreFieldNumber
and access the Gre object from the Protocol object's Extensions
dictionary using the key gre_pb2.gre
from ostinato.protocols import gre_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kGreFieldNumber
my_gre = proto.Extensions[gre_pb2.gre]
You can then set Gre attributes using my_gre.<attribute>
Gre class¶
Class attributes¶
flags¶
Gre.flags : long
Optional. If not set, defaults to 10.
rsvd0¶
Gre.rsvd0 : long
Optional. If not set, defaults to 0.
version¶
Gre.version : long
Optional. If not set, defaults to 0.
protocol_type¶
Gre.protocol_type : long
Optional. If not set, defaults to 0.
checksum¶
Gre.checksum : long
Optional. If not set, defaults to 0.
is_override_checksum¶
Gre.is_override_checksum : boolean
Optional. If not set, defaults to False.
rsvd1¶
Gre.rsvd1 : long
Optional. If not set, defaults to 0.
key¶
Gre.key : long
Optional. If not set, defaults to 539015895.
sequence_num¶
Gre.sequence_num : long
Optional. If not set, defaults to 0.