SNMP: Translate AutonomousType to oid
This commit is contained in:
parent
e3857396c7
commit
05615c2ee5
1 changed files with 2 additions and 1 deletions
|
|
@ -242,7 +242,8 @@ type_yang2asn1(yang_stmt *ys,
|
||||||
if (strcmp(origtype, "counter32")==0){
|
if (strcmp(origtype, "counter32")==0){
|
||||||
at = ASN_COUNTER;
|
at = ASN_COUNTER;
|
||||||
}
|
}
|
||||||
else if (strcmp(origtype, "object-identifier-128")==0){
|
else if (strcmp(origtype, "object-identifier-128") == 0 ||
|
||||||
|
strcmp(origtype, "AutonomousType") == 0){
|
||||||
at = ASN_OBJECT_ID;
|
at = ASN_OBJECT_ID;
|
||||||
}
|
}
|
||||||
else if (strcmp(origtype, "binary")==0){
|
else if (strcmp(origtype, "binary")==0){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue