mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 08:45:23 +00:00
sflow: Export LAG, PORTNAME, and OPENFLOWPORT information also.
Export standard sFlow LAG, PORTNAME and OPENFLOWPORT structures with each counter-sample. Add unit-test for sFlow-LAG. Adjust other unit-tests to accommodate these new annotations. The sFlow-LAG structures are important for topology discovery, for troubleshooting LAG instability, and for correctly combining sFlow feeds from multiple sources. The OPENFLOWPORT and PORTNAME structures are important for systems that aim to combine sFlow monitoring with OpenFlow controls, as they provide straightforward mapping (1) between sFlow agent IP and OpenFlow datapath-id, and (2) between interface name,ifIndex and OpenFlow port number. Signed-off-by: Neil McKee <neil.mckee@inmon.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -281,6 +281,7 @@ void sfl_agent_set_agentSubId(SFLAgent *agent, u_int32_t subId);
|
||||
to get counters if it is not the same as the global ifIndex */
|
||||
void sfl_poller_set_bridgePort(SFLPoller *poller, u_int32_t port_no);
|
||||
u_int32_t sfl_poller_get_bridgePort(SFLPoller *poller);
|
||||
SFLPoller *sfl_agent_getPollerByBridgePort(SFLAgent *agent, u_int32_t port_no);
|
||||
|
||||
/* call this to indicate a discontinuity with a counter like samplePool so that the
|
||||
sflow collector will ignore the next delta */
|
||||
|
Reference in New Issue
Block a user