All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.lispflowmapping.neutron.NetworkDataProcessor Maven / Gradle / Ivy

There is a newer version: 1.13.5
Show newest version
/*
 * 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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy