X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetworkconfiguration%2Fneutron%2Fnorthbound%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetworkconfig%2Fneutron%2Fnorthbound%2FNeutronFirewallNorthbound.java;fp=opendaylight%2Fnetworkconfiguration%2Fneutron%2Fnorthbound%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetworkconfig%2Fneutron%2Fnorthbound%2FNeutronFirewallNorthbound.java;h=33043d4389b2b736a4db4066c170b748c0fb258a;hp=204c9f51761bdc48c833dff059d5d6f7a423ed38;hb=b1ad203b32b73fc06a856cdfae243986c8037617;hpb=13bc7fa54d688d59131c462c731fe6d0f59d83ec;ds=sidebyside diff --git a/opendaylight/networkconfiguration/neutron/northbound/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFirewallNorthbound.java b/opendaylight/networkconfiguration/neutron/northbound/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFirewallNorthbound.java index 204c9f5176..33043d4389 100644 --- a/opendaylight/networkconfiguration/neutron/northbound/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFirewallNorthbound.java +++ b/opendaylight/networkconfiguration/neutron/northbound/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFirewallNorthbound.java @@ -16,11 +16,6 @@ import org.opendaylight.controller.networkconfig.neutron.INeutronFirewallCRUD; import org.opendaylight.controller.networkconfig.neutron.INeutronFirewallRuleCRUD; import org.opendaylight.controller.networkconfig.neutron.NeutronCRUDInterfaces; import org.opendaylight.controller.networkconfig.neutron.NeutronFirewall; -import org.opendaylight.controller.northbound.commons.RestMessages; -import org.opendaylight.controller.northbound.commons.exception.BadRequestException; -import org.opendaylight.controller.northbound.commons.exception.ResourceNotFoundException; -import org.opendaylight.controller.northbound.commons.exception.ServiceUnavailableException; -import org.opendaylight.controller.sal.utils.ServiceHelper; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; @@ -190,7 +185,7 @@ public class NeutronFirewallNorthbound { throw new BadRequestException("Firewall UUID already exists"); } firewallInterface.addNeutronFirewall(singleton); - Object[] instances = ServiceHelper.getGlobalInstances(INeutronFirewallAware.class, this, null); + Object[] instances = NeutronUtil.getInstances(INeutronFirewallAware.class, this); if (instances != null) { for (Object instance : instances) { INeutronFirewallAware service = (INeutronFirewallAware) instance; @@ -211,7 +206,7 @@ public class NeutronFirewallNorthbound { List bulk = input.getBulk(); Iterator i = bulk.iterator(); HashMap testMap = new HashMap(); - Object[] instances = ServiceHelper.getGlobalInstances(INeutronFirewallAware.class, this, null); + Object[] instances = NeutronUtil.getInstances(INeutronFirewallAware.class, this); while (i.hasNext()) { NeutronFirewall test = i.next(); @@ -301,7 +296,7 @@ public class NeutronFirewallNorthbound { throw new BadRequestException("Attribute edit blocked by Neutron"); } - Object[] instances = ServiceHelper.getGlobalInstances(INeutronFirewallAware.class, this, null); + Object[] instances = NeutronUtil.getInstances(INeutronFirewallAware.class, this); if (instances != null) { for (Object instance : instances) { INeutronFirewallAware service = (INeutronFirewallAware) instance; @@ -355,7 +350,7 @@ public class NeutronFirewallNorthbound { return Response.status(409).build(); } NeutronFirewall singleton = firewallInterface.getNeutronFirewall(firewallUUID); - Object[] instances = ServiceHelper.getGlobalInstances(INeutronFirewallAware.class, this, null); + Object[] instances = NeutronUtil.getInstances(INeutronFirewallAware.class, this); if (instances != null) { for (Object instance : instances) { INeutronFirewallAware service = (INeutronFirewallAware) instance;