0becb475b8301d0ad5f57ec1a6d3f084e99a3841
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / NeutronCRUDInterfaces.java
1 /*\r
2  * Copyright IBM Corporation, 2013.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.controller.networkconfig.neutron;\r
10 \r
11 import org.opendaylight.controller.sal.utils.ServiceHelper;\r
12 \r
13 public class NeutronCRUDInterfaces {\r
14 \r
15     public static INeutronNetworkCRUD getINeutronNetworkCRUD(Object o) {\r
16         INeutronNetworkCRUD answer = (INeutronNetworkCRUD) ServiceHelper.getGlobalInstance(INeutronNetworkCRUD.class, o);\r
17         return answer;\r
18     }\r
19 \r
20     public static INeutronSubnetCRUD getINeutronSubnetCRUD(Object o) {\r
21         INeutronSubnetCRUD answer = (INeutronSubnetCRUD) ServiceHelper.getGlobalInstance(INeutronSubnetCRUD.class, o);\r
22         return answer;\r
23     }\r
24 \r
25     public static INeutronPortCRUD getINeutronPortCRUD(Object o) {\r
26         INeutronPortCRUD answer = (INeutronPortCRUD) ServiceHelper.getGlobalInstance(INeutronPortCRUD.class, o);\r
27         return answer;\r
28     }\r
29 \r
30     public static INeutronRouterCRUD getINeutronRouterCRUD(Object o) {\r
31         INeutronRouterCRUD answer = (INeutronRouterCRUD) ServiceHelper.getGlobalInstance(INeutronRouterCRUD.class, o);\r
32         return answer;\r
33     }\r
34 \r
35     public static INeutronFloatingIPCRUD getINeutronFloatingIPCRUD(Object o) {\r
36         INeutronFloatingIPCRUD answer = (INeutronFloatingIPCRUD) ServiceHelper.getGlobalInstance(INeutronFloatingIPCRUD.class, o);\r
37         return answer;\r
38     }\r
39 }\r