diff options
Diffstat (limited to 'lib/northbound_cli.c')
| -rw-r--r-- | lib/northbound_cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index 07e8c9dff9..61919f0229 100644 --- a/lib/northbound_cli.c +++ b/lib/northbound_cli.c @@ -424,6 +424,10 @@ static struct lyd_node *ly_iter_next_up(const struct lyd_node *elem) /* Prepare the configuration for display. */ void nb_cli_show_config_prepare(struct nb_config *config, bool with_defaults) { + /* Nothing to do for daemons that don't implement any YANG module. */ + if (config->dnode == NULL) + return; + lyd_schema_sort(config->dnode, 1); /* |
