2 * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.lispflowmapping.neutron;
11 import java.net.HttpURLConnection;
13 import org.opendaylight.neutron.spi.INeutronNetworkAware;
14 import org.opendaylight.neutron.spi.NeutronNetwork;
17 * LISP Service Implementation of NeutronNetworkAware API
20 public class LispNeutronNetworkHandler extends LispNeutronService implements INeutronNetworkAware {
24 public int canCreateNetwork(NeutronNetwork network) {
25 LOG.info("Neutron canCreateNetwork : Network name: " + network.getNetworkName());
26 LOG.debug("Lisp Neutron Network: " + network.toString());
28 return HttpURLConnection.HTTP_OK;
32 public void neutronNetworkCreated(NeutronNetwork network) {
33 LOG.info("Neutron Network Created : Network name: " + network.getNetworkName());
34 LOG.debug("Lisp Neutron Network: " + network.toString());
39 public int canUpdateNetwork(NeutronNetwork delta, NeutronNetwork original) {
40 LOG.info("Neutron canUpdateNetwork : Network name: " + original.getNetworkName());
41 LOG.debug("Lisp Neutron Network: " + original.toString());
43 return HttpURLConnection.HTTP_OK;
47 public void neutronNetworkUpdated(NeutronNetwork network) {
48 LOG.info("Neutron Network Updated : Network name: " + network.getNetworkName());
49 LOG.debug("Lisp Neutron Network: " + network.toString());
54 public int canDeleteNetwork(NeutronNetwork network) {
55 LOG.info("Neutron canDeleteNetwork : Network name: " + network.getNetworkName());
56 LOG.debug("Lisp Neutron Network: " + network.toString());
58 return HttpURLConnection.HTTP_OK;
62 public void neutronNetworkDeleted(NeutronNetwork network) {
63 LOG.info("Neutron Network Deleted : Network name: " + network.getNetworkName());
64 LOG.debug("Lisp Neutron Network: " + network.toString());