Exemple #1
0
    ErrorHandler('interface_config', _result_)

ipv4_2_handle = _result_['ipv4_handle']

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

# This will create IGMP v3 Host Stack with IPTV disabled on top of IPv4 stack

# Creating IGMP Host Stack on top of IPv4 stack
print "Creating IGMP Host Stack on top of IPv4 stack in first topology"     
_result_ = ixiangpf.emulation_igmp_config(
    handle                               = ipv4_1_handle,
    protocol_name                        = """IGMP Host""",
    mode                                 = "create",
    filter_mode                          = "include",
    igmp_version                         = "v3",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_config', _result_)
    
igmpHost_1_handle = _result_['igmp_host_handle']

# Creating multivalue for group address
print "Creating multivalue pattern for IGMP Host group address"
_result_ = ixiangpf.multivalue_config(
    pattern                = "counter",
    counter_start          = "226.0.0.1",
    counter_step           = "1.0.0.0",
    counter_direction      = "increment",
Exemple #2
0
# Other protocol configurations                                                #
################################################################################

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

print "Creating IGMP Host Stack on top of IPv4 1 stack"
_result_ = ixiangpf.emulation_igmp_config(
    handle=ipv4_1_handle,
    protocol_name="""IGMP Host 1""",
    mode="create",
    filter_mode="include",
    igmp_version="v3",
    enable_iptv="true",
    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_type="multicasttoleave",
    zap_interval="10000",
    num_channel_changes_before_view="1",
    view_duration="10000",
    log_failure_timestamps="0",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_igmp_config', _result_)

igmpHost_1_handle = _result_['igmp_host_handle']
igmp_host_iptv_handle = _result_['igmp_host_iptv_handle']