OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Options Class Reference

#include <options.h>

Collaboration diagram for Options:

Public Member Functions

 Options ()
 
bool Parse (EventManager &evm, int argc, char **argv)
 
std::string bgp_config_file () const
 
uint16_t bgp_port () const
 
std::vector< std::string > collector_server_list () const
 
std::vector< std::string > randomized_collector_server_list () const
 
std::string config_file () const
 
std::string hostname () const
 
std::string host_ip () const
 
uint16_t http_server_port () const
 
std::string log_category () const
 
bool log_disable () const
 
std::string log_file () const
 
std::string log_property_file () const
 
int log_files_count () const
 
long log_file_size () const
 
std::string log_level () const
 
bool log_local () const
 
bool use_syslog () const
 
std::string syslog_facility () const
 
bool mvpn_ipv4_enable () const
 
bool task_track_run_time () const
 
std::string config_db_user () const
 
std::string config_db_password () const
 
bool config_db_use_ssl () const
 
std::vector< std::string > config_db_server_list () const
 
std::vector< std::string > rabbitmq_server_list () const
 
std::string rabbitmq_user () const
 
std::string rabbitmq_password () const
 
bool rabbitmq_ssl_enabled () const
 
bool using_etcd_client () const
 
const ConfigClientOptionsconfigdb_options () const
 
uint16_t xmpp_port () const
 
bool xmpp_auth_enabled () const
 
std::string xmpp_server_cert () const
 
std::string xmpp_server_key () const
 
std::string xmpp_ca_cert () const
 
bool test_mode () const
 
bool collectors_configured () const
 
int tcp_hold_time () const
 
bool optimize_snat () const
 
bool gr_helper_bgp_disable () const
 
bool gr_helper_xmpp_disable () const
 
const std::string cassandra_user () const
 
const std::string cassandra_password () const
 
const std::vector< std::string > cassandra_server_list () const
 
const SandeshConfigsandesh_config () const
 
void ParseReConfig (bool force_reinit)
 
void set_config_client_manager (ConfigClientManager *mgr)
 
 Options ()
 
bool Parse (EventManager &evm, int argc, char *argv[])
 
void ParseReConfig ()
 
std::vector< std::string > collector_server_list () const
 
std::vector< std::string > randomized_collector_server_list () const
 
std::string dns_config_file () const
 
std::string config_file () const
 
const std::string & named_config_file () const
 
const std::string & named_config_dir () const
 
const std::string & named_log_file () const
 
const std::string & rndc_config_file () const
 
const std::string & rndc_secret () const
 
const std::string & named_max_cache_size () const
 
const uint16_t named_max_retransmissions ()
 
const uint16_t named_retransmission_interval ()
 
std::string hostname () const
 
std::string host_ip () const
 
uint16_t http_server_port () const
 
uint16_t dns_server_port () const
 
std::string log_category () const
 
bool log_disable () const
 
std::string log_file () const
 
std::string log_property_file () const
 
int log_files_count () const
 
long log_file_size () const
 
std::string log_level () const
 
bool log_local () const
 
bool use_syslog () const
 
std::string syslog_facility () const
 
std::string config_db_user () const
 
std::string config_db_password () const
 
bool config_db_use_ssl () const
 
std::vector< std::string > config_db_server_list () const
 
std::vector< std::string > rabbitmq_server_list () const
 
std::string rabbitmq_user () const
 
std::string rabbitmq_password () const
 
bool rabbitmq_ssl_enabled () const
 
const ConfigClientOptionsconfigdb_options () const
 
bool xmpp_auth_enabled () const
 
std::string xmpp_server_cert () const
 
std::string xmpp_server_key () const
 
std::string xmpp_ca_cert () const
 
bool test_mode () const
 
bool collectors_configured () const
 
const SandeshConfigsandesh_config () const
 
void set_config_client_manager (ConfigClientManager *mgr)
 

Private Member Functions

bool Process (int argc, char *argv[], boost::program_options::options_description &cmdline_options)
 
void Initialize (EventManager &evm, boost::program_options::options_description &options)
 
void ParseConfigOptions (const boost::program_options::variables_map &var_map)
 
uint32_t GenerateHash (const std::vector< std::string > &list)
 
uint32_t GenerateHash (const ConfigClientOptions &config)
 
