commit | b38f88e276ae19eb1eff8d104c7b7c5afe55a340 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Mon Feb 22 19:43:28 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Feb 23 04:03:44 2016 +0000 |
tree | da9afde54a014146041de2b270b8398e126f4c88 | |
parent | 17b4c85e66943c1482d659950cedd92e34a86082 [diff] |
Print EthCriterion mask only when there is one Change-Id: I7de9d5d9141c5a0b52ce189dd74c4e91e8db4f79
diff --git a/core/api/src/main/java/org/onosproject/net/flow/criteria/EthCriterion.java b/core/api/src/main/java/org/onosproject/net/flow/criteria/EthCriterion.java index f7c6f48..8bdfd2c 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/criteria/EthCriterion.java +++ b/core/api/src/main/java/org/onosproject/net/flow/criteria/EthCriterion.java
@@ -77,7 +77,9 @@ @Override public String toString() { - return type().toString() + SEPARATOR + mac + "/" + mask; + return (mask != null) ? + type().toString() + SEPARATOR + mac + "/" + mask : + type().toString() + SEPARATOR + mac; } @Override