Code Review
/
vpnservice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
L2 Gw connection support and Elan manager changes
[vpnservice.git]
/
neutronvpn
/
neutronvpn-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
vpnservice
/
neutronvpn
/
NeutronPortChangeListener.java
diff --git
a/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/vpnservice/neutronvpn/NeutronPortChangeListener.java
b/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/vpnservice/neutronvpn/NeutronPortChangeListener.java
index bc0aa30a9095006a83ac8929d8aba699e290399a..826955dff5a553b5a27daeadb7030ea2c64aa9c7 100644
(file)
--- a/
neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/vpnservice/neutronvpn/NeutronPortChangeListener.java
+++ b/
neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/vpnservice/neutronvpn/NeutronPortChangeListener.java
@@
-140,6
+140,11
@@
public class NeutronPortChangeListener extends AbstractDataChangeListener<Port>
}
private void handleNeutronPortCreated(Port 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);
LOG.info("Of-port-interface creation");
// Create of-port interface for this neutron port
String portInterfaceName = createOfPortInterface(port);