ostinato.protocols.gre_pb2 module¶
Configure GRE protocol attributes to encapsulate and tunnel network traffic within Ostinato streams using the GRE object
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]
my_gre.<attribute>
Gre class¶
Class attributes¶
flags¶
Gre.flags : long
rsvd0¶
Gre.rsvd0 : long
version¶
Gre.version : long
protocol_type¶
Gre.protocol_type : long
checksum¶
Gre.checksum : long
is_override_checksum¶
Gre.is_override_checksum : boolean
rsvd1¶
Gre.rsvd1 : long
key¶
Gre.key : long
sequence_num¶
Gre.sequence_num : long