-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send number of flow hits for a given ACL rule in Interface and VN Uves.
The number of flows matching a SG rule is sent in Interface UVE. The number of flows matching Network Policy rule is sent in VN Uve. Move UUID generation for flow from FlowStatsCollection module to Pkt module. Pkt module will send information about flows matching a given ACL rule as a message to UVE module. UVE module will build rule lists for interface and VN and send respective UVEs periodically if there are any changes. Change-Id: I87fd01b693d3b43c1ce272fa871eb350455c89d9 Partial-Bug: #1545818
- Loading branch information
Showing
17 changed files
with
403 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
#ifndef __AGENT_FLOW_ACE_STATS_REQUEST_H__ | ||
#define __AGENT_FLOW_ACE_STATS_REQUEST_H__ | ||
|
||
#include "pkt/flow_table.h" | ||
#include "pkt/flow_event.h" | ||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// Request to the Uve module for Ace Stats | ||
//////////////////////////////////////////////////////////////////////////// | ||
class FlowAceStatsRequest { | ||
public: | ||
enum Event { | ||
INVALID, | ||
ADD_FLOW, | ||
DELETE_FLOW | ||
}; | ||
|
||
FlowAceStatsRequest(Event event, const boost::uuids::uuid &u, | ||
const std::string &intf, const std::string &sg_rule, | ||
const std::string &vn, const std::string &nw_ace) : | ||
event_(event), uuid_(u), interface_(intf), sg_rule_uuid_(sg_rule), | ||
vn_(vn), nw_ace_uuid_(nw_ace) { | ||
} | ||
|
||
FlowAceStatsRequest(Event event, const boost::uuids::uuid &u) : | ||
event_(event), uuid_(u) { | ||
} | ||
|
||
~FlowAceStatsRequest() { } | ||
|
||
Event event() const { return event_; } | ||
const boost::uuids::uuid &uuid() const { return uuid_; } | ||
const std::string &interface() const { return interface_; } | ||
const std::string &sg_rule_uuid() const { return sg_rule_uuid_; } | ||
const std::string &vn() const { return vn_; } | ||
const std::string &nw_ace_uuid() const { return nw_ace_uuid_; } | ||
|
||
private: | ||
Event event_; | ||
boost::uuids::uuid uuid_; | ||
std::string interface_; | ||
std::string sg_rule_uuid_; | ||
std::string vn_; | ||
std::string nw_ace_uuid_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(FlowAceStatsRequest); | ||
}; | ||
#endif // __AGENT_FLOW_ACE_STATS_REQUEST_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.