Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use Set for Subnet's NodeConnectors
[controller.git]
/
opendaylight
/
switchmanager
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
switchmanager
/
SubnetConfig.java
diff --git
a/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/SubnetConfig.java
b/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/SubnetConfig.java
index 52b5f5255d3e5c13f088a38c19819c8730fdf266..4ed9934b27a3f6d3105c2854c86c48f131fe40c6 100644
(file)
--- a/
opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/SubnetConfig.java
+++ b/
opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/SubnetConfig.java
@@
-48,13
+48,13
@@
public class SubnetConfig implements Cloneable, Serializable {
private String subnet; // A.B.C.D/MM Where A.B.C.D is the Default
// Gateway IP (L3) or ARP Querier IP (L2
@XmlElement
private String subnet; // A.B.C.D/MM Where A.B.C.D is the Default
// Gateway IP (L3) or ARP Querier IP (L2
@XmlElement
- private
Lis
t<String> nodePorts; // datapath ID/port list:
+ private
Se
t<String> nodePorts; // datapath ID/port list:
// xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y
public SubnetConfig() {
}
// xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y
public SubnetConfig() {
}
- public SubnetConfig(String desc, String sub,
Lis
t<String> sp) {
+ public SubnetConfig(String desc, String sub,
Se
t<String> sp) {
name = desc;
subnet = sub;
nodePorts = sp;
name = desc;
subnet = sub;
nodePorts = sp;
@@
-63,14
+63,14
@@
public class SubnetConfig implements Cloneable, Serializable {
public SubnetConfig(SubnetConfig subnetConfig) {
name = subnetConfig.name;
subnet = subnetConfig.subnet;
public SubnetConfig(SubnetConfig subnetConfig) {
name = subnetConfig.name;
subnet = subnetConfig.subnet;
- nodePorts = new
ArrayLis
t<String>(subnetConfig.nodePorts);
+ nodePorts = new
HashSe
t<String>(subnetConfig.nodePorts);
}
public String getName() {
return name;
}
}
public String getName() {
return name;
}
- public
Lis
t<String> getNodePorts() {
+ public
Se
t<String> getNodePorts() {
return nodePorts;
}
return nodePorts;
}