From 7c8c2430ad8bcc2f8479b656a99b81621fc3bb55 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 1 Apr 2016 12:15:22 +0200 Subject: [PATCH] Add binding v2 model for testing characters in identifier names Just a Yang file, no actual unit test. Change-Id: I548179ae3d60dd3a73a19847a9e889f554c7c942 Signed-off-by: Vratko Polak --- .../test/resources/odl-test-identifiers.yang | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang diff --git a/binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang new file mode 100644 index 0000000000..1a2ccb30e9 --- /dev/null +++ b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang @@ -0,0 +1,52 @@ +module odl-test-identifiers { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:identifiers"; + prefix "oti"; + + description + "Testing allowed identifier names. + see http://tools.ietf.org/html/rfc6020#section-6.2"; + + revision "2016-03-31" { + description + "Initial revision, for ODL Boron."; + } + + container items { + list item { + description + "Each identifier starts with an uppercase or lowercase ASCII + letter or an underscore character, followed by zero or more ASCII + letters, digits, underscore characters, hyphens, and dots."; + key "foo Foo FOO fOO foo0 foo_ foo- foo. _foo" + leaf foo { + type string; + } + leaf Foo { + type string; + } + leaf FOO { + type string; + } + leaf fOO { + type string; + } + leaf foo0 { + type string; + } + leaf foo_ { + type string; + } + leaf foo- { + type string; + } + leaf foo. { + type string; + } + leaf _foo { + type string; + } + } + } + +} -- 2.36.6