commit | 3d555b08c1d8f548857f83241848c3393a1938e0 | [log] [tgz] |
---|---|---|
author | KC Wang <kc.wang@bigswitch.com> | Mon Apr 14 21:53:30 2014 -0700 |
committer | KC Wang <kc.wang@bigswitch.com> | Mon Apr 14 21:53:30 2014 -0700 |
tree | 5d05020b574ec19726f149fb3eed71fe097dd58c | |
parent | eddc92a158432e3689f8189d2046210013216b71 [diff] |
update VlanVid.ofVlan to accept NO_MASK
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java index 2e675d4..3c74581 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java
@@ -33,7 +33,7 @@ } public static VlanVid ofVlan(int vid) { - if ((vid & VALIDATION_MASK) != vid) + if ((vid & VALIDATION_MASK) != vid && vid != NO_MASK.vid) throw new IllegalArgumentException(String.format("Illegal VLAN value: %x", vid)); return new VlanVid((short) vid); }