Esempio n. 1
0
        handle = igmpQuerier_1_handle,
        mode   = 'start',
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_control', _result_)

print "Waiting for 30 seconds"
time.sleep(30)

############################################################################
# Retrieve protocol statistics                                             #
############################################################################
print "Fetching IGMP Host aggregated statistics"         
protostats = ixiangpf.emulation_igmp_info(\
    handle = deviceGroup_1_handle,
    type   = 'host',
    mode   = 'aggregate',
)
if protostats['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_info', protostats)

pprint(protostats)

print "Fetching IGMP Querier aggregated statistics"
protostats = ixiangpf.emulation_igmp_info(\
    handle = deviceGroup_2_handle,
    type   = 'querier',
    mode   = 'aggregate',
)
if protostats['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_info', protostats)
Esempio n. 2
0
    handle=ipv4_2_handle,
    action='start_protocol',
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('test_control', _result_)

print "Waiting for 30 seconds"
time.sleep(30)

############################################################################
# Retrieve protocol statistics                                             #
############################################################################
print "Fetching IGMP aggregated statistics"
protostats = ixiangpf.emulation_igmp_info(\
    handle = deviceGroup_1_handle,
    type   = 'host',
    mode   = 'aggregate',
                                          )
if protostats['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_info', protostats)

pprint(protostats)

############################################################################
# Configure L2-L3 traffic                                                  #
# 1. Endpoints : Source->IPv4, Destination->Multicast group                #
# 2. Type      : Multicast IPv4 traffic                                    #
# 3. Flow Group: On IPv4 Destination Address                               #
# 4. Rate      : 1000 packets per second                                   #
# 5. Frame Size: 512 bytes                                                 #
# 6. Tracking  : IPv4 Destination Address                                  #