OpenSDN source code
flow_uve_stats_request.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 #ifndef __AGENT_FLOW_UVE_STATS_REQUEST_H__
6 #define __AGENT_FLOW_UVE_STATS_REQUEST_H__
7 
8 #include "pkt/flow_table.h"
9 #include "pkt/flow_event.h"
10 
13  std::string fw_policy_;
15  std::string remote_prefix_;
16  std::string remote_vn_;
17  std::string local_vn_;
18  bool initiator_;
19  bool added_;
20  std::string action_;
22  bool is_valid_;
24 };
25 
27  std::string vn_;
28  std::string nw_ace_uuid_;
29  bool is_valid_;
31 };
32 
34 // Request to the Uve module for Flow based statistics update
37 public:
38  enum Event {
42  };
43 
45  const std::string &intf, const std::string &sg_rule,
48  event_(event), uuid_(u), interface_(intf), sg_rule_uuid_(sg_rule),
51  if (!intf.empty() && !sg_rule.empty()) {
52  sg_info_valid_ = true;
53  }
54  }
55 
57  const std::string &intf,
59  event_(event), uuid_(u), interface_(intf), sg_info_valid_(false),
61  }
62 
64 
65  Event event() const { return event_; }
66  const boost::uuids::uuid &uuid() const { return uuid_; }
67  const std::string &interface() const { return interface_; }
68  const std::string &sg_rule_uuid() const { return sg_rule_uuid_; }
69  bool sg_info_valid() const { return sg_info_valid_; }
70  const FlowUveVnAcePolicyInfo &vn_ace_info() const { return vn_ace_info_; }
71  bool vn_ace_valid() const { return vn_ace_info_.is_valid_; }
73  bool fw_policy_valid() const { return fw_policy_info_.is_valid_; }
74 
75 private:
78  std::string interface_;
79  std::string sg_rule_uuid_;
83 
85 };
86 #endif // __AGENT_FLOW_UVE_STATS_REQUEST_H__
std::vector< uint64_t > TagList
Definition: agent.h:203
const FlowUveFwPolicyInfo & fw_policy_info() const
FlowUveStatsRequest(Event event, const boost::uuids::uuid &u, const std::string &intf, const FlowUveFwPolicyInfo &fw_policy_info)
const boost::uuids::uuid & uuid() const
const FlowUveVnAcePolicyInfo & vn_ace_info() const
const std::string & interface() const
FlowUveVnAcePolicyInfo vn_ace_info_
FlowUveFwPolicyInfo fw_policy_info_
FlowUveStatsRequest(Event event, const boost::uuids::uuid &u, const std::string &intf, const std::string &sg_rule, const FlowUveVnAcePolicyInfo &vn_ace_info, const FlowUveFwPolicyInfo &fw_policy_info)
const std::string & sg_rule_uuid() const
DISALLOW_COPY_AND_ASSIGN(FlowUveStatsRequest)
boost::uuids::uuid uuid_
boost::uuids::uuid uuid