Distributed multi-virtual-router functionality.
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / groupbasedpolicy / neutron / mapper / mapping / NeutronPortAware.java
index 42c6ff95fc5446d4967c9f87e44a4790fb41e425..bd1aaedb7bd87141fcfb6b7a9ceefb15206e00a7 100644 (file)
@@ -107,6 +107,10 @@ public class NeutronPortAware implements INeutronPortAware {
         LOG.trace("neutronPortCreated - {}", port);
         if (isRouterInterfacePort(port)) {
             LOG.trace("Port is router interface.");
+            /*
+             * TODO: Li alagalah: Should only create router if NB API receives NeutronRouterAware:neutonRouterCreated() message.
+             * i.e. The deviceID (L3Context) should already exist in datastore, and should have been created by the RouterCreated.
+             */
             NeutronRouter neutronRouter = createRouter(port);
             NeutronRouter_Interface routerIface = createRouterInterface(port);
             int canAttachInterface = NeutronRouterAware.getInstance().canAttachInterface(neutronRouter, routerIface);