commit | 6a554c73c6e7240553090d4de91a3e3889fc29cc | [log] [tgz] |
---|---|---|
author | KC Wang <kc.wang@bigswitch.com> | Mon May 12 12:03:35 2014 -0700 |
committer | KC Wang <kc.wang@bigswitch.com> | Mon May 12 12:03:35 2014 -0700 |
tree | f6e090f518bcec702d941c72bee9ca1681d7bf69 | |
parent | ffc28e6e06a516230942239b83f33b5d28a3a0f1 [diff] |
TransportPort.of must accept NO_MASK value
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/TransportPort.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/TransportPort.java index 01019b0..090b856 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/TransportPort.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/TransportPort.java
@@ -32,6 +32,8 @@ public static TransportPort of(int port) { if(port == NONE_VAL) return NONE; + else if (port == NO_MASK.port) + return NO_MASK; else if (port < MIN_PORT || port > MAX_PORT) { throw new IllegalArgumentException("Illegal transport layer port number: " + port); }