diff options
author | Mehak Mahajan <mmahajan@nicira.com> | 2012-03-29 14:34:51 -0700 |
---|---|---|
committer | Mehak Mahajan <mmahajan@nicira.com> | 2012-04-05 13:34:47 -0700 |
commit | c75b7e39d973cc9f4869c84d48eeb3b66afb2971 (patch) | |
tree | 7a373544ffffba4b8786c90bd7652977296e31e1 /ofproto/ofproto.h | |
parent | 7dc05f69efcc3bfc29b8cf5ac74567a940a53c1c (diff) |
Granular link health statistics for cfm.
The changes display the cfm_health of an interface. The cfm_health
is an exponential weighted moving average of the health of all
remote_mpids. The value can vary from 0 to 100, 100 being very healthy
and 0 being unhealthy.
Feature #10363
Requested-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r-- | ofproto/ofproto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 6172f291..c40f5d3a 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -348,7 +348,8 @@ int ofproto_port_get_cfm_fault(const struct ofproto *, uint16_t ofp_port); int ofproto_port_get_cfm_remote_mpids(const struct ofproto *, uint16_t ofp_port, const uint64_t **rmps, size_t *n_rmps); - +int ofproto_port_get_cfm_health(const struct ofproto *ofproto, + uint16_t ofp_port); void ofproto_get_ofproto_controller_info(const struct ofproto *, struct shash *); void ofproto_free_ofproto_controller_info(struct shash *); |