ostinato.protocols.ip6_pb2 module¶
Configure IPv6 packet fields in a traffic stream using the Ostinato Python API
To add and configure Ip6 in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kIp6FieldNumber
and access the Ip6 object from the Protocol object's Extensions
dictionary using the key ip6_pb2.ip6
from ostinato.protocols import ip6_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kIp6FieldNumber
my_ip6 = proto.Extensions[ip6_pb2.ip6]
my_ip6.<attribute>
Ip6 class¶
Class constants¶
AddrMode¶
Ip6.kFixed
Ip6.kIncHost
Ip6.kDecHost
Ip6.kRandomHost
Class attributes¶
is_override_version¶
Ip6.is_override_version : boolean
is_override_payload_length¶
Ip6.is_override_payload_length : boolean
is_override_next_header¶
Ip6.is_override_next_header : boolean
version¶
Ip6.version : long
traffic_class¶
Ip6.traffic_class : long
flow_label¶
Ip6.flow_label : long
payload_length¶
Ip6.payload_length : long
next_header¶
Ip6.next_header : long
hop_limit¶
Ip6.hop_limit : long
src_addr_hi¶
Ip6.src_addr_hi : long
src_addr_lo¶
Ip6.src_addr_lo : long
src_addr_mode¶
Ip6.src_addr_mode : AddrMode
See AddrMode
src_addr_count¶
Ip6.src_addr_count : long
src_addr_prefix¶
Ip6.src_addr_prefix : long
dst_addr_hi¶
Ip6.dst_addr_hi : long
dst_addr_lo¶
Ip6.dst_addr_lo : long
dst_addr_mode¶
Ip6.dst_addr_mode : AddrMode
See AddrMode
dst_addr_count¶
Ip6.dst_addr_count : long
dst_addr_prefix¶
Ip6.dst_addr_prefix : long