org.opendaylight.lispflowmapping.neutron.NetworkDataProcessor Maven / Gradle / Ivy
/*
* Copyright (c) 2016 Cisco Systems, Inc. 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.lispflowmapping.neutron;
import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.networks.attributes.networks.Network;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* LISP Service Implementation of creation and deletion of a Network.
*/
public class NetworkDataProcessor implements DataProcessor {
private static final Logger LOG = LoggerFactory.getLogger(NetworkDataProcessor.class);
private volatile ILispNeutronService lispNeutronService;
public NetworkDataProcessor(ILispNeutronService lispNeutronService) {
this.lispNeutronService = lispNeutronService;
}
@Override
public void create(Network network) {
LOG.info("Neutron Network Created : Network name: " + network.getName());
LOG.debug("Lisp Neutron Network: " + network.toString());
}
@Override
public void update(Network network) {
LOG.info("Neutron Network Updated : Network name: " + network.getName());
LOG.debug("Lisp Neutron Network: " + network.toString());
}
@Override
public void delete(Network network) {
LOG.info("Neutron Network Deleted : Network name: " + network.getName());
LOG.debug("Lisp Neutron Network: " + network.toString());
}
}