summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-14 17:25:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-14 17:25:11 +0000
commiteedc7894cc20ac325159ffc80801b2dcbf05e5a3 (patch)
tree153e9bfbbc537500fbbc6117b4483def225a23bc /etc/inc
parent33cec50122a75a3985751b5f40fad23deebf4c60 (diff)
downloadpfsense-eedc7894cc20ac325159ffc80801b2dcbf05e5a3.zip
pfsense-eedc7894cc20ac325159ffc80801b2dcbf05e5a3.tar.gz
Sync scheduler type
Ticket #499
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc2
-rw-r--r--etc/inc/pfsense-utils.inc12
2 files changed, 14 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 58df881..a06810c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2403,6 +2403,8 @@ function carp_sync_client() {
if($carp['synchronizetrafficshaper'] != "" and is_array($config['shaper'])) {
$sections_xml[] = new XML_RPC_Value(backup_config_section("shaper"), 'string');
$sections[] = new XML_RPC_Value('shaper', 'string');
+ $sections_xml[] = new XML_RPC_Value(backup_config_ts_scheduler(), 'string');
+ $sections[] = new XML_RPC_Value('shaper', 'string');
}
if($carp['synchronizestaticroutes'] != "" and is_array($config['staticroutes'])) {
$sections_xml[] = new XML_RPC_Value(backup_config_section("staticroutes"), 'string');
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index e43b63b..68b0a3f 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -717,6 +717,18 @@ function backup_config_section($section) {
}
/*
+ * backup_config_ts_scheduler(): returns the traffic shaper scheduler for backup
+ */
+function backup_config_ts_scheduler() {
+ global $config;
+ $new_section = &$config['syste']['schedulertype'];
+ /* generate configuration XML */
+ $xmlconfig = dump_xml_config($new_section, $section);
+ $xmlconfig = str_replace("<?xml version=\"1.0\"?>", "", $xmlconfig);
+ return $xmlconfig;
+}
+
+/*
* backup_config_section($section): returns as an xml file string of
* the configuration section
*/
OpenPOWER on IntegriCloud