src/confd: drop shortname yang module aliases and load with version

Drop the shortname yang aliases, installed they become copies of
their versioned counterpart, which is not the intention, but also,
no other yang consumer does this.

We'd like to use ly_ctx_load_module() directly, or a slim sysrepo
wrapper of the same, but no such API (load by yang module *name*
with optional revision) exists currently.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-29 13:00:10 +02:00
parent d66dc16600
commit 3cce1e6427
10 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ 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[] = {
const char *features[] = {
"ntp",
"ntp-udp-port",
"timezone-name",
@@ -259,7 +259,7 @@ int sr_plugin_init_cb(sr_session_ctx_t *sess, void **priv)
openlog("sysrepo ietf-system plugin", LOG_USER, 0);
conn = sr_session_get_connection(sess);
sr_install_module(conn, YANG_PATH_"ietf-system.yang", NULL, features);
sr_install_module(conn, YANG_PATH_"ietf-system@2014-08-06.yang", NULL, features);
rc = sr_oper_get_subscribe(sess, "ietf-system", CLOCK_PATH_,
clock_cb, NULL, SR_SUBSCR_DEFAULT, &sub);
-1
View File
@@ -1 +0,0 @@
iana-crypt-hash@2014-08-06.yang
-1
View File
@@ -1 +0,0 @@
iana-if-type@2017-01-19.yang
-1
View File
@@ -1 +0,0 @@
ietf-datastores@2018-02-14.yang
-1
View File
@@ -1 +0,0 @@
ietf-inet-types@2013-07-15.yang
-1
View File
@@ -1 +0,0 @@
ietf-interfaces@2018-02-20.yang
-1
View File
@@ -1 +0,0 @@
ietf-ip@2018-02-22.yang
-1
View File
@@ -1 +0,0 @@
ietf-netconf-acm@2018-02-14.yang
-1
View File
@@ -1 +0,0 @@
ietf-system@2014-08-06.yang
-1
View File
@@ -1 +0,0 @@
ietf-yang-types@2013-07-15.yang