Fix invalid rsvp model
[bgpcep.git] / rsvp / api / src / main / yang / rsvp.yang
index 1178e8a794fbbdf75cb9889a46cf0496daa479b9..dad9a4293e936d89f0199a62eb8431e60bcfe7b2 100644 (file)
@@ -928,13 +928,17 @@ module rsvp {
             reference "http://tools.ietf.org/html/rfc4873#section-6.1"
             + " http://tools.ietf.org/html/rfc4872#section-14";
 
-            case basic-protection-object {
-                uses rsvp-te-object;
-                uses protection-subobject;
+            case basic-protection-object-case {
+                container basic-protection-object {
+                    uses rsvp-te-object;
+                    uses protection-subobject;
+                }
             }
-            case dynamic-control-protection-object {
-                uses rsvp-te-object;
-                uses protection-subobject;
+            case dynamic-control-protection-object-case {
+                container dynamic-control-protection-object {
+                    uses rsvp-te-object;
+                    uses protection-subobject;
+                }
             }
         }
     }