mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net-mgmt/net-snmp: add l3 visibility (#1039)
(cherry picked from commit 435aee386a)
This commit is contained in:
parent
74c7d46a81
commit
add80b4fa8
4 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
PLUGIN_NAME= net-snmp
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_COMMENT= Net-SNMP is a daemon for the SNMP protocol
|
||||
PLUGIN_DEPENDS= net-snmp
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@
|
|||
<type>text</type>
|
||||
<help>Set the contact address to use.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.l3visibility</id>
|
||||
<label>Layer 3 Visibility</label>
|
||||
<type>checkbox</type>
|
||||
<help>Make this device visible as Layer 3 enabled.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.listen</id>
|
||||
<label>Listen IPs</label>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<model>
|
||||
<mount>//OPNsense/netsnmp/general</mount>
|
||||
<description>Netsnmp configuration</description>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
|
|
@ -19,6 +19,10 @@
|
|||
<default></default>
|
||||
<Required>N</Required>
|
||||
</syscontact>
|
||||
<l3visibility type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</l3visibility>
|
||||
<listen type="NetworkField">
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<Required>N</Required>
|
||||
|
|
|
|||
|
|
@ -35,5 +35,8 @@ sysLocation {{ OPNsense.netsnmp.general.syslocation }}
|
|||
sysContact {{ OPNsense.netsnmp.general.syscontact }}
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.netsnmp.general.l3visibility') and OPNsense.netsnmp.general.l3visibility == '1' %}
|
||||
sysServices 76
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue