From a2a69f909cad813d7164bae805e87f5874a9fdae Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 29 Nov 2012 22:03:29 -0800 Subject: broadband_snmp export: better MIB selection --- httemplate/edit/part_export.cgi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'httemplate/edit/part_export.cgi') diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index 0407ee77b..4dd253be8 100644 --- a/httemplate/edit/part_export.cgi +++ b/httemplate/edit/part_export.cgi @@ -62,6 +62,15 @@ my $widget = new HTML::Widgets::SelectLayers( 'html_between' => "\n", 'layer_callback' => sub { my $layer = shift; + # create 'config_element' to generate the whole layer with a Mason component + if ( my $include = $exports->{$layer}{config_element} ) { + # might need to adjust the scope of this at some point + return $m->scomp($include, + part_export => $part_export, + layer => $layer, + export_info => $exports->{$layer} + ); + } my $html = qq!!. ntable("#cccccc",2); -- cgit v1.2.1