cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1183
Views
1
Helpful
3
Replies

Yang module for show bgp ipv4 unicast community

Hi ,

kindly let me know which yang module 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 ?

*>i10.80.68.67/32 10.80.68.67 0 100 0 ?

* i 10.80.68.68 0 100 0 ?

*>i10.80.68.70/32 10.80.68.70 0 100 0 ?

* i 10.80.68.70 0 100 0 ?

* i 10.80.68.68 0 100 0 ?

*>i10.80.68.71/32 10.80.68.71 0 100 0 ?

* i 10.80.68.71 0 100 0 ?

* i 10.80.68.68 0 100 0 ?

*>i10.80.68.72/32 10.80.68.72 0 100 0 ?

* i 10.80.68.72 0 100 0 ?

* i 10.80.68.68 0 100 0 ?

*>i10.80.68.73/32 10.80.68.73 0 100 0 ?

* i 10.80.68.73 0 100 0 ?

* i 10.80.68.68 0 100 0 ?

We unable to get the same out put when we are using Cisco-ios-xr-ipv4-bgp-oper model

Thanks

Jay

1 Accepted Solution

Accepted Solutions

Jay,

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:

http://ydk.cisco.com/py/docs/gen_doc_408eed019715fbec66d36658ec93bcefe15e2706.html

You can find sample YDK scripts that use the oper models to implement some show commands at:

ydk-py-samples/samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-clns-isis-oper at master · CiscoDevNet/ydk-py-samples…

I know your goal is not to reproduce show commands, but those samples will shed some light on how data on an oper model can be leveraged to obtain equivalent output to an existing show command.

View solution in original post

3 Replies 3

Hi ,

Please let us know RPC for this cli

sh bgp ipv4 unicast community 62300:19


Thanks

Jay

Thanks for your question. However, 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.

Jay,

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:

http://ydk.cisco.com/py/docs/gen_doc_408eed019715fbec66d36658ec93bcefe15e2706.html

You can find sample YDK scripts that use the oper models to implement some show commands at:

ydk-py-samples/samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-clns-isis-oper at master · CiscoDevNet/ydk-py-samples…

I know your goal is not to reproduce show commands, but those samples will shed some light on how data on an oper model can be leveraged to obtain equivalent output to an existing show command.