From 05615c2ee592fee67e947951fc4760644797e67a Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 9 Jun 2022 11:12:10 +0200 Subject: [PATCH] SNMP: Translate AutonomousType to oid --- apps/snmp/snmp_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/snmp/snmp_lib.c b/apps/snmp/snmp_lib.c index f4fda344..22756e10 100644 --- a/apps/snmp/snmp_lib.c +++ b/apps/snmp/snmp_lib.c @@ -242,7 +242,8 @@ type_yang2asn1(yang_stmt *ys, if (strcmp(origtype, "counter32")==0){ 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; } else if (strcmp(origtype, "binary")==0){