1 module deviate-replace-test-module {
3 namespace "urn:ietf:params:xml:ns:yang:deviate-replace-test-module";
6 import deviation-host-test-module {
10 import _3gpp-common-yang-extensions {
15 "Copyright (C) 2024 Ericsson
16 Modifications Copyright (C) 2024 OpenInfra Foundation Europe";
18 revision "2019-10-09" {
19 description "initial revision";
22 // ---------------- These deviations are just fine ---------------------
24 deviation /host:cont2/host:leaf21 {
32 deviation /host:list11/host:leaflist113 {
36 yext3gpp:initial-value 70;
40 deviation /host:list21 {
47 deviation /host:cont5/host:leaf51 {
55 // ---------------- These deviations try to replace things that don't exist in the host model ---------------------
57 deviation /host:cont1/host:leaf11 {
63 // ---------------- Various other findings ---------------------
65 deviation /host:cont4 {
66 deviate replace; // Missing substatements
69 deviation /host:list11/host:leaf112 {
71 type string; // Should throw a finding as data type has changed.
75 deviation /host:list22 {
77 min-elements 6; // shrinking boundary
78 max-elements 10; // same
82 deviation /host:list11/host:leaf114 {
84 default 23; // target is a leaf so only a single default can occur.