src/confd: harmonize ietf-system, rename infix-system.yang augment

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-05-15 16:05:08 +02:00
parent f5866ee3d4
commit 480d870587
3 changed files with 24 additions and 26 deletions
-2
View File
@@ -2,9 +2,7 @@
#include <fnmatch.h>
#include <stdbool.h>
#include <jansson.h>
#include <arpa/inet.h>
#include <net/if.h>
+23 -23
View File
@@ -1,20 +1,36 @@
/* SPDX-License-Identifier: BSD-3-Clause */
#include <assert.h>
#include <ctype.h>
#include <pwd.h>
#include <sys/utsname.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include "core.h"
#include "lyx.h"
#include "srx_module.h"
#include "srx_val.h"
#include <ctype.h>
#include <sys/utsname.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <pwd.h>
#include <assert.h>
#define CLOCK_PATH_ "/ietf-system:system-state/clock"
#define PLATFORM_PATH_ "/ietf-system:system-state/platform"
static const char *sysfeat[] = {
"authentication",
"local-users",
"ntp",
"ntp-udp-port",
"timezone-name",
NULL
};
static const struct srx_module_requirement ietf_system_reqs[] = {
{ .dir = YANG_PATH_, .name = "ietf-system", .rev = "2014-08-06", .features = sysfeat },
{ .dir = YANG_PATH_, .name = "infix-system", .rev = "2023-04-11" },
{ NULL }
};
struct sr_change {
sr_change_oper_t op;
sr_val_t *old;
@@ -904,22 +920,6 @@ err:
return SR_ERR_OK;
}
static const char *sysfeat[] = {
"authentication",
"local-users",
"ntp",
"ntp-udp-port",
"timezone-name",
NULL
};
static const struct srx_module_requirement ietf_system_reqs[] = {
{ .dir = YANG_PATH_, .name = "ietf-system", .rev = "2014-08-06", .features = sysfeat },
{ .dir = YANG_PATH_, .name = "infix-system", .rev = "2014-08-06" },
{ NULL }
};
int ietf_system_init(struct confd *confd)
{
int rc;
@@ -7,7 +7,7 @@ module infix-system {
prefix "sys";
}
revision 2014-08-06 {
revision 2023-04-11 {
description "Initial revision.";
}