OpenSDN source code
global_system_config.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef __AGENT_OPER_GLOBAL_SYSTEM_CONFIG_H
7 #define __AGENT_OPER_GLOBAL_SYSTEM_CONFIG_H
8 
9 #include <cmn/agent_cmn.h>
10 #include <oper/oper_db.h>
11 
12 class IFMapNode;
13 namespace autogen {
14  class GlobalSystemConfig;
15 }
16 
18 typedef std::pair<uint16_t, uint16_t> BGPaaServicePortRangePair;
19  void Reset();
20 
22  int port_end;
23 };
24 
26 public:
27  typedef boost::function<void()> Callback;
28  typedef std::vector<Callback> CallbackList;
29  void Reset();
30  void Update(autogen::GlobalSystemConfig *cfg);
32  bool enable() const { return enable_; }
33  bool xmpp_helper_enable() const { return xmpp_helper_enable_; }
34  bool config_seen() const { return config_seen_; }
35  uint32_t end_of_rib_time() { return end_of_rib_time_; }
39  bool IsEnabled() const {
41  }
42 
43 private:
44  void Notify();
45 
46  bool enable_;
47  uint64_t end_of_rib_time_;
52 };
53 
55  void Reset();
56 
57  uint8_t xmpp_hold_time;
58  bool enable;
59 };
60 
62 public:
64  virtual ~GlobalSystemConfig();
65 
66  void ConfigDelete(IFMapNode *node);
67  void ConfigAddChange(IFMapNode *node);
68  void ConfigManagerEnqueue(IFMapNode *node);
70  return std::make_pair(bgpaas_parameters_.port_start,
72  }
73  void Reset();
76  bool cfg_igmp_enable() const;
77  void FillSandeshInfo(GlobalSystemConfigResp *resp);
78 
79 private:
85 };
86 #endif
Definition: agent.h:361
void ConfigManagerEnqueue(IFMapNode *node)
GracefulRestartParameters gres_parameters_
FastConvergenceParameters fc_params_
GlobalSystemConfig(Agent *agent)
void ConfigAddChange(IFMapNode *node)
BGPaaServiceParameters::BGPaaServicePortRangePair bgpaas_port_range() const
BGPaaServiceParameters bgpaas_parameters_
void FillSandeshInfo(GlobalSystemConfigResp *resp)
FastConvergenceParameters & fc_params()
GracefulRestartParameters & gres_parameters()
DISALLOW_COPY_AND_ASSIGN(GlobalSystemConfig)
void ConfigDelete(IFMapNode *node)
Agent * agent() const
Definition: oper_db.h:246
std::pair< uint16_t, uint16_t > BGPaaServicePortRangePair
boost::function< void()> Callback
std::vector< Callback > CallbackList
void Update(autogen::GlobalSystemConfig *cfg)
void Register(GracefulRestartParameters::Callback cb)