SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation
This commit is contained in:
parent
1b66dfe1b9
commit
d9cdd669d2
2 changed files with 12 additions and 4 deletions
|
|
@ -127,7 +127,8 @@ static const map_str2int snmp_orig_map[] = {
|
|||
{"binary", ASN_OCTET_STR}, // 4
|
||||
{"timeticks", ASN_TIMETICKS}, // 0x43 / 67
|
||||
{"timestamp", ASN_TIMETICKS}, // 0x43 / 67
|
||||
{"InetAddress", ASN_IPADDRESS}, // 0x40 / 64
|
||||
{"InetAddress", ASN_IPADDRESS}, // 0x40 / 64 (Dont see this being used)
|
||||
{"ipv4-address", ASN_IPADDRESS}, // 0x40 / 64 (This is used instead)
|
||||
{"phys-address", CLIXON_ASN_PHYS_ADDR}, /* Clixon extended string type */
|
||||
{"SnmpAdminString", CLIXON_ASN_ADMIN_STRING}, /* cf extension display-type 255T? */
|
||||
{NULL, -1}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ CLIXON-TYPES-MIB DEFINITIONS ::= BEGIN
|
|||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
|
||||
TimeTicks, Counter32, Gauge32, Counter64,
|
||||
NOTIFICATION-TYPE FROM SNMPv2-SMI
|
||||
NOTIFICATION-TYPE, IpAddress FROM SNMPv2-SMI
|
||||
SnmpAdminString FROM SNMP-FRAMEWORK-MIB
|
||||
netSnmp FROM NET-SNMP-MIB
|
||||
TruthValue, TimeStamp,
|
||||
|
|
@ -204,7 +204,6 @@ ifCounterDiscontinuityTime OBJECT-TYPE
|
|||
::= { clixonExampleScalars 11 }
|
||||
ifStackStatus OBJECT-TYPE
|
||||
SYNTAX RowStatus
|
||||
-- MAX-ACCESS read-create
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
|
|
@ -217,6 +216,14 @@ ifStackStatus OBJECT-TYPE
|
|||
support write-access for any type of interface."
|
||||
::= { clixonExampleScalars 12 }
|
||||
|
||||
ifIpAddr OBJECT-TYPE
|
||||
SYNTAX IpAddress
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"IP address example."
|
||||
::= { clixonExampleScalars 13 }
|
||||
|
||||
--
|
||||
-- Example Tables
|
||||
--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue