Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / config-bgp-listener-impl.yang
diff --git a/opendaylight/config/yang-jmx-generator/src/test/resources/config-bgp-listener-impl.yang b/opendaylight/config/yang-jmx-generator/src/test/resources/config-bgp-listener-impl.yang
new file mode 100644 (file)
index 0000000..fca83fd
--- /dev/null
@@ -0,0 +1,43 @@
+module config-bgp-listener-impl {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:config:bgp:listener:impl";
+    prefix "bgpl-impl";
+
+    import ietf-inet-types { prefix inet; }
+    import config { prefix config; revision-date 2013-04-05; }
+
+    description
+        "This module contains the base YANG definitions for NS-OS
+         BGP listener implementation.";
+
+    revision "2013-04-09" {
+        description
+            "Initial revision";
+        reference "NS-OS System Design, version 1.2.";
+    }
+
+    identity bgp-listener-impl {
+        base config:module-type;
+    }
+
+    augment "/config:modules/config:module/config:state" {
+        case bgp-listener-impl {
+            when "/config:modules/config:module/config:type = 'bgp-listener-impl'";
+            list peers {
+                config:inner-state-bean;
+                leaf port {
+                    type inet:port-number;
+                    default 179;
+                }
+                leaf core-size {
+                    type uint32;
+                }
+            }
+
+           leaf as-number {
+                mandatory true;
+                type inet:as-number;
+            }
+        }
+    }
+}