Activate range checking
[mdsal.git] / model / l2-types / src / main / yang / opendaylight-l2-types.yang
index 2efd6355a0b00483348bac9bc4628fb83a56adbf..2eecb513b20bdf097c714727033d140a2d06bea1 100644 (file)
@@ -2,6 +2,13 @@ module opendaylight-l2-types {
        namespace "urn:opendaylight:l2:types";
        prefix "ethertype";
 
+       description 
+               "Copyright (c) 2013 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 "2013-08-27" {
                description "Initial revision";
        }
@@ -12,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";
                }
        }
 
@@ -26,7 +33,7 @@ module opendaylight-l2-types {
 
        typedef vlan-id {
                type uint16 {
-                       //range "0..4095";
+                       range "0..4095";
                }
        }
 
@@ -213,4 +220,4 @@ module opendaylight-l2-types {
 
        }
        */
-}
\ No newline at end of file
+}