SNMP: Translate AutonomousType to oid

This commit is contained in:
Olof hagsand 2022-06-09 11:12:10 +02:00
parent e3857396c7
commit 05615c2ee5

View file

@ -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){