- Want to know which yang module is used to find this corresponding cli
RP/0/RP0/CPU0:dedsdf1002jl1#sh bgp ipv4 unicast community 62300:19
Fri May 26 14:33:08.165 EDT
BGP router identifier 10.80.68.69, local AS number 62300
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 340402
BGP main routing table version 340402
BGP NSR Initial initsync version 3666 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs
Status codes: s suppressed, d damped, h history, * valid, > best
i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i10.80.68.66/32 10.80.68.66 0 100 0 ?
* i 10.80.68.68 0 100 0 ?
Unable to get the same out put when we are using Cisco-ios-xr-ipv4-bgp-oper model
Please let us know RPC for this cli
sh bgp ipv4 unicast community 62300:19
This may not be the right forum for BGP-specific questions. You can search through the documentation for the YDK cisco-ios-xr bundle where you may find the data model you are looking for: http://ydk.cisco.com/py/docs/gen_doc_408eed019715fbec66d36658ec93bcefe15e2706.html.
IOS XR doesn't model show commands in YANG. So, you won't have an RPC or an operational data model that matches a specific show command. Instead, you have a BGP operational model that can be seen as the raw data used to implement all BGP show commands. The YDK api for that model is at:
You can find sample YDK scripts that use the oper models to implement some show commands at:
These samples will shed some light on how data on an oper model can be leveraged to obtain equivalent output to an existing show command.