diff options
Diffstat (limited to 'scripts/stl/hlt/hlt_ipv6_ranges.py')
-rwxr-xr-x | scripts/stl/hlt/hlt_ipv6_ranges.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/stl/hlt/hlt_ipv6_ranges.py b/scripts/stl/hlt/hlt_ipv6_ranges.py new file mode 100755 index 00000000..b50cc481 --- /dev/null +++ b/scripts/stl/hlt/hlt_ipv6_ranges.py @@ -0,0 +1,22 @@ +from trex_stl_lib.trex_stl_hltapi import STLHltStream + + +class STLS1(object): + ''' + Eth/IPv6/UDP stream with VM, to change the ipv6 addr (only 32 lsb) + ''' + + def get_streams (self, direction = 0, **kwargs): + return STLHltStream(l3_protocol = 'ipv6', l3_length = 150, l4_protocol = 'udp', + ipv6_src_addr = '1111:2222:3333:4444:5555:6666:7777:8888', + ipv6_dst_addr = '1111:1111:1111:1111:1111:1111:1111:1111', + ipv6_src_mode = 'increment', ipv6_src_step = 5, ipv6_src_count = 10, + ipv6_dst_mode = 'decrement', ipv6_dst_step = '1111:1111:1111:1111:1111:0000:0000:0011', ipv6_dst_count = 150, + ) + +# dynamic load - used for trex console or simulator +def register(): + return STLS1() + + + |