func (o *OspfItem) StateStr() string {
	if o.OspfIfState > 0 {
		return IfState[o.OspfIfState-1]
	}
	return "invalid value"
}
StateStr parse meaningful value
package snmp
import g "github.com/soniah/gosnmp"
const (
	OspfIfIPAddressOid = ".1.3.6.1.2.1.14.7.1.1"
	OspfIfAdminStatOid = ".1.3.6.1.2.1.14.7.1.5"
	OspfIfStateOid     = ".1.3.6.1.2.1.14.7.1.12"
	OspfIfStatusOid    = ".1.3.6.1.2.1.14.7.1.17"
)
const (
	OspfNbrIPAddrOid = ".1.3.6.1.2.1.14.10.1.1"
	OspfNbrRtrIDOid  = ".1.3.6.1.2.1.14.10.1.3"
	OspfNbrStateOid  = ".1.3.6.1.2.1.14.10.1.6"
)
var (
	IfState      = []string{"down (1)", "loopback (2)", "waiting (3)", "pointToPoint (4)", "designatedRouter (5)", "backupDesignatedRouter (6)", "otherDesignatedRouter (7)"}
	IfAdminState = []string{"enabled (1)", "disabled (2)"}
	NbrState     = []string{"down (1)", "attempt (2)", "init (3)", "twoWay (4)", "exchangeStart (5)", "exchange (6)", "loading (7)", "full (8)"}
)
type OspfItem struct {
	OspfIfIPAddress string
	OspfIfAdminStat int
	OspfIfState     int
	OspfIfStatus    int
}
type OspfNbrItem struct {
	NbrIPAddress string
	NbrRtrID     string
	NbrState     int
}