From b30e3be44ff4b8dcf92d7ae91ae1bb9f8887c604 Mon Sep 17 00:00:00 2001 From: Andrew Lowther Date: Wed, 25 Apr 2012 17:51:59 -0400 Subject: [PATCH] options for auto-summary/supernet --- usr/local/pkg/routed.inc | 8 ++++++++ usr/local/pkg/routed.xml | 14 +++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) 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