void Process (int argc, char *argv[], boost::program_options::options_description &cmdline_options)
 
void Initialize (EventManager &evm, boost::program_options::options_description &options)
 
void ParseConfigOptions (const boost::program_options::variables_map &var_map)
 
uint32_t GenerateHash (const std::vector< std::string > &list)
 
uint32_t GenerateHash (const ConfigClientOptions &config)
 

Private Attributes

std::string bgp_config_file_
 
uint16_t bgp_port_
 
std::vector< std::string > collector_server_list_
 
std::vector< std::string > randomized_collector_server_list_
 
uint32_t collector_chksum_
 
uint32_t configdb_chksum_
 
std::string config_file_
 
std::string hostname_
 
std::string host_ip_
 
uint16_t http_server_port_
 
std::string log_category_
 
bool log_disable_
 
std::string log_file_
 
std::string log_property_file_
 
int log_files_count_
 
long log_file_size_
 
std::string log_level_
 
bool log_local_
 
bool use_syslog_
 
std::string syslog_facility_
 
bool mvpn_ipv4_enable_
 
bool task_track_run_time_
 
ConfigClientOptions configdb_options_
 
uint16_t xmpp_port_
 
bool xmpp_auth_enable_
 
std::string xmpp_server_cert_
 
std::string xmpp_server_key_
 
std::string xmpp_ca_cert_
 
bool test_mode_
 
bool collectors_configured_
 
int tcp_hold_time_
 
bool optimize_snat_
 
uint32_t sandesh_ratelimit_
 
bool gr_helper_bgp_disable_
 
bool gr_helper_xmpp_disable_
 
std::string cassandra_user_
 
std::string cassandra_password_
 
std::vector< std::string > cassandra_server_list_
 
std::vector< std::string > default_collector_server_list_
 
SandeshConfig sandesh_config_
 
boost::program_options::options_description config_file_options_
 
ConfigClientManagerconfig_client_manager_
 
std::string dns_config_file_
 
std::string named_config_file_
 
std::string named_config_dir_
 
std::string named_log_file_
 
std::string rndc_config_file_
 
std::string rndc_secret_
 
std::string named_max_cache_size_
 
uint16_t named_max_retransmissions_
 
uint16_t named_retransmission_interval_
 
uint16_t dns_server_port_
 
uint32_t send_ratelimit_
 

Detailed Description

Definition at line 13 of file options.h.

Constructor & Destructor Documentation

Options::Options ( )

Definition at line 27 of file options.cc.

Options::Options ( )

Member Function Documentation

std::string Options::bgp_config_file ( ) const
inline

Definition at line 18 of file options.h.

uint16_t Options::bgp_port ( ) const
inline

Definition at line 19 of file options.h.

const std::string Options::cassandra_password ( ) const
inline

Definition at line 84 of file options.h.

const std::vector<std::string> Options::cassandra_server_list ( ) const
inline

Definition at line 85 of file options.h.

const std::string Options::cassandra_user ( ) const
inline

Definition at line 83 of file options.h.

std::vector<std::string> Options::collector_server_list ( ) const
inline

Definition at line 19 of file dns_options.h.

std::vector<std::string> Options::collector_server_list ( ) const
inline

Definition at line 20 of file options.h.

bool Options::collectors_configured ( ) const
inline

Definition at line 78 of file options.h.

bool Options::collectors_configured ( ) const
inline

Definition at line 85 of file dns_options.h.

std::string Options::config_db_password ( ) const
inline

Definition at line 45 of file options.h.

std::string Options::config_db_password ( ) const
inline

Definition at line 56 of file dns_options.h.

std::vector<std::string> Options::config_db_server_list ( ) const
inline

Definition at line 51 of file options.h.

std::vector<std::string> Options::config_db_server_list ( ) const
inline

Definition at line 62 of file dns_options.h.

bool Options::config_db_use_ssl ( ) const
inline

Definition at line 48 of file options.h.

bool Options::config_db_use_ssl ( ) const
inline

Definition at line 59 of file dns_options.h.

std::string Options::config_db_user ( ) const
inline

Definition at line 42 of file options.h.

std::string Options::config_db_user ( ) const
inline

Definition at line 53 of file dns_options.h.

std::string Options::config_file ( ) const
inline

Definition at line 26 of file options.h.

std::string Options::config_file ( ) const
inline

