diff --git a/usr/local/pkg/routed.inc b/usr/local/pkg/routed.inc index ec730d5bea..cb349cdd8c 100644 --- a/usr/local/pkg/routed.inc +++ b/usr/local/pkg/routed.inc @@ -78,6 +78,14 @@ function setup_etc_gateways($iface="", $mode="") { if ($passwd != "") { $ret .= "passwd={$passwd} "; } + $add_no_ag = $config['installedpackages']['routed']['config'][0]['enable_no_ag']; + $add_no_super_ag = $config['installedpackages']['routed']['config'][0]['enable_no_super_ag']; + if($add_no_ag == "on") { + $ret .= "no_ag "; + } + if($add_no_super_ag == "on") { + $ret .= "no_super_ag "; + } } break; case "disable": diff --git a/usr/local/pkg/routed.xml b/usr/local/pkg/routed.xml index 274c3d6e9c..4c5137f379 100644 --- a/usr/local/pkg/routed.xml +++ b/usr/local/pkg/routed.xml @@ -64,7 +64,7 @@ enable Enables the Routing Information Protocol daemon checkbox - iface_array[],ripversion,passwd + iface_array[],ripversion,passwd,enable_no_ag,enable_no_super_ag Interfaces @@ -96,6 +96,18 @@ input + + no_ag + enable_no_ag + turns off aggregation of subnets in RIPv1 and RIPv2 responses. + checkbox + + + no_super_ag + enable_no_super_ag + turns off aggregation of networks into supernets in RIPv2 responses. + checkbox + pkg_edit.php?xml=routed.xml&id=0