Fix shorthand case statement in netconf notifications model 17/27917/3
authorJakub Morvay <jmorvay@cisco.com>
Tue, 6 Oct 2015 09:06:46 +0000 (11:06 +0200)
committerJakub Morvay <jmorvay@cisco.com>
Tue, 6 Oct 2015 09:06:46 +0000 (11:06 +0200)
Use normal version of server case statement in server-or-user choice statement
in ietf-netconf-notifications model. Short version is currently not supported
by yangtools.

Change-Id: I043babfc8e70654aed1c8dfdd7486795e49aa2bf
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
opendaylight/netconf/models/ietf-netconf-notifications/src/main/yang/ietf-netconf-notifications@2012-02-06.yang

index 456fde49266c44f759073662ca801c081cf57ea8..dcb35a021bd5e42dc36cc73974882117627d6f41 100644 (file)
@@ -103,13 +103,15 @@ module ietf-netconf-notifications {
          of the session that made the change will be reported.";
       choice server-or-user {
         mandatory true;
-        leaf server {
-          type empty;
-          description
+        //FIXME: Use shorthand version of case statement, if possible
+        case server {
+          leaf server {
+            type empty;
+            description
             "If present, the change was caused
-             by the server.";
+            by the server.";
+          }
         }
-
         case by-user {
           uses common-session-parms;
         }