From 22b2ed51f56c502fa2b9897d46555b4b68c4d60a Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Thu, 9 Jun 2022 20:59:55 +0200 Subject: [PATCH] Added types DateAndTime and UUIDorZero --- apps/snmp/snmp_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/snmp/snmp_lib.c b/apps/snmp/snmp_lib.c index 22756e10..c4d68d41 100644 --- a/apps/snmp/snmp_lib.c +++ b/apps/snmp/snmp_lib.c @@ -252,6 +252,12 @@ type_yang2asn1(yang_stmt *ys, else if (strcmp(origtype, "timeticks")==0){ at = ASN_TIMETICKS; } + else if (strcmp(origtype, "DateAndTime")==0) { + at = ASN_OCTET_STR; + } + else if (strcmp(origtype, "UUIDorZero")==0) { + at = ASN_OCTET_STR; + } else if (strcmp(origtype, "timestamp")==0){ at = ASN_TIMETICKS; }