Opened 14 years ago

Closed 11 years ago

Last modified 9 years ago

#48 closed defect (fixed)

cfgmaker doesn't pass snmp options to host templates

Reported by: human Owned by: somebody
Version: 2.x Keywords:
Cc:

Description

That's because $$router_ref{snmpopt_current} is not yet initialized when the host template code is called. It only gets initialized later inside IsCounterBroken? (quite an odd place to do it, btw).

Adding:

$$router_ref{snmpopt_current} = $$router_ref{'snmp-options'};

above the line that first defines $router_connect seems to fix the issue for me, but it might not be the right fix.

Thanks, -Ion

Note: See TracTickets for help on using tickets.
 

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example.