------------------------------------------------------------------------------
--
--  File         : HMIT-SW-PORT-STORM-MIB2.mib
--  Description  :
--  Version      :
--  Copyright    : Copyright ? 2019 Belden Singapore Pte Ltd., All rights reserved. --
-- $Id:
--
------------------------------------------------------------------------------

------------------------------------------------------------------------------

HMIT-SW-PORT-STORM-MIB2 DEFINITIONS ::= BEGIN

IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE, Integer32, Unsigned32, IpAddress, Counter64
                FROM SNMPv2-SMI
        RowStatus, DisplayString, PhysAddress, MacAddress
                FROM SNMPv2-TC
		hmITSwPortMIB, hmITSwPortmgrMIB
				FROM HMIT-SW-PORT-MGR-MIB;

hmITStormTable    OBJECT-TYPE
    SYNTAX  SEQUENCE OF  HmITStormEntry
    MAX-ACCESS  not-accessible
    STATUS  current
    DESCRIPTION
            "The configuration table for storm control
            of the ports on the switch."
    ::= {hmITSwPortmgrMIB 3}

hmITStormEntry    OBJECT-TYPE
    SYNTAX  HmITStormEntry
    MAX-ACCESS  not-accessible
    STATUS  current
    DESCRIPTION
            "The configuration information for storm control
            of the port on the switch."
    INDEX   { hmITPortId, hmITStormControlPktType }
    ::= {hmITStormTable 1}

HmITStormEntry ::=
SEQUENCE {
    hmITPortId                INTEGER,
    hmITStormControlPktType   INTEGER,
    hmITStormControlLmtType   INTEGER,
    hmITStormControlParam     INTEGER,
    hmITStormRowStatus        RowStatus
}

hmITPortId    OBJECT-TYPE
    SYNTAX  INTEGER (0..2147483647)
    MAX-ACCESS  read-only
    STATUS  current
    DESCRIPTION
            "The index of the port."
    ::= {hmITStormEntry 1}

hmITStormControlPktType   OBJECT-TYPE
    SYNTAX  INTEGER {
    	unicast(1),
    	broadcast(2),
    	multicast(3)
    }
    MAX-ACCESS  read-create
    STATUS  current
    DESCRIPTION
            "The packet type for storm control of the port,
            1 - unicast, 2 - broadcast, 3 - multicast,
            should be used with hmITStormControlLmtType"
    ::= {hmITStormEntry 2}

hmITStormControlLmtType   OBJECT-TYPE
    SYNTAX  INTEGER {
        none(4),
    	kbps(1),
    	pps(2),
    	percent(3)
    }
    MAX-ACCESS  read-create
    STATUS  current
    DESCRIPTION
            "The limit type for storm control of the port,
            4 - no limit, 1 - limit by kbps, 2 - limit by pps, 3 - limit by percent.
            When limit, should be used with hmITStormControlPktType
            and hmITStormControlParam. When no limit,
            should be used with hmITStormControlPktType"
    ::= {hmITStormEntry 3}

hmITStormControlParam OBJECT-TYPE
    SYNTAX  INTEGER (0..2147483647)
    MAX-ACCESS  read-create
    STATUS  current
    DESCRIPTION
            "The limit parameter for storm control of the port,
            its range from 64 to 8000000 when limited by kbps,
            or from 0 to 2000000 when limited by pps, should be used
            with hmITStormControlPktType and hmITStormControlLmtType."
    ::= {hmITStormEntry 4}

hmITStormRowStatus    OBJECT-TYPE
    SYNTAX  RowStatus
    MAX-ACCESS  read-create
    STATUS  current
    DESCRIPTION
            "No longer in use."
    ::= {hmITStormEntry 10}

END
