Fix invalid augmentations 43/85243/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 19 Oct 2019 12:43:00 +0000 (14:43 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 19 Oct 2019 14:57:13 +0000 (14:57 +0000)
commit9803d0a5e7b214ac90191f4d41fb98d26643a168
treee18d85cfefe7b9c53352d76992995105882c88c4
parentb6b5ca2897c00acb04367d009fa698235ba6de06
Fix invalid augmentations

choice/case structures are collapsed to their parent data tree
node, hence it is invalid to define (in same namespace) the equivalent
of:

container {
  leaf foo { type string; }
  choice some {
    case foo {
      leaf foo { type string; }
    }
  }
}

Fix up the testing model.

Change-Id: I1e3ef8f9b38016e0290221f22b8233fba176bc0e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4e4bb47c41728c15220203602068a5754efbd62f)
binding/mdsal-binding-test-model/src/main/yang/opendaylight-mdsal-augment-test.yang