OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
global_system_config.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef __AGENT_OPER_GLOBAL_SYSTEM_CONFIG_H
6 #define __AGENT_OPER_GLOBAL_SYSTEM_CONFIG_H
7 
8 #include <cmn/agent_cmn.h>
9 #include <oper/oper_db.h>
10 
11 class IFMapNode;
12 namespace autogen {
13  class GlobalSystemConfig;
14 }
15 
17 typedef std::pair<uint16_t, uint16_t> BGPaaServicePortRangePair;
18  void Reset();
19 
21  int port_end;
22 };
23 
25 public:
26  typedef boost::function<void()> Callback;
27  typedef std::vector<Callback> CallbackList;
28  void Reset();
29  void Update(autogen::GlobalSystemConfig *cfg);
31  bool enable() const { return enable_; }
32  bool xmpp_helper_enable() const { return xmpp_helper_enable_; }
33  bool config_seen() const { return config_seen_; }
34  uint32_t end_of_rib_time() { return end_of_rib_time_; }
38  bool IsEnabled() const {
40  }
41 
42 private:
43  void Notify();
44 
45  bool enable_;
46  uint64_t end_of_rib_time_;
51 };
52 
54  void Reset();
55 
56  uint8_t xmpp_hold_time;
57  bool enable;
58 };
59 
61 public:
63  virtual ~GlobalSystemConfig();
64 
65  void ConfigDelete(IFMapNode *node);
66  void ConfigAddChange(IFMapNode *node);
67  void ConfigManagerEnqueue(IFMapNode *node);
69  return std::make_pair(bgpaas_parameters_.port_start,
71  }
72  void Reset();
75  bool cfg_igmp_enable() const;
76  void FillSandeshInfo(GlobalSystemConfigResp *resp);
77 
78 private:
84 };
85 #endif
GracefulRestartParameters & gres_parameters()
void FillSandeshInfo(GlobalSystemConfigResp *resp)
Agent * agent() const
Definition: oper_db.h:245
FastConvergenceParameters fc_params_
FastConvergenceParameters & fc_params()
void Register(GracefulRestartParameters::Callback cb)
std::vector< Callback > CallbackList
void Update(autogen::GlobalSystemConfig *cfg)
Definition: agent.h:358
BGPaaServiceParameters bgpaas_parameters_
boost::function< void()> Callback
void ConfigManagerEnqueue(IFMapNode *node)
GracefulRestartParameters gres_parameters_
DISALLOW_COPY_AND_ASSIGN(GlobalSystemConfig)
void ConfigAddChange(IFMapNode *node)
GlobalSystemConfig(Agent *agent)
std::pair< uint16_t, uint16_t > BGPaaServicePortRangePair
void ConfigDelete(IFMapNode *node)
BGPaaServiceParameters::BGPaaServicePortRangePair bgpaas_port_range() const