i am using this module " Cisco-IOS-XR-pfi-im-cmd-oper.yang" to get interface counts (UP , Down , Admin-Down), but i am stuck with symbol *[] , i dont understand what to put inside if there is no keys inside list brackets ,
+--ro node-type-sets
| +--ro node-type-set* []
| +--ro node-name? xr:Node-id
| +--ro type-set-name? Interface-type-set
| +--ro interface-summary
| +--ro interface-counts
| | +--ro interface-count? uint32
| | +--ro up-interface-count? uint32
| | +--ro down-interface-count? uint32
| | +--ro admin-down-interface-count? uint32
| +--ro interface-type* []
| +--ro interface-counts
| | +--ro interface-count? uint32
| | +--ro up-interface-count? uint32
| | +--ro down-interface-count? uint32
| | +--ro admin-down-interface-count? uint32
| +--ro interface-type-name? string
| +--ro interface-type-description? string
i figure out this path below , but it still keep tell me is worng
Cisco-IOS-XR-pfi-im-cmd-oper:interfaces/node-type-sets/node-type-set[type-set-name='hardware-interfaces',node-name='0/RP0/CPU0']/interface-summary/interface-type[interface-type-name='IFT_GETHERNET',interface-type-description='GigabitEthernet']/interface-counts
i want to get "interface-counts" when the :
type-set-name='hardware-interfaces'
node-name='0/RP0/CPU0'
interface-type-name='IFT_GETHERNET'
interface-type-description='GigabitEthernet'
all these info to get specific interface counts for this module
It is unclear what context your path is used in, but I'm assuming you need an instance identifier.
If you need to uniquely identify an instance that is a list without keys or has list ancestors without keys (config false data nodes), you need to follow RFC 7950, Section 9.13..
There's an example in Section 9.13.4: