Skip to content

Commit dd7b349

Browse files
committed
main BUGFIX subscription order may matter
Fixes #1742
1 parent a885f01 commit dd7b349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,9 +1057,10 @@ server_data_subscribe(void)
10571057
sr_module_change_set_order(np2srv.sr_conn, "ietf-keystore", SR_DS_RUNNING, 5);
10581058
sr_module_change_set_order(np2srv.sr_conn, "ietf-truststore", SR_DS_RUNNING, 5);
10591059

1060-
SR_CONFIG_SUBSCR("ietf-netconf-server", NULL, np2srv_libnetconf2_config_cb);
1060+
/* create keys and certs subscriptions before server configuration, which may already reference them */
10611061
SR_CONFIG_SUBSCR("ietf-keystore", NULL, np2srv_libnetconf2_config_cb);
10621062
SR_CONFIG_SUBSCR("ietf-truststore", NULL, np2srv_libnetconf2_config_cb);
1063+
SR_CONFIG_SUBSCR("ietf-netconf-server", NULL, np2srv_libnetconf2_config_cb);
10631064
SR_CONFIG_SUBSCR("libnetconf2-netconf-server", NULL, np2srv_libnetconf2_config_cb);
10641065

10651066
/*

0 commit comments

Comments
 (0)