towerops/priv/mibs/peplink/LAN
Graham McIntire b4f8b40b7f
Include MIB files in Docker image instead of using PVC
- Remove PVC volume mount from k8s/deployment.yaml
- Delete k8s/mib-pvc.yaml (no longer needed)
- Update .gitignore to commit MIB files to git
- Add mix import_mibs task to copy MIBs from LibreNMS
- Add all MIB files from priv/mibs/ to git

This fixes the multi-attach volume error in Kubernetes where new pods
couldn't start because the RWO (ReadWriteOnce) PVC was attached to the
old pod. MIBs are now part of the Docker image and can be used by all
pods simultaneously.
2026-01-19 14:01:03 -06:00

86 lines
2.5 KiB
Text

-- ********************************************************************
LAN DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-GROUP
FROM SNMPv2-CONF
enterprises, IpAddress,Unsigned32, Counter64, OBJECT-TYPE, MODULE-IDENTITY
FROM SNMPv2-SMI
DisplayString, RowStatus, TruthValue, MacAddress
FROM SNMPv2-TC;
--
-- Node definitions
--
-- The Enterprises Number
peplink OBJECT IDENTIFIER ::= { enterprises 23695 }
productMib OBJECT IDENTIFIER ::= { peplink 200 }
generalMib OBJECT IDENTIFIER ::= { productMib 1 }
lanMib OBJECT IDENTIFIER ::= { generalMib 3 }
-- ********************************************************************
-- * MODULE IDENTITY
-- ********************************************************************
lanInfo MODULE-IDENTITY
LAST-UPDATED "201305220000Z" -- 05 22, 2013 at 12:00 GMT
ORGANIZATION
"PEPLINK"
CONTACT-INFO
""
DESCRIPTION
"MIB module for LAN."
::= { lanMib 1 }
-- Local type define ----------------------------------------------------------
PortSpeedType ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Describe the port speed and type."
SYNTAX INTEGER {
unknown(0),
auto(1),
fullDulplex10(2),
halfDulplex10(3),
fullDulplex100(4),
halfDulplex100(5),
fullDulplex1000(6),
halfDulplex1000(7)
}
-- #####################################################################
--
-- **********************************************************************
-- * MIB attribute OBJECT-TYPE definitions follow
-- **********************************************************************
lanStatus OBJECT IDENTIFIER ::= { lanInfo 1 }
lanIp OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"LAN IP address."
::= { lanStatus 1 }
lanSubnetMask OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"LAN subnet mask."
::= { lanStatus 2 }
lanSpeed OBJECT-TYPE
SYNTAX PortSpeedType
MAX-ACCESS read-only
STATUS current
DESCRIPTION "LAN speed status (Auto/10baseT-FD/
10baseT-HD/100baseTx-FD/100baseTx-HD/1000baseTx-FD/
1000baseTx-HD."
::= { lanStatus 3 }
END