summaryrefslogtreecommitdiffstats
path: root/vbd/api/src/main/yang/odl-external-reference.yang
diff options
context:
space:
mode:
authorRobert Varga <rovarga@cisco.com>2016-01-29 23:49:36 +0100
committerRobert Varga <nite@hq.sk>2016-01-30 04:00:58 +0100
commit4475cf5152d73b8ada4bd567de3e8a99507ad2bb (patch)
tree6655834894c8cc36bb535a99bf06ef946a40fd16 /vbd/api/src/main/yang/odl-external-reference.yang
parentb3892936301fbf5bb3a0cae83893f12aa0313fc7 (diff)
Initial Virtual Bridge Domain models
Initial drop of models. Includes a reusable type definition as temporary model and a network-topology-based model of a virtual bridge domain. Change-Id: I6e6fbb2063c8157f3f1a329066ccba2b7f66efb1 Signed-off-by: Robert Varga <nite@hq.sk>
Diffstat (limited to 'vbd/api/src/main/yang/odl-external-reference.yang')
-rw-r--r--vbd/api/src/main/yang/odl-external-reference.yang41
1 files changed, 41 insertions, 0 deletions
diff --git a/vbd/api/src/main/yang/odl-external-reference.yang b/vbd/api/src/main/yang/odl-external-reference.yang
new file mode 100644
index 000000000..e82bfe2b7
--- /dev/null
+++ b/vbd/api/src/main/yang/odl-external-reference.yang
@@ -0,0 +1,41 @@
+module odl-external-reference {
+ // vi: set et smarttab sw=4 tabstop=4:
+
+ yang-version 1;
+ // FIXME: this mode should go to OpenDaylight/mdsal
+ namespace "urn:opendaylight:params:xml:ns:yang:external:reference";
+ prefix "extref";
+
+ organization "Cisco Systems, Inc.";
+
+ contact "Robert Varga <rovarga@cisco.com>";
+
+ description
+ "Model defining the base type for external references for use instead
+ of an instance-identifier, which does not allow referencing entities
+ unknown in the model (due to imports, etc.).
+
+ Copyright (c) 2016 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";
+
+ revision "2016-01-29" {
+ description "Initial model";
+ }
+
+ typedef external-reference {
+ description "Reference to a YANG-modeled node which resides outside
+ of this system. The format must use module names as namespace
+ prefixes -- in a similar fashion RESTCONF does. The reference
+ is evaluated from the root of the external system.
+
+ This data type does not hold the coordinates of the external
+ system, nor does it specify which data store on the external
+ system should be used to satisfy the reference. This information
+ should be described in the model which instantiates a leaf of
+ this type.";
+ type string;
+ }
+}