X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fswitchmanager%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2FSubnetConfig.java;fp=opendaylight%2Fswitchmanager%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2FSubnetConfig.java;h=4ed9934b27a3f6d3105c2854c86c48f131fe40c6;hb=bf2bf3ea3e0b45f2ae7df27bf4634214add7c0ce;hp=52b5f5255d3e5c13f088a38c19819c8730fdf266;hpb=c5630f2945eb5370f9829514ef72de41d41eb2be;p=controller.git 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 52b5f5255d..4ed9934b27 100644 --- 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 List nodePorts; // datapath ID/port list: + private Set nodePorts; // datapath ID/port list: // xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y public SubnetConfig() { } - public SubnetConfig(String desc, String sub, List sp) { + public SubnetConfig(String desc, String sub, Set 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; - nodePorts = new ArrayList(subnetConfig.nodePorts); + nodePorts = new HashSet(subnetConfig.nodePorts); } public String getName() { return name; } - public List getNodePorts() { + public Set getNodePorts() { return nodePorts; }