Printer FriendlyEmail Article Link

Spirent TestCenter-HLTAPI: Port objects do not have "Ospfv2RouterConfig" children. Those are for EmulatedDevices.

Environment/Versions
Xtapi 4.59

According to the documentation, the syntax for the command is:
========================================
 Synopsis:
sth::emulation_ospfv2_info
-handle <port_handle>
[-mode {stats|clear_stats}]

Arguments:
-handle
Specifies one or more ports from which to gather transmitted
(tx) and received (rx) statistics. This argument is
mandatory.

========================================

-handle is supposed to be a port handle.

However, We see the following error in the logs:

Wed Aug 10 14:02:44 PDT 2016 [debug] {Calling ::sth::emulation_ospfv2_info}
Wed Aug 10 14:02:44 PDT 2016 [info] {Generating Ospfv2 stats table}
Wed Aug 10 14:02:44 PDT 2016 [stccall] stc::get port1 -children-Ospfv2RouterConfig
Wed Aug 10 14:02:44 PDT 2016 [debug] return value:  
Wed Aug 10 14:02:44 PDT 2016 [error] Error: Provided router handle port1 does not have a  OspfvRouterConfig object

We can see the problem on this line:

Wed Aug 10 14:02:44 PDT 2016 [stccall] stc::get port1 -children-Ospfv2RouterConfig

Port objects do not have "Ospfv2RouterConfig" children. Those are for EmulatedDevices.
Answer
Issue Fixed in xTAPI 4.62

Product : API