mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/net-snmp: add l3 visibility (#1039)
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user