Merge pull request #6143 from ton31337/fix/remove_prefixReceivedCount

bgpd: Remove `prefixReceivedCount` from JSON
This commit is contained in:
Sri Mohana Singamsetty 2020-04-05 11:41:04 -07:00 committed by GitHub
commit 2ebae25d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 51 deletions

View File

@ -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]);

View File

@ -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"
}
},

View File

@ -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"
}
},

View File

@ -8,7 +8,7 @@
"10.0.1.101":{
"outq":0,
"inq":0,
"prefixReceivedCount":10,
"pfxRcd":10,
"state":"Established"
}
},

View File

@ -7,7 +7,7 @@
"10.0.1.101":{
"outq":0,
"inq":0,
"prefixReceivedCount":10,
"pfxRcd":10,
"state":"Established"
}
},

View File

@ -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",