Baseline for neutron-vpp mapping
[groupbasedpolicy.git] / renderers / vpp / src / main / yang / vpp-renderer.yang
diff --git a/renderers/vpp/src/main/yang/vpp-renderer.yang b/renderers/vpp/src/main/yang/vpp-renderer.yang
new file mode 100644 (file)
index 0000000..283444a
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  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 vpp-renderer {
+    yang-version 1;
+
+    namespace "urn:opendaylight:groupbasedpolicy:vpp_renderer";
+    prefix "vpp-renderer";
+
+    description
+        "This module is a baseline for the group-based policy vpp renderer model.";
+
+    revision "2016-04-25" {
+        description
+            "Initial revision.";
+    }
+
+    import base-endpoint { prefix base-ep; revision-date 2016-04-27; }
+
+    container config {
+        list vpp-endpoint {
+            key "context-type context-id address-type address";
+            uses base-ep:address-endpoint-key;
+            choice interface-type-choice {
+                case vhost-user-case {
+                    leaf socket {
+                        description "A unique ID for the neutron port";
+                        type string {
+                            length 1..255;
+                        }
+                    }
+                }
+            }
+        }
+    }
+}