mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
src/confd: add support for enabling yang features
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -249,11 +249,17 @@ int sr_plugin_init_cb(sr_session_ctx_t *sess, void **priv)
|
||||
{
|
||||
sr_subscription_ctx_t *sub = NULL;
|
||||
sr_conn_ctx_t *conn;
|
||||
char *features[] = {
|
||||
"ntp",
|
||||
"ntp-udp-port",
|
||||
"timezone-name",
|
||||
NULL
|
||||
};
|
||||
int rc;
|
||||
|
||||
openlog("sysrepo ietf-system plugin", LOG_USER, 0);
|
||||
conn = sr_session_get_connection(sess);
|
||||
sr_install_module(conn, YANG_PATH_"ietf-system.yang", NULL, NULL);
|
||||
sr_install_module(conn, YANG_PATH_"ietf-system.yang", NULL, features);
|
||||
|
||||
rc = sr_oper_get_subscribe(sess, "ietf-system", CLOCK_PATH_,
|
||||
clock_cb, NULL, SR_SUBSCR_DEFAULT, &sub);
|
||||
|
||||
Reference in New Issue
Block a user