From 4475cf5152d73b8ada4bd567de3e8a99507ad2bb Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 29 Jan 2016 23:49:36 +0100 Subject: 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 --- vbd/api/src/main/yang/odl-external-reference.yang | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 vbd/api/src/main/yang/odl-external-reference.yang (limited to 'vbd/api/src/main/yang/odl-external-reference.yang') 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 "; + + 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; + } +} -- cgit 1.2.3-korg