diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-15 19:37:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-15 19:37:07 +0000 |
commit | e130cfd349b0828f8a8628408330e38abe4e637e (patch) | |
tree | 40b33ee0c240b19331618a0c143547822fec5be1 | |
parent | 530b5e46f98d1f7f2770090566a7eb2c06d59fc4 (diff) | |
download | pfsense-e130cfd349b0828f8a8628408330e38abe4e637e.zip pfsense-e130cfd349b0828f8a8628408330e38abe4e637e.tar.gz |
Add xml sync schedules option
-rw-r--r-- | etc/inc/filter.inc | 3 | ||||
-rw-r--r-- | usr/local/pkg/carp_settings.xml | 16 |
2 files changed, 14 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index c556358..f217662 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -3100,6 +3100,9 @@ function carp_sync_client() { if($carp['synchronizednsforwarder'] != "" and is_array($config['dnsmasq'])) { $sections[] = 'dnsmasq'; } + if($carp['synchronizeschedules'] != "" and is_array($config['schedules'])) { + $sections[] = 'schedules'; + } if(count($sections) > 0) { update_filter_reload_status("Signaling CARP reload signal..."); carp_sync_xml($synchronizetoip, $carp['password'], $sections, $port); diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml index d07d773..85f3be1 100644 --- a/usr/local/pkg/carp_settings.xml +++ b/usr/local/pkg/carp_settings.xml @@ -144,11 +144,17 @@ <note>Note: CARP sync is currently only supported over http connections - make sure the remote system's WebGUI protocol is set to this!</note> </field> <field> - <fielddescr>Remote System Password</fielddescr> - <fieldname>password</fieldname> - <description>Enter the webGUI password of the system that you would like to synchronize with.</description> - <type>password</type> - </field> + <fielddescr>Remote System Password</fielddescr> + <fieldname>password</fieldname> + <description>Enter the webGUI password of the system that you would like to synchronize with.</description> + <type>password</type> + </field> + <field> + <fielddescr>Synchronize Firewall Schedules</fielddescr> + <fieldname>synchronizeschedules</fieldname> + <description>When this option is enabled, this system will automatically sync the firewall schedules over to the other carp host when changes are made.</description> + <type>checkbox</type> + </field> </fields> <custom_php_validation_command> if($_POST["synchronizetoip"]) |