Skip to content

Commit

Permalink
Add available commands to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kani999 committed Apr 29, 2024
1 parent 319eae8 commit 6f4c741
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk_generator/outputs/github_parser.json
Original file line number Diff line number Diff line change
Expand Up @@ -10630,7 +10630,7 @@
"show bgp": {
"iosxr": {
"class": "ShowBgpAddressFamily",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n ",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n 'show bgp {address_family} community {community}'\n 'show bgp {address_family} community {community} {exact_match}'\n ",
"module_name": "show_bgp",
"package": "genie.libs.parser",
"schema": "{\n'address_family': {\n Any (str) *: {\n Optional (str) router_identifier: <class 'str'>,\n Optional (str) local_as: Or (<class 'int'>, <class 'str'>),\n Optional (str) generic_scan_interval: <class 'int'>,\n Optional (str) non_stop_routing: <class 'bool'>,\n Optional (str) table_state: <class 'str'>,\n Optional (str) table_id: <class 'str'>,\n Optional (str) rd_version: <class 'int'>,\n Optional (str) bgp_table_version: <class 'int'>,\n Optional (str) dampening_status: <class 'str'>,\n Optional (str) nsr_initial_initsync_version: <class 'str'>,\n Optional (str) nsr_issu_sync_group_versions: <class 'str'>,\n Optional (str) nsr_initial_init_ver_status: <class 'str'>,\n Optional (str) scan_interval: <class 'int'>,\n Optional (str) processed_prefix: <class 'int'>,\n Optional (str) processed_paths: <class 'int'>,\n Optional (str) route_distinguisher: {\n Any (str) *: {\n Optional (str) default_vrf: <class 'str'>,\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n },\n },\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n Optional (str) operation_mode: <class 'str'>,\n Optional (str) process: {\n Any (str) *: {\n 'rcvtblver': <class 'int'>,\n 'brib_rib': <class 'int'>,\n 'labelver': <class 'int'>,\n 'importver': <class 'int'>,\n 'sendtblver': <class 'int'>,\n 'standbyver': <class 'int'>,\n },\n },\n Optional (str) neighbor: {\n Any (str) *: {\n 'remote_as': Or (<class 'int'>, <class 'str'>),\n 'tbl_ver': <class 'int'>,\n 'spk': <class 'int'>,\n 'msg_rcvd': <class 'int'>,\n 'msg_sent': <class 'int'>,\n 'input_queue': <class 'int'>,\n 'output_queue': <class 'int'>,\n 'up_down': <class 'str'>,\n 'state_pfxrcd': <class 'str'>,\n },\n },\n },\n },\n}",
Expand Down Expand Up @@ -12050,7 +12050,7 @@
},
"iosxr": {
"class": "ShowBgpAddressFamily",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n ",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n 'show bgp {address_family} community {community}'\n 'show bgp {address_family} community {community} {exact_match}'\n ",
"module_name": "show_bgp",
"package": "genie.libs.parser",
"schema": "{\n'address_family': {\n Any (str) *: {\n Optional (str) router_identifier: <class 'str'>,\n Optional (str) local_as: Or (<class 'int'>, <class 'str'>),\n Optional (str) generic_scan_interval: <class 'int'>,\n Optional (str) non_stop_routing: <class 'bool'>,\n Optional (str) table_state: <class 'str'>,\n Optional (str) table_id: <class 'str'>,\n Optional (str) rd_version: <class 'int'>,\n Optional (str) bgp_table_version: <class 'int'>,\n Optional (str) dampening_status: <class 'str'>,\n Optional (str) nsr_initial_initsync_version: <class 'str'>,\n Optional (str) nsr_issu_sync_group_versions: <class 'str'>,\n Optional (str) nsr_initial_init_ver_status: <class 'str'>,\n Optional (str) scan_interval: <class 'int'>,\n Optional (str) processed_prefix: <class 'int'>,\n Optional (str) processed_paths: <class 'int'>,\n Optional (str) route_distinguisher: {\n Any (str) *: {\n Optional (str) default_vrf: <class 'str'>,\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n },\n },\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n Optional (str) operation_mode: <class 'str'>,\n Optional (str) process: {\n Any (str) *: {\n 'rcvtblver': <class 'int'>,\n 'brib_rib': <class 'int'>,\n 'labelver': <class 'int'>,\n 'importver': <class 'int'>,\n 'sendtblver': <class 'int'>,\n 'standbyver': <class 'int'>,\n },\n },\n Optional (str) neighbor: {\n Any (str) *: {\n 'remote_as': Or (<class 'int'>, <class 'str'>),\n 'tbl_ver': <class 'int'>,\n 'spk': <class 'int'>,\n 'msg_rcvd': <class 'int'>,\n 'msg_sent': <class 'int'>,\n 'input_queue': <class 'int'>,\n 'output_queue': <class 'int'>,\n 'up_down': <class 'str'>,\n 'state_pfxrcd': <class 'str'>,\n },\n },\n },\n },\n}",
Expand Down Expand Up @@ -12201,7 +12201,7 @@
"show bgp {address_family} community {community}": {
"iosxr": {
"class": "ShowBgpAddressFamily",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n ",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n 'show bgp {address_family} community {community}'\n 'show bgp {address_family} community {community} {exact_match}'\n ",
"module_name": "show_bgp",
"package": "genie.libs.parser",
"schema": "{\n'address_family': {\n Any (str) *: {\n Optional (str) router_identifier: <class 'str'>,\n Optional (str) local_as: Or (<class 'int'>, <class 'str'>),\n Optional (str) generic_scan_interval: <class 'int'>,\n Optional (str) non_stop_routing: <class 'bool'>,\n Optional (str) table_state: <class 'str'>,\n Optional (str) table_id: <class 'str'>,\n Optional (str) rd_version: <class 'int'>,\n Optional (str) bgp_table_version: <class 'int'>,\n Optional (str) dampening_status: <class 'str'>,\n Optional (str) nsr_initial_initsync_version: <class 'str'>,\n Optional (str) nsr_issu_sync_group_versions: <class 'str'>,\n Optional (str) nsr_initial_init_ver_status: <class 'str'>,\n Optional (str) scan_interval: <class 'int'>,\n Optional (str) processed_prefix: <class 'int'>,\n Optional (str) processed_paths: <class 'int'>,\n Optional (str) route_distinguisher: {\n Any (str) *: {\n Optional (str) default_vrf: <class 'str'>,\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n },\n },\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n Optional (str) operation_mode: <class 'str'>,\n Optional (str) process: {\n Any (str) *: {\n 'rcvtblver': <class 'int'>,\n 'brib_rib': <class 'int'>,\n 'labelver': <class 'int'>,\n 'importver': <class 'int'>,\n 'sendtblver': <class 'int'>,\n 'standbyver': <class 'int'>,\n },\n },\n Optional (str) neighbor: {\n Any (str) *: {\n 'remote_as': Or (<class 'int'>, <class 'str'>),\n 'tbl_ver': <class 'int'>,\n 'spk': <class 'int'>,\n 'msg_rcvd': <class 'int'>,\n 'msg_sent': <class 'int'>,\n 'input_queue': <class 'int'>,\n 'output_queue': <class 'int'>,\n 'up_down': <class 'str'>,\n 'state_pfxrcd': <class 'str'>,\n },\n },\n },\n },\n}",
Expand All @@ -12212,7 +12212,7 @@
"show bgp {address_family} community {community} {exact_match}": {
"iosxr": {
"class": "ShowBgpAddressFamily",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n ",
"doc": "Parser for:\n 'show bgp'\n 'show bgp {address_family}'\n 'show bgp {address_family} community {community}'\n 'show bgp {address_family} community {community} {exact_match}'\n ",
"module_name": "show_bgp",
"package": "genie.libs.parser",
"schema": "{\n'address_family': {\n Any (str) *: {\n Optional (str) router_identifier: <class 'str'>,\n Optional (str) local_as: Or (<class 'int'>, <class 'str'>),\n Optional (str) generic_scan_interval: <class 'int'>,\n Optional (str) non_stop_routing: <class 'bool'>,\n Optional (str) table_state: <class 'str'>,\n Optional (str) table_id: <class 'str'>,\n Optional (str) rd_version: <class 'int'>,\n Optional (str) bgp_table_version: <class 'int'>,\n Optional (str) dampening_status: <class 'str'>,\n Optional (str) nsr_initial_initsync_version: <class 'str'>,\n Optional (str) nsr_issu_sync_group_versions: <class 'str'>,\n Optional (str) nsr_initial_init_ver_status: <class 'str'>,\n Optional (str) scan_interval: <class 'int'>,\n Optional (str) processed_prefix: <class 'int'>,\n Optional (str) processed_paths: <class 'int'>,\n Optional (str) route_distinguisher: {\n Any (str) *: {\n Optional (str) default_vrf: <class 'str'>,\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n },\n },\n Optional (str) prefix: {\n Any (str) *: {\n Optional (str) index: {\n Any (str) *: {\n Optional (str) next_hop: <class 'str'>,\n Optional (str) status_codes: <class 'str'>,\n Optional (str) metric: <class 'str'>,\n Optional (str) locprf: <class 'str'>,\n Optional (str) weight: <class 'str'>,\n Optional (str) path: <class 'str'>,\n Optional (str) origin_codes: <class 'str'>,\n },\n },\n },\n },\n Optional (str) operation_mode: <class 'str'>,\n Optional (str) process: {\n Any (str) *: {\n 'rcvtblver': <class 'int'>,\n 'brib_rib': <class 'int'>,\n 'labelver': <class 'int'>,\n 'importver': <class 'int'>,\n 'sendtblver': <class 'int'>,\n 'standbyver': <class 'int'>,\n },\n },\n Optional (str) neighbor: {\n Any (str) *: {\n 'remote_as': Or (<class 'int'>, <class 'str'>),\n 'tbl_ver': <class 'int'>,\n 'spk': <class 'int'>,\n 'msg_rcvd': <class 'int'>,\n 'msg_sent': <class 'int'>,\n 'input_queue': <class 'int'>,\n 'output_queue': <class 'int'>,\n 'up_down': <class 'str'>,\n 'state_pfxrcd': <class 'str'>,\n },\n },\n },\n },\n}",
Expand Down Expand Up @@ -12588,7 +12588,7 @@
"package": "genie.libs.parser",
"schema": "{\n'address_family': {\n Any (str) *: {\n 'prefix': <class 'str'>,\n 'last_modified': <class 'str'>,\n 'paths': {\n 'total_available_paths': <class 'int'>,\n 'best_path': <class 'int'>,\n 'path': {\n Any (str) *: {\n Optional (str) advertised_peer_pe: <class 'str'>,\n Optional (str) advertised_peer_ce: <class 'str'>,\n 'as_path': {\n Any (str) *: {\n 'bgp_peer_neighbor_ip': {\n Any (str) *: {\n Optional (str) metric: <class 'int'>,\n 'origin_neighbors_ip': <class 'str'>,\n 'origin_router_id': <class 'str'>,\n 'bgp_peer_neighbor_ip': <class 'str'>,\n Optional (str) originator: <class 'str'>,\n Optional (str) received_label: <class 'str'>,\n 'origin_metric': <class 'int'>,\n Optional (str) weight: <class 'int'>,\n 'localpref': <class 'int'>,\n 'origin_codes': <class 'str'>,\n 'status_codes': <class 'str'>,\n 'received_path_id': <class 'int'>,\n 'local_path_id': <class 'int'>,\n 'version': <class 'int'>,\n Optional (str) cluster_list: ListOf (type) <class 'str'>,\n Optional (str) source_afi: <class 'str'>,\n Optional (str) source_vrf: <class 'str'>,\n Optional (str) source_rd: <class 'str'>,\n Optional (str) psid_type: {\n Any (str) *: {\n 'psid_type': <class 'str'>,\n 'subtlv_count': <class 'int'>,\n 'subtlv': {\n 't_value': <class 'int'>,\n 'sid_value': <class 'str'>,\n 'behaviour': <class 'str'>,\n 'sstlv_count': <class 'int'>,\n Optional (str) subsubtlv: {\n 't_value': <class 'int'>,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n}",
"uid": "show_bgp_address_family_bgp_prefix",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_bgp.py#L9496"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxr/show_bgp.py#L9498"
}
},
"show bgp {address_family} {ip_address} bestpath-compare": {
Expand Down
2 changes: 2 additions & 0 deletions src/genie/libs/parser/iosxr/show_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9122,6 +9122,8 @@ class ShowBgpAddressFamily(ShowBgpAddressFamilySchema):
'''Parser for:
'show bgp'
'show bgp {address_family}'
'show bgp {address_family} community {community}'
'show bgp {address_family} community {community} {exact_match}'
'''
cli_command = [
'show bgp',
Expand Down

0 comments on commit 6f4c741

Please sign in to comment.