mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 11:01:48 +00:00
Merge pull request #6143 from ton31337/fix/remove_prefixReceivedCount
bgpd: Remove `prefixReceivedCount` from JSON
This commit is contained in:
commit
2ebae25d08
@ -9053,13 +9053,6 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
||||
peer_uptime(peer->uptime, timebuf, BGP_UPTIME_LEN,
|
||||
use_json, json_peer);
|
||||
|
||||
/*
|
||||
* Adding "pfxRcd" field to match with the corresponding
|
||||
* CLI. "prefixReceivedCount" will be deprecated in
|
||||
* future.
|
||||
*/
|
||||
json_object_int_add(json_peer, "prefixReceivedCount",
|
||||
peer->pcount[afi][pfx_rcd_safi]);
|
||||
json_object_int_add(json_peer, "pfxRcd",
|
||||
peer->pcount[afi][pfx_rcd_safi]);
|
||||
|
||||
|
@ -9,121 +9,121 @@
|
||||
"10.0.1.101":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.102":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.103":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.104":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.105":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.106":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.107":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.108":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.109":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.110":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.111":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.112":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.113":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.114":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.115":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.116":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.117":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.118":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.119":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.120":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
}
|
||||
},
|
||||
|
@ -8,121 +8,121 @@
|
||||
"10.0.1.101":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.102":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.103":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.104":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.1.105":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.106":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.107":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.108":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.109":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.2.110":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.111":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.112":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.113":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.114":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.3.115":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.116":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.117":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.118":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.119":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
},
|
||||
"10.0.4.120":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":42,
|
||||
"pfxRcd":42,
|
||||
"state":"Established"
|
||||
}
|
||||
},
|
||||
|
@ -8,7 +8,7 @@
|
||||
"10.0.1.101":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":10,
|
||||
"pfxRcd":10,
|
||||
"state":"Established"
|
||||
}
|
||||
},
|
||||
|
@ -7,7 +7,7 @@
|
||||
"10.0.1.101":{
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":10,
|
||||
"pfxRcd":10,
|
||||
"state":"Established"
|
||||
}
|
||||
},
|
||||
|
@ -12,7 +12,6 @@
|
||||
"tableVersion":0,
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":3,
|
||||
"pfxRcd":3,
|
||||
"pfxSnt":7,
|
||||
"state":"Established",
|
||||
@ -26,7 +25,6 @@
|
||||
"tableVersion":0,
|
||||
"outq":0,
|
||||
"inq":0,
|
||||
"prefixReceivedCount":3,
|
||||
"pfxRcd":3,
|
||||
"pfxSnt":7,
|
||||
"state":"Established",
|
||||
|
Loading…
Reference in New Issue
Block a user