ipv4_prefix_network_address       =   "202.1.0.1",
    ipv4_prefix_length                =   "32",
    ipv4_prefix_number_of_addresses   =   "1",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_ldp_config', _result_)
networkGroup_2_handle = _result_['network_group_handle'];
ipv4PrefixPools_2_handle = _result_['ipv4_prefix_pools_handle'];

# Modifying in IPv4 prefix for LDP Router related Configurations "label_value_start"=17
print "Modification of LDP related parameters in Network Cloud"
_result_ = ixiangpf.emulation_ldp_route_config (
    handle                   = networkGroup_1_handle,
    mode                     = "modify",
    egress_label_mode        = "fixed",
    fec_type                 = "ipv4_prefix",
    label_value_start        = "17",
    label_value_start_step   = "1",
    lsp_handle               = networkGroup_1_handle,
    fec_name                 = "{LDP FEC Range 1}",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_ldp_config', _result_)

# Modifying in IPv4 prefix for LDP Router related Configurations "label_value_start"=18
print "Modification of LDP related parameters in Network Cloud\n";
_result_= ixiangpf.emulation_ldp_route_config (
    handle                   = networkGroup_2_handle,
    mode                     = "modify",
    egress_label_mode        = "fixed",
    fec_type                 = "ipv4_prefix",
    label_value_start        = "18",
Esempio n. 2
0
      ipv4_prefix_metric               = "0",
      ipv4_prefix_active               = "1",
      ipv4_prefix_allow_propagate      = "0",
      ipv4_prefix_route_origin         = "another_area",
   )
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_ospf_network_group_config', _result_)

# Configuring LDP Prefix Pool Parameters
print "Configuring LDP Prefix Pool Parameters\n"
_result_ = ixiangpf.emulation_ldp_route_config(
      mode                        = "modify",
      handle                      = networkGroup_1_handle,
      egress_label_mode           = "fixed",
      fec_type                    = "ipv4_prefix",
      label_value_start           = "101",
      label_value_start_step      = "0",
      lsp_handle                  = networkGroup_1_handle,
      packing_enable              = "0",
      fec_active                  = "1",
      fec_name                    = """LDP FEC Range 1""",
   )
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_ldp_route_config', _result_)

# Add DG2 behind IPv4 Prefix Pool
print "Add DG2 behind IPv4 Prefix Pool\n"
_result_ = ixiangpf.topology_config(
      device_group_name            = """PE 1""",
      device_group_multiplier      = "1",
      device_group_enabled         = "1",
      device_group_handle          = networkGroup_1_handle,
    connected_to_handle=ethernet_2_handle,
    type="ipv4-prefix",
    ipv4_prefix_network_address="202.1.0.1",
    ipv4_prefix_length="32",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('network_group_config', _result_)
networkGroup_2_handle = _result_['network_group_handle']
ipv4PrefixPools_2_handle = _result_['ipv4_prefix_pools_handle']
# Modifying FEC Range Parameters with label_value_start="516"
print "Modifying LDP FEC Ranges info for LDP_1_Network_Group"
_result_ = ixiangpf.emulation_ldp_route_config(
    mode="modify",
    handle=networkGroup_1_handle,
    fec_type="""ipv4_prefix""",
    label_value_start="516",
    label_value_start_step="1",
    lsp_handle=networkGroup_1_handle,
    fec_name="{LDP FEC Range 1}",
)
if _result_['status'] != IxiaHlt.SUCCESS:
    ErrorHandler('emulation_ldp_route_config', _result_)
fec_handle_1 = _result_['fecproperty_handle']
# Modifying FEC Range Parameters with label_value_start="216"
print "Modifying LDP FEC Ranges info for LDP_2_Network_Group"
_result_ = ixiangpf.emulation_ldp_route_config(
    mode="modify",
    handle=networkGroup_2_handle,
    fec_type="""ipv4_prefix""",
    label_value_start="216",
    label_value_start_step="1",