yang model for neutron extensions api
[neutron.git] / model / src / main / yang / neutron-extensions.yang
diff --git a/model/src/main/yang/neutron-extensions.yang b/model/src/main/yang/neutron-extensions.yang
new file mode 100644 (file)
index 0000000..36b7863
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2016 Intel Corporation.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+module neutron-extensions {
+    yang-version 1;
+
+    namespace "urn:opendaylight:neutron-extensions";
+
+    prefix neutron-extensions;
+
+    organization "OpenDaylight Neutron Group";
+
+    contact "Isaku Yamahata <isaku.yamahata@gmail.com>";
+
+    description "This YANG module defines neutron extensions attributes that are used
+        by OpenDaylight Neutron YANG modules.
+        http://developer.openstack.org/api-ref-networking-v2-ext.html#neutron_extensions";
+
+    revision "2016-06-17" {
+        description
+                "OpenDaylight Boron release";
+    }
+
+    grouping extension-attributes {
+        leaf name {
+            type string;
+            description "The name of the extension";
+        }
+        leaf alias {
+            type string;
+            description "The alias for the extension";
+        }
+    }
+
+    grouping extensions-attributes {
+        container extensions {
+            config false;
+            list extension {
+                key "alias";
+                uses extension-attributes;
+            }
+        }
+    }
+}