_result_ = ixiangpf.network_group_config( protocol_handle=deviceGroup_1_handle, protocol_name="""ISIS Network Group 1""", enable_device="1", connected_to_handle=ethernet_1_handle, type="ipv4-prefix", ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('network_group_config', _result_) networkGroup_1_handle = _result_['network_group_handle'] ipv4PrefixPools_1_handle = _result_['ipv4_prefix_pools_handle'] _result_ = ixiangpf.emulation_isis_network_group_config( handle=networkGroup_1_handle, mode="modify", stub_router_origin="stub", ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_isis_network_group_config', _result_) _result_ = ixiangpf.topology_config( device_group_name="""Device Group 3""", device_group_multiplier="1", device_group_enabled="1", device_group_handle=networkGroup_1_handle, ) if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('topology_config', _result_) deviceGroup_2_handle = _result_['device_group_handle']
networkGroup_1_handle = network_group_1_status['network_group_handle'] #-------------------------------------------------------------------------------- # Configure ISIS and ISIS-SR related parameters in the simulated topology1 #-------------------------------------------------------------------------------- print("Configuring ISIS route parameter in the simulated topology") network_isis_grp_status = ixiangpf.emulation_isis_network_group_config( handle = networkGroup_1_handle, mode = "modify", connected_to_handle = ethernet_1_handle, router_system_id = "a1:01:00:00:00:01", enable_ip = "1", sim_topo_active = "1", grid_router_active = "1", link_type = "pttopt", si_enable_adj_sid = "1", si_adj_sid = "8001", pseudo_node_enable_sr = "1", ipv6_adjacency_sid_value = "55fe:1:0:1:0:0:0:2", ipv6_node_prefix = "7878:0:0:1:0:0:0:1", prefix_length_v6 = "128", ipv6_srh_flag_pseudonode_routes_v6 = "1", ipv6_srh_flag_pseudo_router = "1", ) if network_isis_grp_status['status'] != IxiaHlt.SUCCESS: ErrorHandler('emulation_isis_config', network_isis_grp_status) simtopo_1_handle = network_isis_grp_status['network_group_handle'] #-------------------------------------------------------------------------------