diff options
author | Mark Wells <mark@freeside.biz> | 2012-11-29 22:03:29 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-11-29 22:03:29 -0800 |
commit | a2a69f909cad813d7164bae805e87f5874a9fdae (patch) | |
tree | 29e426af02eb03106e55507103fc90f92fa55f61 /FS/FS/part_export.pm | |
parent | 226fffec6fd0154ea8798b58321d4d119341879f (diff) |
broadband_snmp export: better MIB selection
Diffstat (limited to 'FS/FS/part_export.pm')
-rw-r--r-- | FS/FS/part_export.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index b0f708a..ed66b41 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -615,6 +615,19 @@ sub weight { export_info()->{$self->exporttype}->{'weight'} || 0; } +=item info + +Returns a reference to (a copy of) the export's %info hash. + +=cut + +sub info { + my $self = shift; + $self->{_info} ||= { + %{ export_info()->{$self->exporttype} } + }; +} + =back =head1 SUBROUTINES |