Definition at line 26 of file dns_options.h.

const ConfigClientOptions& Options::configdb_options ( ) const
inline

Definition at line 69 of file options.h.

const ConfigClientOptions& Options::configdb_options ( ) const
inline

Definition at line 77 of file dns_options.h.

std::string Options::dns_config_file ( ) const
inline

Definition at line 25 of file dns_options.h.

uint16_t Options::dns_server_port ( ) const
inline

Definition at line 42 of file dns_options.h.

uint32_t Options::GenerateHash ( const std::vector< std::string > &  list)
private
uint32_t Options::GenerateHash ( const ConfigClientOptions config)
private
uint32_t Options::GenerateHash ( const std::vector< std::string > &  list)
private

Definition at line 221 of file options.cc.

uint32_t Options::GenerateHash ( const ConfigClientOptions config)
private

Definition at line 231 of file options.cc.

bool Options::gr_helper_bgp_disable ( ) const
inline

Definition at line 81 of file options.h.

bool Options::gr_helper_xmpp_disable ( ) const
inline

Definition at line 82 of file options.h.

std::string Options::host_ip ( ) const
inline

Definition at line 28 of file options.h.

std::string Options::host_ip ( ) const
inline

Definition at line 40 of file dns_options.h.

std::string Options::hostname ( ) const
inline

Definition at line 27 of file options.h.

std::string Options::hostname ( ) const
inline

Definition at line 39 of file dns_options.h.

uint16_t Options::http_server_port ( ) const
inline

Definition at line 29 of file options.h.

uint16_t Options::http_server_port ( ) const
inline

Definition at line 41 of file dns_options.h.

void Options::Initialize ( EventManager evm,
boost::program_options::options_description &  options 
)
private
void Options::Initialize ( EventManager evm,
boost::program_options::options_description &  options 
)
private
std::string Options::log_category ( ) const
inline

Definition at line 30 of file options.h.

std::string Options::log_category ( ) const
inline

Definition at line 43 of file dns_options.h.

bool Options::log_disable ( ) const
inline

Definition at line 31 of file options.h.

bool Options::log_disable ( ) const
inline

Definition at line 44 of file dns_options.h.

std::string Options::log_file ( ) const
inline

Definition at line 32 of file options.h.

std::string Options::log_file ( ) const
inline

Definition at line 45 of file dns_options.h.

long Options::log_file_size ( ) const
inline

Definition at line 35 of file options.h.

long Options::log_file_size ( ) const
inline

Definition at line 48 of file dns_options.h.

int Options::log_files_count ( ) const
inline

Definition at line 34 of file options.h.

int Options::log_files_count ( ) const
inline

Definition at line 47 of file dns_options.h.

std::string Options::log_level ( ) const
inline

Definition at line 36 of file options.h.

std::string Options::log_level ( ) const
inline

Definition at line 49 of file dns_options.h.

bool Options::log_local ( ) const
inline

Definition at line 37 of file options.h.

bool Options::log_local ( ) const
inline

Definition at line 50 of file dns_options.h.

std::string Options::log_property_file ( ) const
inline

Definition at line 33 of file options.h.

std::string Options::log_property_file ( ) const
inline

Definition at line 46 of file dns_options.h.

bool Options::mvpn_ipv4_enable ( ) const
inline

Definition at line 40 of file options.h.

const std::string& Options::named_config_dir ( ) const
inline

Definition at line 28 of file dns_options.h.

const std::string& Options::named_config_file ( ) const
inline

Definition at line 27 of file dns_options.h.

const std::string& Options::named_log_file ( ) const
inline

Definition at line 29 of file dns_options.h.

const std::string& Options::named_max_cache_size ( ) const
inline

Definition at line 32 of file dns_options.h.

const uint16_t Options::named_max_retransmissions ( )
inline

Definition at line 35 of file dns_options.h.

const uint16_t Options::named_retransmission_interval ( )
inline

Definition at line 36 of file dns_options.h.

bool Options::optimize_snat ( ) const
inline

Definition at line 80 of file options.h.

bool Options::Parse ( EventManager evm,
int  argc,
char **  argv 
)
bool Options::Parse ( EventManager evm,
int  argc,
char *  argv[] 
)

Definition at line 30 of file options.cc.

