Yang Listener for BITS Data Type
Change-Id: I81e7f7e8de38ce20addd63548414a486b7e2ffb8
diff --git a/src/test/resources/BitTypeStatement.yang b/src/test/resources/BitTypeStatement.yang
new file mode 100644
index 0000000..9d13495
--- /dev/null
+++ b/src/test/resources/BitTypeStatement.yang
@@ -0,0 +1,12 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle;
+ bit auto-sense-speed;
+ bit Ten-Mb-only;
+ }
+ }
+}
diff --git a/src/test/resources/BitWithDuplicateName.yang b/src/test/resources/BitWithDuplicateName.yang
new file mode 100644
index 0000000..ed5cc32
--- /dev/null
+++ b/src/test/resources/BitWithDuplicateName.yang
@@ -0,0 +1,12 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle;
+ bit disable-nagle;
+ bit Ten-Mb-only;
+ }
+ }
+}
diff --git a/src/test/resources/EnumWithDuplicateName.yang b/src/test/resources/EnumWithDuplicateName.yang
new file mode 100644
index 0000000..d81558f
--- /dev/null
+++ b/src/test/resources/EnumWithDuplicateName.yang
@@ -0,0 +1,14 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf speed {
+ type enumeration {
+ enum 10m;
+ enum 100m;
+ enum 10m {
+ value 11;
+ }
+ }
+ }
+}
diff --git a/src/test/resources/PositionDuplication.yang b/src/test/resources/PositionDuplication.yang
new file mode 100644
index 0000000..81eeb16
--- /dev/null
+++ b/src/test/resources/PositionDuplication.yang
@@ -0,0 +1,18 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle {
+ position 0;
+ }
+ bit auto-sense-speed {
+ position 1;
+ }
+ bit Ten-Mb-only {
+ position 1;
+ }
+ }
+ }
+}
diff --git a/src/test/resources/PositionImplicitAndExplicit.yang b/src/test/resources/PositionImplicitAndExplicit.yang
new file mode 100644
index 0000000..5be4cbb
--- /dev/null
+++ b/src/test/resources/PositionImplicitAndExplicit.yang
@@ -0,0 +1,15 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle;
+ bit auto-sense-speed {
+ position 1;
+ }
+ bit Ten-Mb-only;
+ }
+ }
+ }
+}
diff --git a/src/test/resources/PositionImplicitAndExplicitDuplication.yang b/src/test/resources/PositionImplicitAndExplicitDuplication.yang
new file mode 100644
index 0000000..30b81ab
--- /dev/null
+++ b/src/test/resources/PositionImplicitAndExplicitDuplication.yang
@@ -0,0 +1,15 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle;
+ bit auto-sense-speed {
+ position 0;
+ }
+ bit Ten-Mb-only;
+ }
+ }
+ }
+}
diff --git a/src/test/resources/PositionNegativeValue.yang b/src/test/resources/PositionNegativeValue.yang
new file mode 100644
index 0000000..60330e0
--- /dev/null
+++ b/src/test/resources/PositionNegativeValue.yang
@@ -0,0 +1,15 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle;
+ bit auto-sense-speed {
+ position -2;
+ }
+ bit Ten-Mb-only;
+ }
+ }
+ }
+}
diff --git a/src/test/resources/PositionStatement.yang b/src/test/resources/PositionStatement.yang
new file mode 100644
index 0000000..76c204d
--- /dev/null
+++ b/src/test/resources/PositionStatement.yang
@@ -0,0 +1,18 @@
+module Test {
+ yang-version 1;
+ namespace http://huawei.com;
+ prefix Ant;
+ leaf mybits {
+ type bits {
+ bit disable-nagle {
+ position 0;
+ }
+ bit auto-sense-speed {
+ position 1;
+ }
+ bit Ten-Mb-only {
+ position 2;
+ }
+ }
+ }
+}