I recently installed the basic version of confd on my Ubuntu system.
I get the following error message when I tried generating the header file as suggested in the Man page example. What is the reason for this error? Is the basic version of confd limitted to compiling only YANG files to schema files? Same issue when I tried generating mib file from YANG data.
user@newbunty:~$ confdc -c --emit-h blaster.h system.fxs
confdc: --compile <file> Can only compile .yang, .yin, .cli, and .mib files
Try 'confdc -h' for help and more information
user@newbunty:~$ confdc -c --emit-mib sys.mib system.fxs
confdc: --compile <file> Can only compile .yang, .yin, .cli, and .mib files
Try 'confdc -h' for help and more information
user@newbunty:~$
I am still not able to emit the mib from the example. I even tried the command in the folder where all fxs files are including ietf-inet-types.fxs.
Regards
user@newbunty:~/yangd$ confdc --emit-mib system.mib system.fxs
system.fxs: ‘urn:ietf:params:xml:ns:yang:ietf-inet-types’: This namespace must be available in one of the referenced fxs files (-f option).
It will then complain that it needs OID for SNMP mib, which is expectable. As we don’t have extra annotation file with OIDs defined for this trivial case, we must use --oid param to add an explicit OID for items inside system.yang. Thus, finally our command: