question

nawraj avatar image
nawraj asked nawraj answered

Using HLTAPI on STC to configure L3 forwarding link between two devices

Do we have the required API’s to configure L3 forwarding link between two devices using HLTAPI?
Spirent TestCenter (STC)hltapi
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Yaseen avatar image
Yaseen answered
I searched in the HLTAPI documentation but couldn't find any respective API to create L3Forwardinglink between the devices. But, as a workaround we could make use of the below procedure to create l3forwarding links between the devices, L3Forwarding_link {SrcDevice DstDevice } { set IpForwardingLink [stc::create ipforwardinglink -under $SrcDevice -LinkType {IP Forwarding Link}] set L3ForwardingLink [stc::create l3forwardinglink -under $SrcDevice -LinkType {L3 Forwarding Link} -Name "L3Forwadinglink from [stc::get $SrcDevice -name]"] stc::config $SrcDevice -ContainedLink-targets " $L3ForwardingLink " stc::config $IpForwardingLink -LinkDstDevice-targets " $DstDevice " stc::config $IpForwardingLink -LinkSrc-targets " [stc::get $SrcDevice -children-ipv4if] " stc::config $IpForwardingLink -LinkDst-targets " [stc::get $DstDevice -children-ipv4if] " stc::config $L3ForwardingLink -LinkDstDevice-targets " $DstDevice " stc::config $L3ForwardingLink -ContainedLink-targets " $IpForwardingLink " } For this procedure, we need to pass the arguments as device handles, Example: L3Forwarding_link emulateddevice1 emulateddevice2 Hope this information helps!
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nawraj avatar image
nawraj answered
Hi Yaseen, Thank you very much. This really helped. Thanks, Nawraj L.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.