################################################################################
# Other protocol configurations                                                #
################################################################################

# This will create MLD v2 Host Stack with IPTV enabled on top of IPv6 stack having zap behavior as zap and view, zapping type as multicast to leave and zap direction as down.

print "Creating MLD Host Stack on top of IPv6 1 stack"
_result_ = ixiangpf.emulation_mld_config(
    mode="create",
    handle=ipv6_1_handle,
    mld_version="v2",
    name="""MLD Host 1""",
    enable_iptv="1",
    iptv_name="""IPTV 1""",
    stb_leave_join_delay="3000",
    join_latency_threshold="10000",
    leave_latency_threshold="10000",
    zap_behavior="zapandview",
    zap_direction="down",
    zap_interval="10000",
    num_channel_changes_before_view="1",
    view_duration="10000",
    zap_interval_type="multicasttoleave",
    log_failure_timestamps="0",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_mld_config', _result_)

mldHost_1_handle = _result_['mld_host_handle']
mld_host_iptv_handle = _result_['mld_host_iptv_handle']

# Creating MLD Group Ranges
Example #2
0
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('interface_config', _result_)

ipv6_2_handle = _result_['ipv6_handle']

################################################################################
# Other protocol configurations                                                #
################################################################################

# This will create MLD v2 Host Stack with IPTV disabled on top of IPv6 stack

# Creating MLD Host Stack on top of IPv6 stack
print "Creating MLD Host Stack on top of IPv6 stack in first topology"
_result_ = ixiangpf.emulation_mld_config(
    mode="create",
    handle=ipv6_1_handle,
    mld_version="v2",
    name="""MLD Host 1""",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_mld_config', _result_)

mldHost_1_handle = _result_['mld_host_handle']

# Creating multivalue for group address
print "Creating multivalue pattern for MLD Host group address"
_result_ = ixiangpf.multivalue_config(
    pattern="counter",
    counter_start="ff0a:0:0:0:0:0:0:1",
    counter_step="1:0:0:0:0:0:0:0",
    counter_direction="increment",
    nest_step="0:0:0:1:0:0:0:0",