2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. 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.netvirt.openstack.netvirt.translator.crud.impl;
11 import java.util.List;
13 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
14 import org.opendaylight.netvirt.openstack.netvirt.translator.NeutronFirewall;
15 import org.opendaylight.netvirt.openstack.netvirt.translator.crud.INeutronFirewallCRUD;
16 import org.opendaylight.netvirt.openstack.netvirt.translator.INeutronObject;
17 import org.opendaylight.yangtools.yang.binding.DataObject;
18 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
19 import org.osgi.framework.BundleContext;
20 import org.osgi.framework.ServiceRegistration;
22 public class NeutronFirewallInterface extends AbstractNeutronInterface implements INeutronFirewallCRUD {
24 NeutronFirewallInterface(ProviderContext providerContext) {
25 super(providerContext);
28 public static void registerNewInterface(BundleContext context,
29 ProviderContext providerContext,
30 List<ServiceRegistration<?>> registrations) {
31 NeutronFirewallInterface neutronFirewallInterface = new NeutronFirewallInterface(providerContext);
32 ServiceRegistration<INeutronFirewallCRUD> neutronFirewallInterfaceRegistration = context.registerService(INeutronFirewallCRUD.class, neutronFirewallInterface, null);
33 if(neutronFirewallInterfaceRegistration != null) {
34 registrations.add(neutronFirewallInterfaceRegistration);
39 public boolean neutronFirewallExists(String uuid) {
40 // TODO Auto-generated method stub
45 public NeutronFirewall getNeutronFirewall(String uuid) {
46 // TODO Auto-generated method stub
51 public List<NeutronFirewall> getAllNeutronFirewalls() {
52 // TODO Auto-generated method stub
57 public boolean addNeutronFirewall(NeutronFirewall input) {
58 // TODO Auto-generated method stub
63 public boolean removeNeutronFirewall(String uuid) {
64 // TODO Auto-generated method stub
69 public boolean updateNeutronFirewall(String uuid, NeutronFirewall delta) {
70 // TODO Auto-generated method stub
75 public boolean neutronFirewallInUse(String uuid) {
76 // TODO Auto-generated method stub
81 protected InstanceIdentifier createInstanceIdentifier(DataObject item) {
82 // TODO Auto-generated method stub
87 protected DataObject toMd(INeutronObject neutronObject) {
88 // TODO Auto-generated method stub
93 protected DataObject toMd(String uuid) {
94 // TODO Auto-generated method stub