SNMP frontend: Reworked types for GET types translation
YANG enum type, split up enum to int into two functions
This commit is contained in:
parent
31fea9e6c8
commit
aa95ead1cc
6 changed files with 252 additions and 72 deletions
|
|
@ -205,8 +205,8 @@ mib_yang_leaf(clicon_handle h,
|
|||
}
|
||||
if (yang_extension_value(ys, "max-access", IETF_YANG_SMIV2_NS, NULL, &modes_str) < 0)
|
||||
goto done;
|
||||
#if 0 /* Sanity check of types */
|
||||
if (yang2snmp_types(ys, NULL, NULL) < 0)
|
||||
#if 1 /* Sanity check of types */
|
||||
if (type_yang2asn1(ys, NULL) < 0)
|
||||
goto done;
|
||||
#endif
|
||||
/* Get modes (access) read-only, read-write, not-accessible, oaccessible-for-notify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue