Printer FriendlyEmail Article Link

Spirent TestCenter-HLTAPI:How to create the Ipv6 external routes for ISIS?

  • Spirent TestCenter
  • Automation-HLTAPI
  • ISIS
Below is the code:

set ret0 [sth::interface_config -ipv6_intf_addr 1000:1:1:1:1:1:1:2 -ipv6_prefix_length 64 -arp_send_req 1 -port_handle $port1 -mode config -ipv6_gateway 1000:1:1:1:1:1:1:1 -src_mac_addr -enable_ping_response 1]
#{arpnd_status 1} {arpnd_cache none} {arpnd_report none} {status 1} {handles host1}
set ret0 [sth::emulation_isis_config -routing_level L2 -multi_topology 2 -wide_metrics 1 -handle host1 -area_id 450005 -mode create -ip_version 6]
#{handle host1} {handles host1} {session_router isislspconfig1} {status 1}
set ret0 [sth::emulation_isis_topology_route_config -router_routing_level L2 -external_count 10 -external_ipv6_start 6:1:1:1:1:1:1:1 -handle host1 -router_system_id 000100010002 -mode create -external_ipv6_step 0:0:0:0:0:0:0:1 -external_ipv6_pfx_len 128 -ip_version 6 -type external]
puts "$ret0"
stc::perform saveasxml -filename isisv6.xml

Also attached the sample script.

while specifying -external_ipv6_step, we have to mention -external_ipv6_pfx_len of it.


Product : Automation,API,Spirent TestCenter,ISIS