hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 34 | simandl | package HotSaNICmod::common; |
2 | |
||
3 | sub configure { |
||
4 | my $num=0; |
||
5 | foreach (@_) { |
||
6 | ($var,$value)=HotSaNICparser::parse_line($_); |
||
7 | if ($var eq "SNMPWALK") { $MODARGS{SNMPWALK}=$value; } |
||
8 | if ($var eq "IP") { |
||
9 | my ($dev,$oid,$name)=split(/,/,$value); |
||
10 | $MODARGS{"IP,$dev,$oid,$name"}=$value; |
||
11 | } |
||
12 | } |
||
13 | return %MODARGS; |
||
14 | } |
||
15 | 1; |