mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
Merge pull request #5607 from ton31337/fix/deprecate_bgpTimerUp
bgpd: Time to deprecate bgpTimerUp
This commit is contained in:
commit
e2efe03a3e
@ -9711,23 +9711,6 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
|||||||
uptime -= p->uptime;
|
uptime -= p->uptime;
|
||||||
epoch_tbuf = time(NULL) - uptime;
|
epoch_tbuf = time(NULL) - uptime;
|
||||||
|
|
||||||
#if CONFDATE > 20200101
|
|
||||||
CPP_NOTICE(
|
|
||||||
"bgpTimerUp should be deprecated and can be removed now");
|
|
||||||
#endif
|
|
||||||
/*
|
|
||||||
* bgpTimerUp was miliseconds that was accurate
|
|
||||||
* up to 1 day, then the value returned
|
|
||||||
* became garbage. So in order to provide
|
|
||||||
* some level of backwards compatability,
|
|
||||||
* we still provde the data, but now
|
|
||||||
* we are returning the correct value
|
|
||||||
* and also adding a new bgpTimerUpMsec
|
|
||||||
* which will allow us to deprecate
|
|
||||||
* this eventually
|
|
||||||
*/
|
|
||||||
json_object_int_add(json_neigh, "bgpTimerUp",
|
|
||||||
uptime * 1000);
|
|
||||||
json_object_int_add(json_neigh, "bgpTimerUpMsec",
|
json_object_int_add(json_neigh, "bgpTimerUpMsec",
|
||||||
uptime * 1000);
|
uptime * 1000);
|
||||||
json_object_string_add(json_neigh, "bgpTimerUpString",
|
json_object_string_add(json_neigh, "bgpTimerUpString",
|
||||||
|
Loading…
Reference in New Issue
Block a user