From 60e463b17b05458c1f9a7fd72f9e99d71124eedf Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Tue, 17 Jan 2017 13:30:50 +0100 Subject: HONEYCOMB-302: add support for nested augmentations Change-Id: I60f1b3f79ddb578d6fca157fe5736de40b30623e Signed-off-by: Marek Gradzki (cherry picked from commit 78886acd688284585c2e219e18d7289f49cc8a45) --- infra/it/test-model/src/main/yang/hc-aug-test.yang | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 infra/it/test-model/src/main/yang/hc-aug-test.yang (limited to 'infra/it/test-model') diff --git a/infra/it/test-model/src/main/yang/hc-aug-test.yang b/infra/it/test-model/src/main/yang/hc-aug-test.yang new file mode 100644 index 000000000..8a83ab56f --- /dev/null +++ b/infra/it/test-model/src/main/yang/hc-aug-test.yang @@ -0,0 +1,63 @@ +module hc-aug-test { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:hc:aug:test"; + prefix "hcat"; + + revision "2017-01--9" { + description "Test model for aumentations of augmentations (https://jira.fd.io/browse/HONEYCOMB-302)"; + } + + import yang-ext { + prefix "ext"; + } + + container aug-target { + leaf some-leaf { + type string; + } + } + + augment "/aug-target" { + ext:augment-identifier "from-augment-augment"; + container from-augment { + leaf some-leaf { + type string; + } + } + } + + augment "/aug-target" { + ext:augment-identifier "simple-augment"; + leaf simple-augment-leaf { + type string; + } + } + + augment "/aug-target/from-augment" { + ext:augment-identifier "simple-nested-augment"; + leaf simple-nested-augment-leaf { + type string; + } + } + + augment "/aug-target/from-augment" { + ext:augment-identifier "from-augment2-augment"; + container from-augment-2 { + leaf new-leaf { + type string; + } + } + } + + augment "/aug-target/from-augment" { + ext:augment-identifier "from-augment-list-augment"; + list from-augment-entry { + key some-leaf; + + leaf some-leaf { + type string; + } + } + } + +} -- cgit 1.2.3-korg