Tailf yang error compilation

Hi,

we get the following compilation error while compiling the tailf’s yang files.
can you suggest how to resolve that?
recompiling the yang files doesn’t help.

regards,
Inbal

Use tailf:code-name on the conflicting enums, bits, or nodes
to avoid the conflict.
error: cannot compile submodules; compile the module instead
'tailf-cli-extensions.fxs': tailf-cli-extensions.fxs: Must be recompiled!

=ERROR REPORT==== 11-Dec-2016::15:16:55 ===

confd_loading:718: strerror() cannot handle error:
{recompile_needed,"tailf-cli-extensions.fxs"}
[{confd_loading,strerror,1,[{file,"confd_loading.erl"},{line,718}]},
{confd_emit_tools,mk_h_file,2,[{file,"confd_emit_tools.erl"},{line,170}]},
{confdc,run,0,[{file,"confdc.erl"},{line,48}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]
error: cannot compile submodules; compile the module instead
'tailf-meta-extensions.fxs': tailf-meta-extensions.fxs: Must be recompiled!

=ERROR REPORT==== 11-Dec-2016::15:16:55 ===

confd_loading:718: strerror() cannot handle error:
{recompile_needed,"tailf-meta-extensions.fxs"}
[{confd_loading,strerror,1,[{file,"confd_loading.erl"},{line,718}]},
{confd_emit_tools,mk_h_file,2,[{file,"confd_emit_tools.erl"},{line,170}]},
{confdc,run,0,[{file,"confdc.erl"},{line,48}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]

Please, can you describe (ideally paste confdc command), how you compile the yang files?
Also which tailf yang files do you compile?

And maybe also say why you are trying to compile them? There is no reason to compile any of tailf-cli-extensions, tailf-meta-extensions, or tailf-common (the latter being the “main” module that has the others as submodules).

Hi,

we simply compile all yang models that we have.
If there is no reason to compile them, it is better and we won’t…

thanks
Inbal

ConfD ships with basically all relevant YANG modules pre-compiled, in the $CONFD_DIR/etc/confd directory - there may in some cases be reasons to recompile some of them, e.g. using the --export option to make them “invisible” to some/all northbound agents. But there is no reason to compile any additional modules found in $CONFD_DIR/src/confd/yang.