How to know the named type of NavuLeaf

Hi,

In Java API - how I can check which specific named type (typedef statement in YANG) is defined for specific NavuLeaf?

Thnaks

The typedef information is not included in the schema information. But you can use the tailf:meta-data extension to for example do something like this (using the 1-2-3-start-query-model example):

container dhcp {
    ...
  typedef loglevel {
    type enumeration {
        enum kern;
        enum mail;
        enum local7;
    }
  }
  ...
    leaf logFacility {
      tailf:meta-data "typedef loglevel" {
        tailf:meta-value "type enumeration";
      }
      type loglevel;
      default local7;
    }    
    ...

tailf:meta-data c-example: