L2 Gw connection support and Elan manager changes
[vpnservice.git] / neutronvpn / neutronvpn-impl / src / main / java / org / opendaylight / vpnservice / neutronvpn / NeutronPortChangeListener.java
index bc0aa30a9095006a83ac8929d8aba699e290399a..826955dff5a553b5a27daeadb7030ea2c64aa9c7 100644 (file)
@@ -140,6 +140,11 @@ public class NeutronPortChangeListener extends AbstractDataChangeListener<Port>
     }
 
     private void handleNeutronPortCreated(Port port) {
+        if (!NeutronvpnUtils.isPortVnicTypeNormal(port)) {
+            LOG.info("Port {} is not a NORMAL VNIC Type port; OF Port interfaces are not created",
+                    port.getUuid().getValue());
+            return;
+        }
         LOG.info("Of-port-interface creation");
         // Create of-port interface for this neutron port
         String portInterfaceName = createOfPortInterface(port);