void Options::ParseConfigOptions ( const boost::program_options::variables_map &  var_map)
private
void Options::ParseConfigOptions ( const boost::program_options::variables_map &  var_map)
private

Definition at line 362 of file options.cc.

void Options::ParseReConfig ( )

Definition at line 369 of file dns_options.cc.

Here is the call graph for this function:

void Options::ParseReConfig ( bool  force_reinit)

Definition at line 327 of file options.cc.

Here is the call graph for this function:

void Options::Process ( int  argc,
char *  argv[],
boost::program_options::options_description &  cmdline_options 
)
private
bool Options::Process ( int  argc,
char *  argv[],
boost::program_options::options_description &  cmdline_options 
)
private
std::string Options::rabbitmq_password ( ) const
inline

Definition at line 60 of file options.h.

std::string Options::rabbitmq_password ( ) const
inline

Definition at line 71 of file dns_options.h.

std::vector<std::string> Options::rabbitmq_server_list ( ) const
inline

Definition at line 54 of file options.h.

std::vector<std::string> Options::rabbitmq_server_list ( ) const
inline

Definition at line 65 of file dns_options.h.

bool Options::rabbitmq_ssl_enabled ( ) const
inline

Definition at line 63 of file options.h.

bool Options::rabbitmq_ssl_enabled ( ) const
inline

Definition at line 74 of file dns_options.h.

std::string Options::rabbitmq_user ( ) const
inline

Definition at line 57 of file options.h.

std::string Options::rabbitmq_user ( ) const
inline

Definition at line 68 of file dns_options.h.

std::vector<std::string> Options::randomized_collector_server_list ( ) const
inline

Definition at line 22 of file dns_options.h.

std::vector<std::string> Options::randomized_collector_server_list ( ) const
inline

Definition at line 23 of file options.h.

const std::string& Options::rndc_config_file ( ) const
inline

Definition at line 30 of file dns_options.h.

const std::string& Options::rndc_secret ( ) const
inline

Definition at line 31 of file dns_options.h.

const SandeshConfig& Options::sandesh_config ( ) const
inline

Definition at line 86 of file dns_options.h.

const SandeshConfig& Options::sandesh_config ( ) const
inline

Definition at line 88 of file options.h.

void Options::set_config_client_manager ( ConfigClientManager mgr)
inline

Definition at line 90 of file dns_options.h.

void Options::set_config_client_manager ( ConfigClientManager mgr)
inline

Definition at line 92 of file options.h.

std::string Options::syslog_facility ( ) const
inline

Definition at line 39 of file options.h.

std::string Options::syslog_facility ( ) const
inline

Definition at line 52 of file dns_options.h.

bool Options::task_track_run_time ( ) const
inline

Definition at line 41 of file options.h.

int Options::tcp_hold_time ( ) const
inline

Definition at line 79 of file options.h.

bool Options::test_mode ( ) const
inline

Definition at line 77 of file options.h.

bool Options::test_mode ( ) const
inline

Definition at line 84 of file dns_options.h.

bool Options::use_syslog ( ) const
inline

Definition at line 38 of file options.h.

bool Options::use_syslog ( ) const
inline

Definition at line 51 of file dns_options.h.

bool Options::using_etcd_client ( ) const
inline

Definition at line 66 of file options.h.

bool Options::xmpp_auth_enabled ( ) const
inline

Definition at line 73 of file options.h.

bool Options::xmpp_auth_enabled ( ) const
inline

Definition at line 80 of file dns_options.h.

std::string Options::xmpp_ca_cert ( ) const
inline

Definition at line 76 of file options.h.

std::string Options::xmpp_ca_cert ( ) const
inline

Definition at line 83 of file dns_options.h.

uint16_t Options::xmpp_port ( ) const
inline

Definition at line 72 of file options.h.

std::string Options::xmpp_server_cert ( ) const
inline

Definition at line 74 of file options.h.

std::string Options::xmpp_server_cert ( ) const
inline

Definition at line 81 of file dns_options.h.

std::string Options::xmpp_server_key ( ) const
inline

Definition at line 75 of file options.h.

std::string Options::xmpp_server_key ( ) const
inline

Definition at line 82 of file dns_options.h.

Member Data Documentation

std::string Options::bgp_config_file_
private

Definition at line 107 of file options.h.

uint16_t Options::bgp_port_
private

Definition at line 108 of file options.h.

