Added support for new device OS Westermo WeOS (#15674)

* Added support for new device OS Westermo WeOS

updated high limits

* Removed config regarding discovery and polling modules

* First test with moving sensor discovery to YAML

* Updates to discovery snr sensor, new test data, deleted sensors written in php

* Fix for SNR discovery sensor descr

* Removed shdsl from bad_iftype

---------

Co-authored-by: OSIRIS-REx <sphinxes@protonmail.com>
This commit is contained in:
OSIRIS-REx
2024-04-10 18:14:11 +02:00
committed by GitHub
parent 8d99014948
commit 393e954664
13 changed files with 7129 additions and 1 deletions

1242
mibs/westermo/TTDP-MIB Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,379 @@
WESTERMO-FRNT-MIB DEFINITIONS ::= BEGIN
IMPORTS
Integer32,
TimeTicks,
OBJECT-TYPE,
MODULE-IDENTITY,
NOTIFICATION-TYPE
FROM SNMPv2-SMI
IfaceRefIndex
FROM WESTERMO-INTERFACE-MIB
MODULE-COMPLIANCE,
OBJECT-GROUP,
NOTIFICATION-GROUP
FROM SNMPv2-CONF
common
FROM WESTERMO-OID-MIB
;
-- module
frnt MODULE-IDENTITY
LAST-UPDATED "201912110000Z"
ORGANIZATION "Westermo"
CONTACT-INFO
"Copyright (c) 2019:
Westermo Network Technologies AB
640 40 Stora Sundby
Sweden
url: http://www.westermo.com
Contact: support@westermo.se
Description: Westermo Common FRNT MIB-file"
DESCRIPTION
"Westermo Common FRNT MIB-file."
REVISION "201908300000Z"
DESCRIPTION
"Initial revision."
REVISION "201912110000Z"
DESCRIPTION
"Added ring status notifications"
::= { common 5 }
-- ---------------------------------------------------------- --
-- subtrees in the WESTERMO-FRNT-MIB
-- ---------------------------------------------------------- --
frntObjects OBJECT IDENTIFIER ::= { frnt 1 }
frntConformance OBJECT IDENTIFIER ::= { frnt 2 }
frntNotifications OBJECT IDENTIFIER ::= { frnt 3 }
frntNotificationPrefix OBJECT IDENTIFIER ::= { frntNotifications 0 }
-- -------------------------------------------------------------
-- the frntStatusTable
-- -------------------------------------------------------------
frntStatusTable OBJECT-TYPE
SYNTAX SEQUENCE OF FrntStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Table containing a list of FRNT instances/rings."
::= { frntObjects 1 }
frntStatusEntry OBJECT-TYPE
SYNTAX FrntStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The row containing status information for a specific
FRNT instance/ring."
INDEX { frntStatusVersion, frntStatusInstance }
::= { frntStatusTable 1 }
FrntStatusEntry ::=
SEQUENCE {
frntStatusVersion INTEGER,
frntStatusInstance Integer32,
frntStatusRingId Integer32,
frntStatusDeviceMode INTEGER,
frntStatusRingStatus INTEGER,
frntStatusPort1 IfaceRefIndex,
frntStatusPort2 IfaceRefIndex,
frntStatusBlockingPort IfaceRefIndex,
frntStatusVid1 Integer32,
frntStatusVid2 Integer32,
frntStatusTopologyChangeCount Integer32,
frntStatusTimeSinceLastChange TimeTicks
}
frntStatusVersion OBJECT-TYPE
SYNTAX INTEGER { v0(0), v2(2)}
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"FRNT Version"
::= { frntStatusEntry 1 }
frntStatusInstance OBJECT-TYPE
SYNTAX Integer32 (0..255)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"FRTN Instance"
::= { frntStatusEntry 2 }
frntStatusRingId OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"FRNT Ring ID"
::= { frntStatusEntry 3 }
frntStatusDeviceMode OBJECT-TYPE
SYNTAX INTEGER {member(1), focalPoint(2)}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A device (FRNT node) can act as focal point or a member"
::= { frntStatusEntry 4}
frntStatusRingStatus OBJECT-TYPE
SYNTAX INTEGER {broken(0), ok(1)}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current FRNT ring status"
::= { frntStatusEntry 5}
frntStatusPort1 OBJECT-TYPE
SYNTAX IfaceRefIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Reference Index for Port 1 (portM).
Reference Index is defined in WESTERMO-INTERFACES-MIB."
::= { frntStatusEntry 6}
frntStatusPort2 OBJECT-TYPE
SYNTAX IfaceRefIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Reference Index for Port 2 (portN).
Reference Index is defined in WESTERMO-INTERFACES-MIB."
::= { frntStatusEntry 7}
frntStatusBlockingPort OBJECT-TYPE
SYNTAX IfaceRefIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Reference Index for the blocking port.
In FRNTv0 this is always port 1 (port M).
Only applicable when deviceMode is focalPoint."
::= { frntStatusEntry 8}
frntStatusVid1 OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Vid 1 (Not applicable for FRNTv0 rings)"
::= { frntStatusEntry 9}
frntStatusVid2 OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Vid 2 (Not applicable for FRNTv0 rings)"
::= { frntStatusEntry 10}
frntStatusTopologyChangeCount OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object indicates the number of topology Changes
since FRNT was enabled."
::= { frntStatusEntry 11}
frntStatusTimeSinceLastChange OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object indicates the time that have passed since
the last change of ring status."
::= { frntStatusEntry 12 }
-- -------------------------------------------------------------
-- the frntPortStatus table
-- -------------------------------------------------------------
frntPortStatusTable OBJECT-TYPE
SYNTAX SEQUENCE OF FrntPortStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of frntPortStatus entries."
::= { frntObjects 2 }
frntPortStatusEntry OBJECT-TYPE
SYNTAX FrntPortStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"frntPortStatus entry"
INDEX { frntPortStatusFrntRingId, frntPortStatusRefIndex }
::= { frntPortStatusTable 1 }
FrntPortStatusEntry ::=
SEQUENCE {
frntPortStatusFrntRingId Integer32,
frntPortStatusRefIndex IfaceRefIndex,
frntPortStatusAdminState INTEGER,
frntPortStatusOperState INTEGER,
frntPortStatusLinkState INTEGER
}
frntPortStatusFrntRingId OBJECT-TYPE
SYNTAX Integer32 (0..9999)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"FRNT Ring ID"
::= { frntPortStatusEntry 1 }
frntPortStatusRefIndex OBJECT-TYPE
SYNTAX IfaceRefIndex
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The Reference Index for Port.
Defined in WESTERMO-INTERFACES-MIB"
::= { frntPortStatusEntry 2 }
frntPortStatusAdminState OBJECT-TYPE
SYNTAX INTEGER
{
unknown(0),
enabled(1),
disabled(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The FRNT port admin status."
::= { frntPortStatusEntry 3 }
frntPortStatusOperState OBJECT-TYPE
SYNTAX INTEGER
{
unknown(0),
disabled(1),
down(2),
notQualified(3),
qualified(4),
forwarding(5)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The FRNT port operating status."
::= { frntPortStatusEntry 4}
frntPortStatusLinkState OBJECT-TYPE
SYNTAX INTEGER
{
unknown(0),
up(1),
down(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The Port link state."
::= { frntPortStatusEntry 5}
-- ---------------------------------------------------------- --
-- Conformance Information
-- ---------------------------------------------------------- --
frntGroups OBJECT IDENTIFIER ::= { frntConformance 1 }
frntCompliances OBJECT IDENTIFIER ::= { frntConformance 2 }
-- ---------------------------------------------------------- --
-- Units of conformance
-- ---------------------------------------------------------- --
frntStatusGroup OBJECT-GROUP
OBJECTS {
frntStatusRingId,
frntStatusDeviceMode,
frntStatusRingStatus,
frntStatusPort1,
frntStatusPort2,
frntStatusBlockingPort,
frntStatusVid1,
frntStatusVid2,
frntStatusTopologyChangeCount,
frntStatusTimeSinceLastChange
}
STATUS current
DESCRIPTION
"FRNT Status group."
::= { frntGroups 1 }
frntPortStatusGroup OBJECT-GROUP
OBJECTS {
frntPortStatusAdminState,
frntPortStatusOperState,
frntPortStatusLinkState
}
STATUS current
DESCRIPTION
"FRNT Port Status group."
::= { frntGroups 2 }
frntNotificationsGroup NOTIFICATION-GROUP
NOTIFICATIONS {
frntRingOK,
frntRingBroken
}
STATUS current
DESCRIPTION
"FRNT Notifications group."
::= { frntGroups 3 }
-- ---------------------------------------------------------- --
-- FRNT notifications
-- ---------------------------------------------------------- --
frntRingOK NOTIFICATION-TYPE
OBJECTS { frntStatusRingId, frntStatusRingStatus, frntStatusDeviceMode, frntStatusPort1, frntStatusPort2 }
STATUS current
DESCRIPTION
"Notification associated with FRNT ring state"
::= { frntNotificationPrefix 1 }
frntRingBroken NOTIFICATION-TYPE
OBJECTS { frntStatusRingId,frntStatusRingStatus, frntStatusDeviceMode, frntStatusPort1, frntStatusPort2 }
STATUS current
DESCRIPTION
"Notification associated with FRNT ring state"
::= { frntNotificationPrefix 2 }
-- ---------------------------------------------------------- --
-- Compliance statements
-- ---------------------------------------------------------- --
frntCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement for SNMP entities that implement
the Westermo FRNT MIB."
MODULE
MANDATORY-GROUPS {
frntStatusGroup,
frntPortStatusGroup,
frntNotificationsGroup
}
::= { frntCompliances 1 }
END

View File

@@ -0,0 +1,185 @@
WESTERMO-INTERFACE-MIB DEFINITIONS ::= BEGIN
IMPORTS
DisplayString,
TEXTUAL-CONVENTION
FROM SNMPv2-TC
Integer32,
OBJECT-TYPE,
MODULE-IDENTITY
FROM SNMPv2-SMI
MODULE-COMPLIANCE,
OBJECT-GROUP
FROM SNMPv2-CONF
common
FROM WESTERMO-OID-MIB
InterfaceIndex
FROM IF-MIB
IANAifType
FROM IANAifType-MIB;
-- module
wmoInterface MODULE-IDENTITY
LAST-UPDATED "201908300000Z"
ORGANIZATION "Westermo"
CONTACT-INFO
"Copyright (c) 2019:
Westermo Network Technologies AB
640 40 Stora Sundby
Sweden
url: http://www.westermo.com
Contact: support@westermo.se
Description: Westermo Common Interfaces MIB-file"
DESCRIPTION
"Westermo Common Interfaces MIB-file. The Interface MIB lists all ports
and interfaces and their reference index. The purpose of reference index
is to have a predictable index for ports and interfaces."
REVISION "201908300000Z"
DESCRIPTION
"Initial version."
::= { common 4 }
-- -------------------------------------------------------------
-- Textual Conventions
-- -------------------------------------------------------------
IfaceRefIndex ::= TEXTUAL-CONVENTION
DISPLAY-HINT "d"
STATUS current
DESCRIPTION
"A unique value, greater than zero, for each interface or
interface sub-layer in the managed system. "
SYNTAX Integer32 (1..1000)
-- ---------------------------------------------------------- --
-- subtrees in the WESTERMO-FRNT-MIB
-- ---------------------------------------------------------- --
wmoInterfaceObjects OBJECT IDENTIFIER ::= { wmoInterface 1 }
wmoInterfaceConformance OBJECT IDENTIFIER ::= { wmoInterface 2 }
-- -------------------------------------------------------------
-- the ifRefTable
-- -------------------------------------------------------------
ifRefTable OBJECT-TYPE
SYNTAX SEQUENCE OF IfRefEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of interface entries."
::= { wmoInterfaceObjects 1 }
ifRefEntry OBJECT-TYPE
SYNTAX IfRefEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Interface entry"
INDEX { ifRefIndex }
::= { ifRefTable 1 }
IfRefEntry ::=
SEQUENCE {
ifRefIndex IfaceRefIndex,
ifRefifIndex InterfaceIndex,
ifRefifName DisplayString,
ifRefifDescr DisplayString,
ifRefifType IANAifType
}
ifRefIndex OBJECT-TYPE
SYNTAX IfaceRefIndex
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A unique value, greater than zero, for each interface.
The values are assigned contiguously starting from 1."
::= { ifRefEntry 1 }
ifRefifIndex OBJECT-TYPE
SYNTAX InterfaceIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The interface index corresponding to the value of ifIndex in
the Internet Standard MIB."
::= { ifRefEntry 2 }
ifRefifName OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Name of the interface"
::= { ifRefEntry 3 }
ifRefifDescr OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Description to the interface"
::= { ifRefEntry 4 }
ifRefifType OBJECT-TYPE
SYNTAX IANAifType
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The IANAifType of the interface"
::= { ifRefEntry 5 }
-- ---------------------------------------------------------- --
-- Conformance Information
-- ---------------------------------------------------------- --
wmoInterfaceGroups OBJECT IDENTIFIER ::= { wmoInterfaceConformance 1 }
wmoInterfaceCompliances OBJECT IDENTIFIER ::= { wmoInterfaceConformance 2 }
-- ---------------------------------------------------------- --
-- Units of conformance
-- ---------------------------------------------------------- --
wmoInterfaceGroup OBJECT-GROUP
OBJECTS {
ifRefifIndex,
ifRefifName,
ifRefifDescr,
ifRefifType
}
STATUS current
DESCRIPTION
"The wmoInterfaceGroup"
::= { wmoInterfaceGroups 1 }
-- ---------------------------------------------------------- --
-- Compliance statements
-- ---------------------------------------------------------- --
wmoInterfaceCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement"
MODULE
MANDATORY-GROUPS {
wmoInterfaceGroup
}
::= { wmoInterfaceCompliances 1 }
END

View File

@@ -0,0 +1,68 @@
WESTERMO-OID-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, MODULE-IDENTITY
FROM SNMPv2-SMI;
westermo MODULE-IDENTITY
LAST-UPDATED "201010200000Z"
ORGANIZATION "Westermo Teleindustri AB"
CONTACT-INFO
"Westermo Teleindustri AB
640 40 Stora Sundby
Sweden
registry@westermo.se"
DESCRIPTION
"This MIB module defines the top objects of the Westermo private MIB."
REVISION "201010200000Z"
DESCRIPTION
"Defined OID for the Westermo i-line series of switches, within the
products' branch."
REVISION "200905280000Z"
DESCRIPTION
"This MIB module (WESTERMO-OID-MIB) is now used also by the
private MIB of 'traditional' (non-WeOS) Westermo Lynx/Viper
switches. That is, for (non-WeOS) Lynx firmware version 3.17
and later, the Lynx Private MIB is split into two modules; the
top module (WESTERMO-OID-MIB) and a Lynx specific MIB module
(WESTERMO-LYNX-MIB).
Please see the Lynx Release Notes for information on MIB file
updates."
REVISION "200905180000Z"
DESCRIPTION
"First WeOS revision. Used by WESTERMO-WEOS-MIB from WeOS version 4.0.0 and
later. Please see the WeOS Release Notes for information on MIB file
updates."
::= { enterprises 16177 }
--
-- Main branches
--
products OBJECT IDENTIFIER ::= { westermo 1 }
common OBJECT IDENTIFIER ::= { westermo 2 }
--
-- Branches under the products node
-- * The 'lynx' and 'mrd' branches are defined in their respective
-- product specific mib file.
-- * The 'i-line' branch is defined here, and is used by all product
-- specific mib files for in the i-line series of switches
--
-- lynx OBJECT IDENTIFIER ::= { products 2 }
-- mrd OBJECT IDENTIFIER ::= { products 200 }
i-line OBJECT IDENTIFIER ::= { products 300 }
--
-- Branches under the common node (defined in branch specific files)
--
-- weos OBJECT IDENTIFIER ::= { common 1 }
END

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
WESTERMO-WEOS-TECHPREVIEW-MIB DEFINITIONS ::= BEGIN
IMPORTS
NOTIFICATION-TYPE
FROM SNMPv2-SMI
otherNotificationPrefix
FROM WESTERMO-WEOS-MIB;
-- -------------------------------------------------------------
-- Notification group
-- -------------------------------------------------------------
-- -------------------------------------------------------------
-- Notification: Other
-- -------------------------------------------------------------
remoteTriggerSet NOTIFICATION-TYPE
OBJECTS { remoteTriggerStatus }
STATUS current
DESCRIPTION
"Notification associated with Remote trigger state."
::= { otherNotificationPrefix 1 }
remoteTriggerTimeout NOTIFICATION-TYPE
OBJECTS { remoteTriggerStatus }
STATUS current
DESCRIPTION
"Notification associated with Remote triggert state."
::= { otherNotificationPrefix 2 }
END