-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.6.0
-
Component/s: None
-
Labels:
-
Environment:
ONOS BUILD
-
Story Points:3
RFC6020:
If the current highest value is equal to 2147483647, then an enum
value MUST be specified for "enum" substatements following the one
with the current highest value.
leaf ifType {
type enumeration {
enum "unbounded";
enum ZERO;
enum two;
enum four;
enum seven
enum five;
}
}
switch (value)
{ case 1: return IfTypeEnum.ZERO; case 3: return IfTypeEnum.FOUR; case 2147483647: return IfTypeEnum.SEVEN; case 0: return IfTypeEnum.UNBOUNDED; case 2: return IfTypeEnum.TWO; case -2147483648: return IfTypeEnum.FIVE; default : return null; }