@@ -11258,7 +11258,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
11258
11258
bool use_json = CHECK_FLAG (show_flags , BGP_SHOW_OPT_JSON );
11259
11259
bool wide = CHECK_FLAG (show_flags , BGP_SHOW_OPT_WIDE );
11260
11260
bool all = CHECK_FLAG (show_flags , BGP_SHOW_OPT_AFI_ALL );
11261
- bool detail = CHECK_FLAG (show_flags , BGP_SHOW_OPT_DETAIL );
11261
+ bool detail_json = CHECK_FLAG (show_flags , BGP_SHOW_OPT_JSON_DETAIL );
11262
11262
11263
11263
if (output_cum && * output_cum != 0 )
11264
11264
header = false;
@@ -11292,7 +11292,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
11292
11292
}
11293
11293
11294
11294
/* Check for 'json detail', where we need header output once per dest */
11295
- if (use_json && detail && type != bgp_show_type_dampend_paths &&
11295
+ if (use_json && detail_json && type != bgp_show_type_dampend_paths &&
11296
11296
type != bgp_show_type_damp_neighbor &&
11297
11297
type != bgp_show_type_flap_statistics &&
11298
11298
type != bgp_show_type_flap_neighbor )
@@ -11555,7 +11555,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
11555
11555
vty_out (vty , "Default local pref %u, " ,
11556
11556
bgp -> default_local_pref );
11557
11557
vty_out (vty , "local AS %u\n" , bgp -> as );
11558
- if (!detail ) {
11558
+ if (!detail_json ) {
11559
11559
vty_out (vty , BGP_SHOW_SCODE_HEADER );
11560
11560
vty_out (vty , BGP_SHOW_NCODE_HEADER );
11561
11561
vty_out (vty , BGP_SHOW_OCODE_HEADER );
@@ -11567,7 +11567,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
11567
11567
else if (type == bgp_show_type_flap_statistics
11568
11568
|| type == bgp_show_type_flap_neighbor )
11569
11569
vty_out (vty , BGP_SHOW_FLAP_HEADER );
11570
- else if (!detail )
11570
+ else if (!detail_json )
11571
11571
vty_out (vty , (wide ? BGP_SHOW_HEADER_WIDE
11572
11572
: BGP_SHOW_HEADER ));
11573
11573
header = false;
@@ -11610,7 +11610,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
11610
11610
AFI_IP , safi , use_json ,
11611
11611
json_paths );
11612
11612
else {
11613
- if (detail ) {
11613
+ if (detail_json ) {
11614
11614
const struct prefix_rd * prd ;
11615
11615
11616
11616
prd = bgp_rd_from_dest (dest , safi );
@@ -12676,7 +12676,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd,
12676
12676
|A.B.C.D/M longer-prefixes\
12677
12677
|X:X::X:X/M longer-prefixes\
12678
12678
|optimal-route-reflection [WORD$orr_group_name]\
12679
- ] [json$uj [detail$detail ] | wide$wide]" ,
12679
+ ] [json$uj [detail$detail_json ] | wide$wide]" ,
12680
12680
SHOW_STR IP_STR BGP_STR BGP_INSTANCE_HELP_STR BGP_AFI_HELP_STR
12681
12681
BGP_SAFI_WITH_LABEL_HELP_STR
12682
12682
"Display the entries for all address families\n"
@@ -12749,8 +12749,8 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd,
12749
12749
SET_FLAG (show_flags , BGP_SHOW_OPT_JSON );
12750
12750
}
12751
12751
12752
- if (detail )
12753
- SET_FLAG (show_flags , BGP_SHOW_OPT_DETAIL );
12752
+ if (detail_json )
12753
+ SET_FLAG (show_flags , BGP_SHOW_OPT_JSON_DETAIL );
12754
12754
12755
12755
/* [<ipv4|ipv6> [all]] */
12756
12756
if (all ) {
@@ -14727,7 +14727,7 @@ DEFUN (show_ip_bgp_flowspec_routes_detailed,
14727
14727
struct bgp * bgp = NULL ;
14728
14728
int idx = 0 ;
14729
14729
bool uj = use_json (argc , argv );
14730
- uint16_t show_flags = BGP_SHOW_OPT_DETAIL ;
14730
+ uint16_t show_flags = BGP_SHOW_OPT_JSON_DETAIL ;
14731
14731
14732
14732
if (uj ) {
14733
14733
argc -- ;
0 commit comments