Printer FriendlyEmail Article Link

Spirent TestCenter: Automation- What are the objects used to configure LDP LSPs?

Environment/Versions
  • Spirent TestCenter
  • Automation
  • LDP LSP
Answer

LdpRouterConfig
Ipv4PrefixLsp
Ipv4NetworkBlock

Example:
set LdpRouterConfig(1) [stc::create "LdpRouterConfig" \
-under $EmulatedDevice(1) \
-IfHandleList "" \
-OldIfHandleList "" ]

set LdpAuthenticationParams(2) [lindex [stc::get $LdpRouterConfig(1) -children-LdpAuthenticationParams] 0]


set Ipv4PrefixLsp(1) [stc::create "Ipv4PrefixLsp" \
-under $LdpRouterConfig(1) ]

set Ipv4NetworkBlock(1) [lindex [stc::get $Ipv4PrefixLsp(1) -children-Ipv4NetworkBlock] 0]
stc::config $Ipv4NetworkBlock(1) \
-StartIpList "192.0.1.0"
 


Product : Spirent TestCenter,LDP,Automation,API,Spirent TestCenter