From 5c4982e38874b22b6a1bb15dda6a41e29e765fdb Mon Sep 17 00:00:00 2001 From: Jon-Olov Vatn Date: Mon, 3 Jul 2023 12:36:12 +0200 Subject: [PATCH] Specify deviations for optional features (ietf-systems.yang) Declaring deviations for optional features for clarity regaring extent of support. New revision and file of infix-systems created, as earlier version was included in infix-2023.06 release. Please see infix-systems@2023-04-11 for history. Support and deviations has not been checked for the included 'sub-yang-module' infix-systems-software, thus there may be more updates to come. --- src/confd/sysrepo-bootstrap.sh | 2 +- src/confd/yang/infix-system@2023-07-04.yang | 47 +++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 src/confd/yang/infix-system@2023-07-04.yang diff --git a/src/confd/sysrepo-bootstrap.sh b/src/confd/sysrepo-bootstrap.sh index a0673043..d820de10 100755 --- a/src/confd/sysrepo-bootstrap.sh +++ b/src/confd/sysrepo-bootstrap.sh @@ -78,7 +78,7 @@ sysrepoctl -s $SEARCH \ -i infix-if-type@2023-06-09.yang -g wheel -p 0660 \ -i infix-interfaces@2023-06-05.yang -g wheel -p 0660 \ -e vlan-filtering \ - -i infix-system@2023-04-11.yang -g wheel -p 0660 \ + -i infix-system@2023-07-04.yang -g wheel -p 0660 \ -I "${INIT_DATA}" rc=$? diff --git a/src/confd/yang/infix-system@2023-07-04.yang b/src/confd/yang/infix-system@2023-07-04.yang new file mode 100644 index 00000000..7f894963 --- /dev/null +++ b/src/confd/yang/infix-system@2023-07-04.yang @@ -0,0 +1,47 @@ +module infix-system { + yang-version 1.1; + namespace "urn:infix:system:ns:yang:1.0"; + prefix infix-sys; + + import ietf-system { + prefix sys; + } + include infix-system-software; + + organization "KernelKit"; + contact "kernelkit@googlegroups.com"; + description "Infix augments and deviations to ietf-system."; + + revision 2023-07-04 { + description "Updating/adding deviation specifications: + - timezone-utc-offset (updated) + - radius (added) + - dns-resolver port (added)"; + reference "internal"; + } + + revision 2023-04-11 { + description "Initial revision."; + reference "internal"; + } + + augment "/sys:system" { + description "Augments to ietf-system not found in any other model."; + leaf motd { + type string; + description "Set the MotD (Message of the Day), shown after login"; + } + } + + deviation "/sys:system/sys:clock/sys:timezone/sys:timezone-utc-offset" { + deviate not-supported; + } + + deviation "/sys:system/sys:radius" { + deviate not-supported; + } + + deviation "/sys:system/sys:dns-resolver/sys:server/sys:transport/sys:udp-and-tcp/sys:udp-and-tcp/sys:port" { + deviate not-supported; + } +}