SECURITYCODE-CONTINENT-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
    Counter64, Unsigned32, Integer32, IpAddress
	FROM SNMPv2-SMI
    TEXTUAL-CONVENTION, RowStatus
	FROM SNMPv2-TC
    securitycode
	FROM SECURITYCODE-MIB;

securitycodeContinent MODULE-IDENTITY
    LAST-UPDATED "201901010000Z"
    ORGANIZATION "Securitycode"
    CONTACT-INFO
	    "		Security Code

	     Postal:	N/A

	     Fax:	N/A

	     E-Mail:	*@*"
    DESCRIPTION
	    "The Securitycode MIB for Continent."
    REVISION     "201901010000Z"
    DESCRIPTION
	    "Initial revision."
    ::= { securitycode 10 }

securitycodeContTraps OBJECT IDENTIFIER ::= { securitycodeContinent 1 }
securitycodeContObjects	OBJECT IDENTIFIER ::= { securitycodeContinent 2 }
contObjects OBJECT IDENTIFIER ::= { securitycodeContObjects 1 }

contWANChannels OBJECT-TYPE
    SYNTAX SEQUENCE OF ContWANChannelsEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
    	"A sequence of wan channels"
    ::= { securitycodeContObjects 3 }

ContWANChannelsEntry ::= SEQUENCE {
    contWANChannelIndex Unsigned32,
    contWANChannelId Unsigned32,
    contWANChannelGw IpAddress,
    contWANChannelOffline Unsigned32,
    contWANChannelFailureTime Unsigned32,
    contWANChannelOfflineTime Unsigned32,
    contWANChannelStatus OCTET STRING
}

contWANChannelsEntry OBJECT-TYPE
    SYNTAX ContWANChannelsEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
	"Status for wan channel"
    INDEX { contWANChannelIndex }
    ::= { contWANChannels 1}

contWANChannelIndex OBJECT-TYPE
    SYNTAX Unsigned32 (1..4294967295)
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
	"Reference Index for each WAN channel"
    ::= { contWANChannelsEntry 1 }

contWANChannelId OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"WAN channel identifier"
    ::= { contWANChannelsEntry 2 }

contWANChannelGw OBJECT-TYPE
    SYNTAX IpAddress
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The gateway for the wan channel"
    ::= { contWANChannelsEntry 3 }

contWANChannelOffline OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The offline flag of the wan channel"
    ::= { contWANChannelsEntry 4 }

contWANChannelFailureTime OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The failure time for the wan channel"
    ::= { contWANChannelsEntry 5 }

contWANChannelOfflineTime OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The offline time for the wan channel"
    ::= { contWANChannelsEntry 6 }

contWANChannelStatus OBJECT-TYPE
    SYNTAX OCTET STRING
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The status of the wan channel"
    ::= { contWANChannelsEntry 7 }

trapWANChannels NOTIFICATION-TYPE
    OBJECTS     { contWANChannelStatus }
    STATUS      current
    DESCRIPTION
	"The trapWANChannels trap indicates
	offline status of wan channels"
    ::= { securitycodeContTraps 1 }

trapRiseUpWANChannel NOTIFICATION-TYPE
    OBJECTS     { contWANChannelStatus }
    STATUS      current
    DESCRIPTION
	"The trapRiseUpWANChannel trap indicates
	the wan channel to rise"
    ::= { securitycodeContTraps 2 }

contGateConfGeneration OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS	read-only
    STATUS	current
    DESCRIPTION
	"Generation number for the gate configuration"
    ::= { contObjects 1 }

contGateConfChecksum OBJECT-TYPE
    SYNTAX OCTET STRING
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The checksum for the gate configuration"
    ::= { contObjects 2 }

contPfRulesChecksum OBJECT-TYPE
    SYNTAX OCTET STRING
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"The checksum for pf rules"
    ::= { contObjects 3 }

contCryptor OBJECT-TYPE
    SYNTAX      SEQUENCE OF ContLink
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	"The information about the links
	of Crypto Gate"
    ::= { securitycodeContObjects 2 }

ContLink ::= SEQUENCE {
    linkIndex Unsigned32,
    linkId Unsigned32,
    linkPeerId Unsigned32,
    linkEncap Unsigned32,
    linkKeyNumber Unsigned32
}

contLink OBJECT-TYPE
    SYNTAX ContLink
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
	"Link of Crypto Gate"
    INDEX { linkIndex }
    ::= { contCryptor 1 }

linkIndex OBJECT-TYPE
    SYNTAX Unsigned32 (1..4294967295)
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
	"Reference Index for each Link"
    ::= { contLink 1 }

linkId OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Link identifier"
    ::= { contLink 2 }

linkPeerId OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Link peer identifier"
    ::= { contLink 3 }

linkEncap OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Link encapsulation"
    ::= { contLink 4 }

linkKeyNumber OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Link key number"
    ::= { contLink 5 }

contReserve OBJECT IDENTIFIER ::= { securitycodeContObjects 4 }

contReserveState OBJECT IDENTIFIER ::= { contReserve 1 }

contReservStateOn OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"On state"
    ::= { contReserveState 1 }

contReservStateRole OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Role state"
    ::= { contReserveState 2 }

contAserv OBJECT IDENTIFIER ::= { securitycodeContObjects 5 }

contClientsConnectionStat OBJECT IDENTIFIER ::= { contAserv 1 }

contUdpClientCount OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"UDP clients"
    ::= { contClientsConnectionStat 1 }

contTcpClientCount OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"TCP clients"
    ::= { contClientsConnectionStat 2 }

contClientsCount OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Clients"
    ::= { contClientsConnectionStat 3 }

contCryptorChannels OBJECT-TYPE
    SYNTAX      SEQUENCE OF CryptorChannelsEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	"The status of the crypto channel"
    ::= { securitycodeContObjects 6 }

cryptorChannelsEntry OBJECT-TYPE
    SYNTAX       CryptorChannelsEntry
    MAX-ACCESS   not-accessible
    STATUS       current
    DESCRIPTION  "Entry in Grandchild table"
    INDEX { cryptorChannelIndex }
    ::= { contCryptorChannels 1 }

CryptorChannelsEntry ::= SEQUENCE {
    cryptorChannelIndex Unsigned32,
    cryptorLinkId Unsigned32,
    cryptorChannelLastIn Unsigned32,
    cryptorChannelBadLastIn Unsigned32,
    cryptorActive Unsigned32
}

cryptorChannelIndex OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
	"Reference Index for each channel"
    ::= { cryptorChannelsEntry 1 }

cryptorLinkId OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Link identifier"
    ::= { cryptorChannelsEntry 2 }

cryptorChannelLastIn OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Channel last in info"
    ::= { cryptorChannelsEntry 3 }

cryptorChannelBadLastIn OBJECT-TYPE
    SYNTAX Unsigned32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Channel bad last in info"
    ::= { cryptorChannelsEntry 4 }

cryptorActive OBJECT-TYPE
    SYNTAX Unsigned32 (0..1)
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
	"Channel state"
    ::= { cryptorChannelsEntry 5 }

END
