TEXTUAL-CONVENTION

Zheng Qiang zhengqiang____huawei.com
Fri May 16 04:23:46 CEST 2003


Hello Frank,

We define a textual-convention in our mib -- "ObjectName"
But the code generated via AgenPro2 cannot make the correct inheritance.
The leaf is inherited from "MibLeaf", instead of "ObjectName" we expected. 

  ObjectName ::= TEXTUAL-CONVENTION
   DISPLAY-HINT 
    "1d-1d-1d"
   STATUS current
   DESCRIPTION 
    "...Some desc..."
   SYNTAX OCTET STRING (SIZE (3))

I check out the template file, how shall we modify it?

<h_code.vm>
##
## genSuperClassName
##
#macro( genSuperClassName $leaf )
#if ( $agenUtils.isRowStatus($leaf) )
#if ( $agenUtils.isDefined($leaf.getPrintableOid(), "simulation") )
SimRowStatus
#else
snmpRowStatus
#end
#elseif ( $agenUtils.isDisplayString($leaf) )
SnmpDisplayString
#elseif ( $agenUtils.isStorageType($leaf) )
StorageType
#elseif ( $agenUtils.isDefined($leaf.getPrintableOid(), "simulation") )
SimMibLeaf
#elseif ( $agenUtils.isDateAndTime($leaf) )
DateAndTime
#else
#if ($agenUtils.hasProperty($leaf.printableOid, "leafSuperClass"))
$agenUtils.getProperty($leaf.printableOid, "leafSuperClass")
#else
MibLeaf


Best regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20030516/4ed09652/attachment.htm 


More information about the AGENTPP mailing list