summaryrefslogtreecommitdiffstats
path: root/scripts/stl/hlt/hlt_ipv6_ranges.py
blob: b50cc481e226b556236c710a280b2115346fd436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()