Bug 5037 - Adding tests for L2 Gateway Connection API
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / NeutronL2gatewayConnectionNorthbound.java
index d2eff8b559a28e1270e0e08508b861a5a7ab1215..ff6a1d9e72740ffb8e831d4120e9cc4a247368cc 100644 (file)
@@ -82,7 +82,7 @@ public class NeutronL2gatewayConnectionNorthbound
     @Override
     protected INeutronL2gatewayConnectionCRUD getNeutronCRUD() {
         NeutronCRUDInterfaces answer = new NeutronCRUDInterfaces().fetchINeutronL2gatewayConnectionCRUD(this);
-        if (answer.getFirewallInterface() == null) {
+        if (answer.getL2gatewayConnectionInterface() == null) {
             throw new ServiceUnavailableException(serviceUnavailable());
         }
         return answer.getL2gatewayConnectionInterface();
@@ -229,4 +229,4 @@ public class NeutronL2gatewayConnectionNorthbound
     }
 
     // l2gwconnection API doesn't have update method
-}
\ No newline at end of file
+}