Fixed NAT in OFOverlay based on EIG
[groupbasedpolicy.git] / neutron-ovsdb / src / main / java / org / opendaylight / groupbasedpolicy / neutron / ovsdb / NeutronOvsdb.java
index e03886e057b48b6d10c7ffdf2ba30275b31e8188..ae4ce1ee6fa14c5a60728d7841094dd9b948df7e 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.opendaylight.groupbasedpolicy.neutron.ovsdb;
 
 import static com.google.common.base.Preconditions.checkNotNull;
@@ -14,14 +22,19 @@ import org.osgi.framework.ServiceRegistration;
 public class NeutronOvsdb implements AutoCloseable {
 
     private final List<ServiceRegistration<?>> registrations = new ArrayList<ServiceRegistration<?>>();
-    private final OvsdbDataChangeListener listener;
+    private final TerminationPointDataChangeListener tpListener;
+    private final NodeDataChangeListener nodeListener;
+    private final NeutronGbpFloatingIpListener neutronGbpFloatingIpListener;
+
     public NeutronOvsdb(DataBroker dataProvider, RpcProviderRegistry rpcProvider, BundleContext context) {
         checkNotNull(dataProvider);
         checkNotNull(rpcProvider);
         checkNotNull(context);
 
         EndpointService epService = rpcProvider.getRpcService(EndpointService.class);
-        listener = new OvsdbDataChangeListener(dataProvider, epService);
+        tpListener = new TerminationPointDataChangeListener(dataProvider, epService);
+        nodeListener = new NodeDataChangeListener(dataProvider);
+        neutronGbpFloatingIpListener = new NeutronGbpFloatingIpListener(dataProvider);
     }
 
     /**