std::string Options::cassandra_password_
private

Definition at line 143 of file options.h.

std::vector<std::string> Options::cassandra_server_list_
private

Definition at line 144 of file options.h.

std::string Options::cassandra_user_
private

Definition at line 142 of file options.h.

uint32_t Options::collector_chksum_
private

Definition at line 111 of file options.h.

std::vector< std::string > Options::collector_server_list_
private

Definition at line 109 of file options.h.

bool Options::collectors_configured_
private

Definition at line 136 of file options.h.

ConfigClientManager * Options::config_client_manager_
private

Definition at line 148 of file options.h.

std::string Options::config_file_
private

Definition at line 113 of file options.h.

boost::program_options::options_description Options::config_file_options_
private

Definition at line 147 of file options.h.

uint32_t Options::configdb_chksum_
private

Definition at line 112 of file options.h.

ConfigClientOptions Options::configdb_options_
private

Definition at line 129 of file options.h.

std::vector< std::string > Options::default_collector_server_list_
private

Definition at line 145 of file options.h.

std::string Options::dns_config_file_
private

Definition at line 109 of file dns_options.h.

uint16_t Options::dns_server_port_
private

Definition at line 124 of file dns_options.h.

bool Options::gr_helper_bgp_disable_
private

Definition at line 140 of file options.h.

bool Options::gr_helper_xmpp_disable_
private

Definition at line 141 of file options.h.

std::string Options::host_ip_
private

Definition at line 115 of file options.h.

std::string Options::hostname_
private

Definition at line 114 of file options.h.

uint16_t Options::http_server_port_
private

Definition at line 116 of file options.h.

std::string Options::log_category_
private

Definition at line 117 of file options.h.

bool Options::log_disable_
private

Definition at line 118 of file options.h.

std::string Options::log_file_
private

Definition at line 119 of file options.h.

long Options::log_file_size_
private

Definition at line 122 of file options.h.

int Options::log_files_count_
private

Definition at line 121 of file options.h.

std::string Options::log_level_
private

Definition at line 123 of file options.h.

bool Options::log_local_
private

Definition at line 124 of file options.h.

std::string Options::log_property_file_
private

Definition at line 120 of file options.h.

bool Options::mvpn_ipv4_enable_
private

Definition at line 127 of file options.h.

std::string Options::named_config_dir_
private

Definition at line 113 of file dns_options.h.

std::string Options::named_config_file_
private

Definition at line 112 of file dns_options.h.

std::string Options::named_log_file_
private

Definition at line 114 of file dns_options.h.

std::string Options::named_max_cache_size_
private

Definition at line 117 of file dns_options.h.

uint16_t Options::named_max_retransmissions_
private

Definition at line 118 of file dns_options.h.

uint16_t Options::named_retransmission_interval_
private

Definition at line 119 of file dns_options.h.

bool Options::optimize_snat_
private

Definition at line 138 of file options.h.

std::vector< std::string > Options::randomized_collector_server_list_
private

Definition at line 110 of file options.h.

std::string Options::rndc_config_file_
private

Definition at line 115 of file dns_options.h.

std::string Options::rndc_secret_
private

Definition at line 116 of file dns_options.h.

SandeshConfig Options::sandesh_config_
private

Definition at line 146 of file options.h.

uint32_t Options::sandesh_ratelimit_
private

Definition at line 139 of file options.h.

uint32_t Options::send_ratelimit_
private

Definition at line 143 of file dns_options.h.

std::string Options::syslog_facility_
private

Definition at line 126 of file options.h.

bool Options::task_track_run_time_
private

Definition at line 128 of file options.h.

int Options::tcp_hold_time_
private

Definition at line 137 of file options.h.

bool Options::test_mode_
private

Definition at line 135 of file options.h.

bool Options::use_syslog_
private

Definition at line 125 of file options.h.

bool Options::xmpp_auth_enable_
private

Definition at line 131 of file options.h.

std::string Options::xmpp_ca_cert_
private

Definition at line 134 of file options.h.

uint16_t Options::xmpp_port_
private

Definition at line 130 of file options.h.

std::string Options::xmpp_server_cert_
private

Definition at line 132 of file options.h.

std::string Options::xmpp_server_key_
private

Definition at line 133 of file options.h.


The documentation for this class was generated from the following files: