void init_keywords(void) { install_keyword_root("defaults", NULL); install_keyword("verbosity", &verbosity_handler, &snprint_def_verbosity); install_keyword("polling_interval", &polling_interval_handler, &snprint_def_polling_interval); install_keyword("udev_dir", &udev_dir_handler, &snprint_def_udev_dir); install_keyword("multipath_dir", &multipath_dir_handler, &snprint_def_multipath_dir); install_keyword("selector", &def_selector_handler, &snprint_def_selector); install_keyword("path_grouping_policy", &def_pgpolicy_handler, &snprint_def_path_grouping_policy); install_keyword("getuid_callout", &def_getuid_callout_handler, &snprint_def_getuid_callout); install_keyword("prio", &def_prio_handler, &snprint_def_prio); install_keyword("features", &def_features_handler, &snprint_def_features); install_keyword("path_checker", &def_path_checker_handler, &snprint_def_path_checker); install_keyword("checker", &def_path_checker_handler, &snprint_def_path_checker); install_keyword("failback", &default_failback_handler, &snprint_def_failback); install_keyword("rr_min_io", &def_minio_handler, &snprint_def_rr_min_io); install_keyword("max_fds", &max_fds_handler, &snprint_max_fds); install_keyword("rr_weight", &def_weight_handler, &snprint_def_rr_weight); install_keyword("no_path_retry", &def_no_path_retry_handler, &snprint_def_no_path_retry); install_keyword("pg_timeout", &def_pg_timeout_handler, &snprint_def_pg_timeout); install_keyword("flush_on_last_del", &def_flush_on_last_del_handler, &snprint_def_flush_on_last_del); install_keyword("user_friendly_names", &names_handler, &snprint_def_user_friendly_names); install_keyword("mode", &def_mode_handler, &snprint_def_mode); install_keyword("uid", &def_uid_handler, &snprint_def_uid); install_keyword("gid", &def_gid_handler, &snprint_def_gid); __deprecated install_keyword("default_selector", &def_selector_handler, NULL); __deprecated install_keyword("default_path_grouping_policy", &def_pgpolicy_handler, NULL); __deprecated install_keyword("default_getuid_callout", &def_getuid_callout_handler, NULL); __deprecated install_keyword("default_features", &def_features_handler, NULL); __deprecated install_keyword("default_path_checker", &def_path_checker_handler, NULL); install_keyword_root("blacklist", &blacklist_handler); install_keyword("devnode", &ble_devnode_handler, &snprint_ble_simple); install_keyword("wwid", &ble_wwid_handler, &snprint_ble_simple); install_keyword("device", &ble_device_handler, NULL); install_sublevel(); install_keyword("vendor", &ble_vendor_handler, &snprint_bled_vendor); install_keyword("product", &ble_product_handler, &snprint_bled_product); install_sublevel_end(); install_keyword_root("blacklist_exceptions", &blacklist_exceptions_handler); install_keyword("devnode", &ble_except_devnode_handler, &snprint_ble_simple); install_keyword("wwid", &ble_except_wwid_handler, &snprint_ble_simple); install_keyword("device", &ble_except_device_handler, NULL); install_sublevel(); install_keyword("vendor", &ble_except_vendor_handler, &snprint_bled_vendor); install_keyword("product", &ble_except_product_handler, &snprint_bled_product); install_sublevel_end(); #if 0 __deprecated install_keyword_root("devnode_blacklist", &blacklist_handler); __deprecated install_keyword("devnode", &ble_devnode_handler, &snprint_ble_simple); __deprecated install_keyword("wwid", &ble_wwid_handler, &snprint_ble_simple); __deprecated install_keyword("device", &ble_device_handler, NULL); __deprecated install_sublevel(); __deprecated install_keyword("vendor", &ble_vendor_handler, &snprint_bled_vendor); __deprecated install_keyword("product", &ble_product_handler, &snprint_bled_product); __deprecated install_sublevel_end(); #endif install_keyword_root("devices", &devices_handler); install_keyword("device", &device_handler, NULL); install_sublevel(); install_keyword("vendor", &vendor_handler, &snprint_hw_vendor); install_keyword("product", &product_handler, &snprint_hw_product); install_keyword("product_blacklist", &bl_product_handler, &snprint_hw_bl_product); install_keyword("path_grouping_policy", &hw_pgpolicy_handler, &snprint_hw_path_grouping_policy); install_keyword("getuid_callout", &hw_getuid_callout_handler, &snprint_hw_getuid_callout); install_keyword("path_selector", &hw_selector_handler, &snprint_hw_selector); install_keyword("path_checker", &hw_path_checker_handler, &snprint_hw_path_checker); install_keyword("checker", &hw_path_checker_handler, &snprint_hw_path_checker); install_keyword("features", &hw_features_handler, &snprint_hw_features); install_keyword("hardware_handler", &hw_handler_handler, &snprint_hw_hardware_handler); install_keyword("prio", &hw_prio_handler, &snprint_hw_prio); install_keyword("failback", &hw_failback_handler, &snprint_hw_failback); install_keyword("rr_weight", &hw_weight_handler, &snprint_hw_rr_weight); install_keyword("no_path_retry", &hw_no_path_retry_handler, &snprint_hw_no_path_retry); install_keyword("rr_min_io", &hw_minio_handler, &snprint_hw_rr_min_io); install_keyword("pg_timeout", &hw_pg_timeout_handler, &snprint_hw_pg_timeout); install_keyword("flush_on_last_del", &hw_flush_on_last_del_handler, &snprint_hw_flush_on_last_del); install_sublevel_end(); install_keyword_root("multipaths", &multipaths_handler); install_keyword("multipath", &multipath_handler, NULL); install_sublevel(); install_keyword("wwid", &wwid_handler, &snprint_mp_wwid); install_keyword("alias", &alias_handler, &snprint_mp_alias); install_keyword("path_grouping_policy", &mp_pgpolicy_handler, &snprint_mp_path_grouping_policy); install_keyword("path_selector", &mp_selector_handler, &snprint_mp_selector); install_keyword("failback", &mp_failback_handler, &snprint_mp_failback); install_keyword("rr_weight", &mp_weight_handler, &snprint_mp_rr_weight); install_keyword("no_path_retry", &mp_no_path_retry_handler, &snprint_mp_no_path_retry); install_keyword("rr_min_io", &mp_minio_handler, &snprint_mp_rr_min_io); install_keyword("pg_timeout", &mp_pg_timeout_handler, &snprint_mp_pg_timeout); install_keyword("flush_on_last_del", &mp_flush_on_last_del_handler, &snprint_mp_flush_on_last_del); install_keyword("mode", &mp_mode_handler, &snprint_mp_mode); install_keyword("uid", &mp_uid_handler, &snprint_mp_uid); install_keyword("gid", &mp_gid_handler, &snprint_mp_gid); install_sublevel_end(); }
vector_t * vrrp_init_keywords(void) { /* global definitions mapping */ global_init_keywords(); /* Static routes mapping */ install_keyword_root("static_ipaddress", &static_addresses_handler); install_keyword_root("static_routes", &static_routes_handler); /* VRRP Instance mapping */ install_keyword_root("vrrp_sync_group", &vrrp_sync_group_handler); install_keyword("group", &vrrp_group_handler); install_keyword("notify_backup", &vrrp_gnotify_backup_handler); install_keyword("notify_master", &vrrp_gnotify_master_handler); install_keyword("notify_fault", &vrrp_gnotify_fault_handler); install_keyword("notify", &vrrp_gnotify_handler); install_keyword("smtp_alert", &vrrp_gsmtp_handler); install_keyword("global_tracking", &vrrp_gglobal_tracking_handler); install_keyword_root("vrrp_instance", &vrrp_handler); install_keyword("use_vmac", &vrrp_vmac_handler); install_keyword("vmac_xmit_base", &vrrp_vmac_xmit_base_handler); install_keyword("unicast_peer", &vrrp_unicast_peer_handler); install_keyword("native_ipv6", &vrrp_native_ipv6_handler); install_keyword("state", &vrrp_state_handler); install_keyword("interface", &vrrp_int_handler); install_keyword("dont_track_primary", &vrrp_dont_track_handler); install_keyword("track_interface", &vrrp_track_int_handler); install_keyword("track_script", &vrrp_track_scr_handler); install_keyword("mcast_src_ip", &vrrp_srcip_handler); install_keyword("unicast_src_ip", &vrrp_srcip_handler); install_keyword("virtual_router_id", &vrrp_vrid_handler); install_keyword("priority", &vrrp_prio_handler); install_keyword("advert_int", &vrrp_adv_handler); install_keyword("virtual_ipaddress", &vrrp_vip_handler); install_keyword("virtual_ipaddress_excluded", &vrrp_evip_handler); install_keyword("virtual_routes", &vrrp_vroutes_handler); install_keyword("preempt", &vrrp_preempt_handler); install_keyword("nopreempt", &vrrp_nopreempt_handler); install_keyword("preempt_delay", &vrrp_preempt_delay_handler); install_keyword("debug", &vrrp_debug_handler); install_keyword("notify_backup", &vrrp_notify_backup_handler); install_keyword("notify_master", &vrrp_notify_master_handler); install_keyword("notify_fault", &vrrp_notify_fault_handler); install_keyword("notify_stop", &vrrp_notify_stop_handler); install_keyword("notify", &vrrp_notify_handler); install_keyword("smtp_alert", &vrrp_smtp_handler); install_keyword("lvs_sync_daemon_interface", &vrrp_lvs_syncd_handler); install_keyword("garp_master_delay", &vrrp_garp_delay_handler); install_keyword("garp_master_refresh", &vrrp_garp_refresh_handler); install_keyword("authentication", NULL); install_sublevel(); install_keyword("auth_type", &vrrp_auth_type_handler); install_keyword("auth_pass", &vrrp_auth_pass_handler); install_sublevel_end(); install_keyword_root("vrrp_script", &vrrp_script_handler); install_keyword("script", &vrrp_vscript_script_handler); install_keyword("interval", &vrrp_vscript_interval_handler); install_keyword("timeout", &vrrp_vscript_timeout_handler); install_keyword("weight", &vrrp_vscript_weight_handler); install_keyword("rise", &vrrp_vscript_rise_handler); install_keyword("fall", &vrrp_vscript_fall_handler); return keywords; }
vector_t * check_init_keywords(void) { /* global definitions mapping */ global_init_keywords(); /* SSL mapping */ install_keyword_root("SSL", &ssl_handler); install_keyword("password", &sslpass_handler); install_keyword("ca", &sslca_handler); install_keyword("certificate", &sslcert_handler); install_keyword("key", &sslkey_handler); /* local IP address mapping */ install_keyword_root("local_address_group", &laddr_group_handler); /* Virtual server mapping */ install_keyword_root("virtual_server_group", &vsg_handler); install_keyword_root("virtual_server", &vs_handler); install_keyword("delay_loop", &delay_handler); install_keyword("lb_algo", &lbalgo_handler); install_keyword("lvs_sched", &lbalgo_handler); install_keyword("lb_kind", &lbkind_handler); install_keyword("lvs_method", &lbkind_handler); install_keyword("nat_mask", &natmask_handler); install_keyword("persistence_timeout", &pto_handler); install_keyword("persistence_granularity", &pgr_handler); install_keyword("protocol", &proto_handler); install_keyword("ha_suspend", &hasuspend_handler); install_keyword("ops", &ops_handler); install_keyword("virtualhost", &virtualhost_handler); /* Pool regression detection and handling. */ install_keyword("alpha", &alpha_handler); install_keyword("omega", &omega_handler); install_keyword("quorum_up", &quorum_up_handler); install_keyword("quorum_down", &quorum_down_handler); install_keyword("quorum", &quorum_handler); install_keyword("hysteresis", &hysteresis_handler); /* Real server mapping */ install_keyword("sorry_server", &ssvr_handler); install_keyword("sorry_server_inhibit", &ssvri_handler); install_keyword("real_server", &rs_handler); install_sublevel(); install_keyword("weight", &weight_handler); #ifdef _KRNL_2_6_ install_keyword("uthreshold", &uthreshold_handler); install_keyword("lthreshold", <hreshold_handler); #endif install_keyword("inhibit_on_failure", &inhibit_handler); install_keyword("notify_up", ¬ify_up_handler); install_keyword("notify_down", ¬ify_down_handler); /* Checkers mapping */ install_checkers_keyword(); install_sublevel_end(); install_keyword("laddr_group_name", &laddr_gname_handler); install_keyword("syn_proxy", &syn_proxy_handler); install_keyword("vip_bind_dev", &bind_dev_handler); return keywords; }