I am looking to provide custom user code for ‘display-when’ clause and came across following in UG.
int maapi_do_display(int sock, int thandle, const char *fmtpath, ...);
If the data model uses the YANG when or tailf:display-when statement, this function can be used
to determine if the item given by fmtpath, ... should be displayed or not
But I am not sure how to hook this up with an yang.