commit | c14212426540c182ce50cf707d8440b077fe805c | [log] [tgz] |
---|---|---|
author | abat <abat@bigswitch.com> | Mon May 12 19:03:17 2014 -0700 |
committer | abat <abat@bigswitch.com> | Mon May 12 19:03:17 2014 -0700 |
tree | 70909794214821dc9f249e5ad45c9f6e35faff19 | |
parent | ffc28e6e06a516230942239b83f33b5d28a3a0f1 [diff] | |
parent | 316989955b66aab51b1fd16dde21e3dfaba68305 [diff] |
Merge into master from pull request #265: TransportPort.of must accept NO_MASK value (https://github.com/floodlight/loxigen/pull/265)
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..6ab0254 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); }