2 * Copyright (C) 2013 Red Hat, Inc.
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
8 * Authors : Madhu Venugopal, Brent Salisbury
11 package org.opendaylight.ovsdb.openstack.netvirt;
13 import org.opendaylight.controller.networkconfig.neutron.INeutronSubnetAware;
14 import org.opendaylight.controller.networkconfig.neutron.NeutronSubnet;
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
19 import java.net.HttpURLConnection;
21 public class SubnetHandler extends AbstractHandler implements INeutronSubnetAware {
23 static final Logger logger = LoggerFactory.getLogger(SubnetHandler.class);
26 public int canCreateSubnet(NeutronSubnet subnet) {
27 return HttpURLConnection.HTTP_CREATED;
31 public void neutronSubnetCreated(NeutronSubnet subnet) {
32 logger.debug("Neutron Subnet Creation : {}", subnet.toString());
36 public int canUpdateSubnet(NeutronSubnet delta, NeutronSubnet original) {
37 return HttpURLConnection.HTTP_CREATED;
41 public void neutronSubnetUpdated(NeutronSubnet subnet) {
42 // TODO Auto-generated method stub
47 public int canDeleteSubnet(NeutronSubnet subnet) {
48 // TODO Auto-generated method stub
49 return HttpURLConnection.HTTP_CREATED;
53 public void neutronSubnetDeleted(NeutronSubnet subnet) {
54 // TODO Auto-generated method stub