Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Disable flow and UVE stats from TSN" into R2.20
- Loading branch information
Showing
24 changed files
with
181 additions
and
115 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
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
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,58 @@ | ||
/* | ||
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
|
||
#include <base/cpuinfo.h> | ||
#include <db/db.h> | ||
#include <cmn/agent_cmn.h> | ||
#include <oper/interface_common.h> | ||
#include <oper/interface.h> | ||
|
||
#include <uve/stats_collector.h> | ||
#include <uve/agent_uve_stats.h> | ||
#include <uve/stats_interval_types.h> | ||
#include <init/agent_param.h> | ||
#include <oper/mirror_table.h> | ||
#include <uve/vrouter_stats_collector.h> | ||
#include <uve/vm_uve_table.h> | ||
#include <uve/vn_uve_table.h> | ||
#include <uve/vrouter_uve_entry.h> | ||
#include <uve/interface_uve_stats_table.h> | ||
|
||
AgentUveStats::AgentUveStats(Agent *agent, uint64_t intvl, | ||
uint32_t default_intvl, uint32_t incremental_intvl) | ||
: AgentUveBase(agent, intvl, default_intvl, incremental_intvl), | ||
stats_manager_(new StatsManager(agent)) { | ||
vn_uve_table_.reset(new VnUveTable(agent, default_intvl)); | ||
vm_uve_table_.reset(new VmUveTable(agent, default_intvl)); | ||
vrouter_uve_entry_.reset(new VrouterUveEntry(agent)); | ||
interface_uve_table_.reset(new InterfaceUveStatsTable(agent, | ||
default_intvl)); | ||
} | ||
|
||
AgentUveStats::~AgentUveStats() { | ||
} | ||
|
||
StatsManager *AgentUveStats::stats_manager() const { | ||
return stats_manager_.get(); | ||
} | ||
|
||
void AgentUveStats::Shutdown() { | ||
AgentUveBase::Shutdown(); | ||
stats_manager_->Shutdown(); | ||
} | ||
|
||
void AgentUveStats::RegisterDBClients() { | ||
AgentUveBase::RegisterDBClients(); | ||
stats_manager_->RegisterDBClients(); | ||
} | ||
|
||
// The following is deprecated and is present only for backward compatibility | ||
void GetStatsInterval::HandleRequest() const { | ||
StatsIntervalResp_InSeconds *resp = new StatsIntervalResp_InSeconds(); | ||
resp->set_agent_stats_interval(0); | ||
resp->set_flow_stats_interval(0); | ||
resp->set_context(context()); | ||
resp->Response(); | ||
return; | ||
} |
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,31 @@ | ||
/* | ||
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
|
||
#ifndef vnsw_agent_uve_stats_h | ||
#define vnsw_agent_uve_stats_h | ||
|
||
#include <uve/agent_uve_base.h> | ||
#include <uve/stats_manager.h> | ||
|
||
//The class to drive UVE module initialization for agent | ||
//Defines objects required for statistics collection from vrouter and | ||
//objects required for sending UVE information to collector. | ||
class AgentUveStats : public AgentUveBase { | ||
public: | ||
AgentUveStats(Agent *agent, uint64_t intvl, uint32_t default_intvl, | ||
uint32_t incremental_intvl); | ||
virtual ~AgentUveStats(); | ||
|
||
virtual void Shutdown(); | ||
virtual void RegisterDBClients(); | ||
StatsManager *stats_manager() const; | ||
|
||
protected: | ||
boost::scoped_ptr<StatsManager> stats_manager_; | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(AgentUveStats); | ||
}; | ||
|
||
#endif //vnsw_agent_uve_stats_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
Oops, something went wrong.