summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.filter_synchronize7
-rw-r--r--usr/local/pkg/carp_settings.xml18
2 files changed, 19 insertions, 6 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 7039722..6acadc0 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -321,9 +321,10 @@ if (is_array($config['installedpackages']['carpsettings']['config'])) {
if ($carp['synchronizetrafficshaper'] != "" and is_array($config['shaper'])) {
$sections[] = 'shaper';
}
- if ($carp['synchronizetrafficshaper'] != "") {
- if (!is_array($config['l7shaper']))
- $config['l7shaper'] = array();
+ if ($carp['synchronizetrafficshaperlimiter'] != "" and is_array($config['dnshaper'])) {
+ $sections[] = 'dnshaper';
+ }
+ if ($carp['synchronizetrafficshaperlayer7'] != "" and is_array($config['l7shaper'])) {
$sections[] = 'l7shaper';
}
if ($carp['synchronizestaticroutes'] != "") {
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index 3365bba..f335236 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -171,9 +171,21 @@
<type>checkbox</type>
</field>
<field>
- <fielddescr>Synchronize traffic shaper</fielddescr>
+ <fielddescr>Synchronize traffic shaper(queues)</fielddescr>
<fieldname>synchronizetrafficshaper</fieldname>
- <description>When this option is enabled, this system will automatically sync the traffic shaper configuration to the other CARP host when changes are made.</description>
+ <description>When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other CARP host when changes are made.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Synchronize traffic shaper(limiter)</fielddescr>
+ <fieldname>synchronizetrafficshaperlimiter</fieldname>
+ <description>When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other CARP host when changes are made.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Synchronize traffic shaper(layer7)</fielddescr>
+ <fieldname>synchronizetrafficshaperlayer7</fieldname>
+ <description>When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other CARP host when changes are made.</description>
<type>checkbox</type>
</field>
<field>
@@ -211,4 +223,4 @@
/* force a filter configure for syncing */
filter_configure();
</custom_add_php_command_late>
-</packagegui> \ No newline at end of file
+</packagegui>
OpenPOWER on IntegriCloud