Activate range checking
authorRobert Varga <rovarga@cisco.com>
Wed, 22 Jan 2014 12:09:34 +0000 (13:09 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 25 Jan 2014 09:45:19 +0000 (09:45 +0000)
Commit this change just after the 0.6.0 release, as it has the potential
to break a lot of users.

Change-Id: Id5205b0be99187f2d2991c3c4f49eeb6a4d841c9
Signed-off-by: Robert Varga <rovarga@cisco.com>
model/l2-types/src/main/yang/opendaylight-l2-types.yang

index 36d74a7b23815bf47441cf734da6c0b8370e6cda..2eecb513b20bdf097c714727033d140a2d06bea1 100644 (file)
@@ -19,7 +19,7 @@ module opendaylight-l2-types {
                         Values are from 0 (best effort) to 7 (highest); 
                         1 represents the lowest priority.";
                type uint8 {
-                       //range "0..7";
+                       range "0..7";
                }
        }
 
@@ -33,7 +33,7 @@ module opendaylight-l2-types {
 
        typedef vlan-id {
                type uint16 {
-                       //range "0..4095";
+                       range "0..4095";
                }
        }