Merge "Fixed for bug : 1171 - issue while creating subnet"
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / NeutronCRUDInterfaces.java
1 /*
2  * Copyright IBM Corporation, 2013.  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.controller.networkconfig.neutron;
10
11 import org.opendaylight.controller.sal.utils.ServiceHelper;
12
13 public class NeutronCRUDInterfaces {
14
15     public static INeutronNetworkCRUD getINeutronNetworkCRUD(Object o) {
16         INeutronNetworkCRUD answer = (INeutronNetworkCRUD) ServiceHelper.getGlobalInstance(INeutronNetworkCRUD.class, o);
17         return answer;
18     }
19
20     public static INeutronSubnetCRUD getINeutronSubnetCRUD(Object o) {
21         INeutronSubnetCRUD answer = (INeutronSubnetCRUD) ServiceHelper.getGlobalInstance(INeutronSubnetCRUD.class, o);
22         return answer;
23     }
24
25     public static INeutronPortCRUD getINeutronPortCRUD(Object o) {
26         INeutronPortCRUD answer = (INeutronPortCRUD) ServiceHelper.getGlobalInstance(INeutronPortCRUD.class, o);
27         return answer;
28     }
29
30     public static INeutronRouterCRUD getINeutronRouterCRUD(Object o) {
31         INeutronRouterCRUD answer = (INeutronRouterCRUD) ServiceHelper.getGlobalInstance(INeutronRouterCRUD.class, o);
32         return answer;
33     }
34
35     public static INeutronFloatingIPCRUD getINeutronFloatingIPCRUD(Object o) {
36         INeutronFloatingIPCRUD answer = (INeutronFloatingIPCRUD) ServiceHelper.getGlobalInstance(INeutronFloatingIPCRUD.class, o);
37         return answer;
38     }
39
40     public static INeutronSecurityGroupCRUD getINeutronSecurityGroupCRUD(Object o) {
41         INeutronSecurityGroupCRUD answer = (INeutronSecurityGroupCRUD) ServiceHelper.getGlobalInstance(INeutronSecurityGroupCRUD.class, o);
42         return answer;
43     }
44
45     public static INeutronSecurityRuleCRUD getINeutronSecurityRuleCRUD(Object o) {
46         INeutronSecurityRuleCRUD answer = (INeutronSecurityRuleCRUD) ServiceHelper.getGlobalInstance(INeutronSecurityRuleCRUD.class, o);
47         return answer;
48     }
49 }