f54a2221c043bded2959941f6207f124462c307f
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / netvirt / openstack / netvirt / translator / crud / impl / NeutronFirewallRuleInterface.java
1 /*
2  * Copyright (c) 2014, 2015 Red Hat, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.netvirt.openstack.netvirt.translator.crud.impl;
10
11 import java.util.List;
12
13 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
14 import org.opendaylight.netvirt.openstack.netvirt.translator.NeutronFirewallRule;
15 import org.opendaylight.netvirt.openstack.netvirt.translator.INeutronObject;
16 import org.opendaylight.netvirt.openstack.netvirt.translator.crud.INeutronFirewallRuleCRUD;
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;
21
22 public class NeutronFirewallRuleInterface extends AbstractNeutronInterface implements INeutronFirewallRuleCRUD {
23
24     NeutronFirewallRuleInterface(ProviderContext providerContext) {
25         super(providerContext);
26     }
27
28     @Override
29     public boolean neutronFirewallRuleExists(String uuid) {
30         // TODO Auto-generated method stub
31         return false;
32     }
33
34     @Override
35     public NeutronFirewallRule getNeutronFirewallRule(String uuid) {
36         // TODO Auto-generated method stub
37         return null;
38     }
39
40     @Override
41     public List<NeutronFirewallRule> getAllNeutronFirewallRules() {
42         // TODO Auto-generated method stub
43         return null;
44     }
45
46     @Override
47     public boolean addNeutronFirewallRule(NeutronFirewallRule input) {
48         // TODO Auto-generated method stub
49         return false;
50     }
51
52     @Override
53     public boolean removeNeutronFirewallRule(String uuid) {
54         // TODO Auto-generated method stub
55         return false;
56     }
57
58     @Override
59     public boolean updateNeutronFirewallRule(String uuid,
60             NeutronFirewallRule delta) {
61         // TODO Auto-generated method stub
62         return false;
63     }
64
65     @Override
66     public boolean neutronFirewallRuleInUse(String uuid) {
67         // TODO Auto-generated method stub
68         return false;
69     }
70
71     @Override
72     protected InstanceIdentifier createInstanceIdentifier(DataObject item) {
73         // TODO Auto-generated method stub
74         return null;
75     }
76
77     @Override
78     protected DataObject toMd(INeutronObject neutronObject) {
79         // TODO Auto-generated method stub
80         return null;
81     }
82
83     @Override
84     protected DataObject toMd(String uuid) {
85         // TODO Auto-generated method stub
86         return null;
87     }
88
89     public static void registerNewInterface(BundleContext context,
90                                             ProviderContext providerContext,
91                                             List<ServiceRegistration<?>> registrations) {
92         NeutronFirewallRuleInterface neutronFirewallRuleInterface = new NeutronFirewallRuleInterface(providerContext);
93         ServiceRegistration<INeutronFirewallRuleCRUD> neutronFirewallRuleInterfaceRegistration = context.registerService(INeutronFirewallRuleCRUD.class, neutronFirewallRuleInterface, null);
94         if(neutronFirewallRuleInterfaceRegistration != null) {
95             registrations.add(neutronFirewallRuleInterfaceRegistration);
96         }
97     }
98 }