checkstyle: AbbreviationAsWordInName 16/49516/4
authorIsaku Yamahata <isaku.yamahata@intel.com>
Sat, 17 Dec 2016 09:04:13 +0000 (01:04 -0800)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Wed, 21 Dec 2016 20:50:36 +0000 (12:50 -0800)
fix AbbreviationAsWordInName and enable AbbreviationAsWordInName.

Change-Id: I6d0756598b7d2a000325b4986e2752aacfd30eb3
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
66 files changed:
integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java
integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronFloatingIpTests.java [moved from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronFloatingIPTests.java with 75% similarity]
integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIpSecPoliciesTests.java [moved from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIPSECPoliciesTests.java with 95% similarity]
integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIpSecSiteConnectionTests.java [moved from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIPSECSiteConnectionTests.java with 96% similarity]
integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronVpnServicesTests.java [moved from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronVPNServicesTests.java with 95% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronFloatingIpCRUD.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronFloatingIPCRUD.java with 75% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIkePolicyCRUD.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIKEPolicyCRUD.java with 82% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIpSecPolicyCRUD.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIPSECPolicyCRUD.java with 82% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIpSecSiteConnectionsCRUD.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIPSECSiteConnectionsCRUD.java with 79% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnServiceCRUD.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNServiceCRUD.java with 86% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronFloatingIp.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronFloatingIP.java with 74% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronIps.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronIPs.java with 88% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronMeteringLabelRule.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronPort.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronRouterNetworkReference.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnet.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnetIpAllocationPool.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnetIPAllocationPool.java with 74% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnDeadPeerDetection.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNDeadPeerDetection.java with 92% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIkePolicy.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIKEPolicy.java with 87% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIpSecPolicy.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIPSECPolicy.java with 87% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIpSecSiteConnection.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIPSECSiteConnection.java with 90% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnLifetime.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNLifetime.java with 92% similarity]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnService.java [moved from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNService.java with 85% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronFloatingIpJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronFloatingIPJAXBTest.java with 67% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIdJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIDJAXBTest.java with 96% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIpsJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIPsJAXBTest.java with 71% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronMeteringLabelRuleJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronPortJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronPortQosJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronPortSecurityJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronRouterJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronRouterNetworkReferenceJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetIpAllocationPoolTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetIPAllocationPoolTest.java with 86% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetJAXBTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetTest.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnDeadPeerDetectionJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNDeadPeerDetectionJAXBTest.java with 74% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIkePolicyJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIKEPolicyJAXBTest.java with 70% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIpSecPolicyJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIPSECPolicyJAXBTest.java with 71% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIpSecSiteConnectionJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIPSECSiteConnectionJAXBTest.java with 70% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnLifetimeJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNLifetimeJAXBTest.java with 75% similarity]
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnServiceJAXBTest.java [moved from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNServiceJAXBTest.java with 74% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIpRequest.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIPRequest.java with 70% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIpsNorthbound.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIPsNorthbound.java with 81% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronMeteringLabelRulesNorthbound.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronNorthboundRSApplication.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronPortsNorthbound.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronSubnetsNorthbound.java
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIkePoliciesNorthbound.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIKEPoliciesNorthbound.java with 84% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIkePolicyRequest.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIKEPolicyRequest.java with 66% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecPoliciesNorthbound.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECPoliciesNorthbound.java with 84% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecPolicyRequest.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECPolicyRequest.java with 66% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecSiteConnectionRequest.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECSiteConnectionRequest.java with 65% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecSiteConnectionsNorthbound.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECSiteConnectionsNorthbound.java with 85% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnServiceRequest.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNServiceRequest.java with 67% similarity]
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnServicesNorthbound.java [moved from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNServicesNorthbound.java with 88% similarity]
parent/checkstyle-suppressions.xml
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronFloatingIpInterface.java [moved from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronFloatingIPInterface.java with 79% similarity]
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronMeteringLabelRuleInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronPortInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronRouterInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronSubnetInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronTranscriberProvider.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIkePolicyInterface.java [moved from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIKEPolicyInterface.java with 83% similarity]
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIpSecPolicyInterface.java [moved from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIPSECPolicyInterface.java with 83% similarity]
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIpSecSiteConnectionsInterface.java [moved from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIPSECSiteConnectionsInterface.java with 87% similarity]
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnServiceInterface.java [moved from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNServiceInterface.java with 80% similarity]

index a380499d23abd502d7d8d87eba598d1f02b8218a..736891e571f8615eda2d926f3120cb12c3bcd413 100644 (file)
@@ -90,7 +90,7 @@ public class ITNeutronE2E {
         NeutronSubnetTests.runTests(base);
         NeutronPortTests.runTests(base);
         NeutronRouterTests.runTests(base);
-        NeutronFloatingIPTests.runTests(base);
+        NeutronFloatingIpTests.runTests(base);
         NeutronSecurityGroupTests.runTests(base);
         NeutronSecurityRuleTests.runTests(base);
         NeutronFirewallTests.runTests(base);
@@ -103,9 +103,9 @@ public class ITNeutronE2E {
         NeutronLBHealthMonitorTests.runTests(base);
         NeutronMeteringLabelTests.runTests(base);
         NeutronMeteringRuleTests.runTests(base);
-        NeutronVPNServicesTests.runTests(base);
-        NeutronIPSECPoliciesTests.runTests(base);
-        NeutronIPSECSiteConnectionTests.runTests(base);
+        NeutronVpnServicesTests.runTests(base);
+        NeutronIpSecPoliciesTests.runTests(base);
+        NeutronIpSecSiteConnectionTests.runTests(base);
         NeutronIKEPoliciesTests.runTests(base);
         NeutronBgpvpnTests.runTests(base);
         NeutronL2GatewayTests.runTests(base);
similarity index 75%
rename from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronFloatingIPTests.java
rename to integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronFloatingIpTests.java
index c747fc86426c13ae170a793f6b7be0e7211fb0af..0280f247dc313d8918ca3068c03df44b0057c8ee 100644 (file)
@@ -8,19 +8,19 @@
 
 package org.opendaylight.neutron.e2etest;
 
-public class NeutronFloatingIPTests {
+public class NeutronFloatingIpTests {
     String base;
 
-    public NeutronFloatingIPTests(String base) {
+    public NeutronFloatingIpTests(String base) {
         this.base = base;
     }
 
-    public void floatingIP_collection_get_test() {
+    public void floatingIp_collection_get_test() {
         String url = base + "/floatingips";
-        ITNeutronE2E.test_fetch(url, "FloatingIP Collection GET failed");
+        ITNeutronE2E.test_fetch(url, "FloatingIp Collection GET failed");
     }
 
-    public String singleton_floatingIP_create_test() {
+    public String singleton_floatingIp_create_test() {
         String url = base + "/floatingips";
         String content = "{ \"floatingip\": { " + "\"fixed_ip_address\": \"10.0.0.3\","
                 + "\"floating_ip_address\": \"172.24.4.228\","
@@ -33,12 +33,12 @@ public class NeutronFloatingIPTests {
         return content;
     }
 
-    public void singleton_floatingIP_get_with_one_query_item_test(String createJsonString) {
+    public void singleton_floatingIp_get_with_one_query_item_test(String createJsonString) {
         String url = base + "/floatingips";
         ITNeutronE2E.test_fetch_with_one_query_item(url, createJsonString, "floatingips");
     }
 
-    public void update_floatingIP_test() {
+    public void update_floatingIp_test() {
         String url = base + "/floatingips/2f245a7b-796b-4f26-9cf9-9e82d248fda7";
         String content1 = "{ \"floatingip\": {" + "\"floating_network_id\": \"376da547-b977-4cfe-9cba-275c80debf57\","
                 + "\"router_id\": \"d23abc8d-2991-4a55-ba98-2aaea84cc72f\"," + "\"fixed_ip_address\": \"10.0.0.4\","
@@ -55,12 +55,12 @@ public class NeutronFloatingIPTests {
         ITNeutronE2E.test_modify(url, content2, "Singleton Floating IP Put 2 Failed NB");
     }
 
-    public void floatingIP_element_get_test() {
+    public void floatingIp_element_get_test() {
         String url = base + "/floatingips/2f245a7b-796b-4f26-9cf9-9e82d248fda7";
         ITNeutronE2E.test_fetch(url, true, "Floating IP Element Get Test");
     }
 
-    public void floatingIP_element_get_with_query_test() {
+    public void floatingIp_element_get_with_query_test() {
         String url = base + "/floatingips/2f245a7b-796b-4f26-9cf9-9e82d248fda7"
                 + "?fields=id&fields=floating_network_id&fields=port_id&fields=status"
                 + "&fields=fixed_ip_address&fields=floating_ip_address&fields=tenant_id"
@@ -68,25 +68,25 @@ public class NeutronFloatingIPTests {
         ITNeutronE2E.test_fetch(url, true, "Floating IP Element Get Query Test");
     }
 
-    public void floatingIP_delete_test() {
+    public void floatingIp_delete_test() {
         String url = base + "/floatingips/2f245a7b-796b-4f26-9cf9-9e82d248fda7";
         ITNeutronE2E.test_delete(url, "Floating IP Delete Test");
     }
 
-    public void floatingIP_element_negative_get_test() {
+    public void floatingIp_element_negative_get_test() {
         String url = base + "/floatingips/2f245a7b-796b-4f26-9cf9-9e82d248fda7";
         ITNeutronE2E.test_fetch(url, false, "Floating IP Element Negative Get Test");
     }
 
     public static void runTests(String base) {
-        NeutronFloatingIPTests floatingIPTester = new NeutronFloatingIPTests(base);
-        String createJsonString = floatingIPTester.singleton_floatingIP_create_test();
-        floatingIPTester.singleton_floatingIP_get_with_one_query_item_test(createJsonString);
-        floatingIPTester.update_floatingIP_test();
-        floatingIPTester.floatingIP_element_get_test();
-        floatingIPTester.floatingIP_element_get_with_query_test();
-        floatingIPTester.floatingIP_collection_get_test();
-        floatingIPTester.floatingIP_delete_test();
-        floatingIPTester.floatingIP_element_negative_get_test();
+        NeutronFloatingIpTests floatingIpTester = new NeutronFloatingIpTests(base);
+        String createJsonString = floatingIpTester.singleton_floatingIp_create_test();
+        floatingIpTester.singleton_floatingIp_get_with_one_query_item_test(createJsonString);
+        floatingIpTester.update_floatingIp_test();
+        floatingIpTester.floatingIp_element_get_test();
+        floatingIpTester.floatingIp_element_get_with_query_test();
+        floatingIpTester.floatingIp_collection_get_test();
+        floatingIpTester.floatingIp_delete_test();
+        floatingIpTester.floatingIp_element_negative_get_test();
     }
 }
similarity index 95%
rename from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIPSECPoliciesTests.java
rename to integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIpSecPoliciesTests.java
index a91d8de6d08cad9172e726c26e50d4ed49fafdf0..b00bdec8b25e39d4ce8a1c2d1b3a01b0ac570998 100644 (file)
@@ -8,10 +8,10 @@
 
 package org.opendaylight.neutron.e2etest;
 
-public class NeutronIPSECPoliciesTests {
+public class NeutronIpSecPoliciesTests {
     String base;
 
-    public NeutronIPSECPoliciesTests(String base) {
+    public NeutronIpSecPoliciesTests(String base) {
         this.base = base;
     }
 
@@ -72,7 +72,7 @@ public class NeutronIPSECPoliciesTests {
     }
 
     public static void runTests(String base) {
-        NeutronIPSECPoliciesTests ipsecPolicyTester = new NeutronIPSECPoliciesTests(base);
+        NeutronIpSecPoliciesTests ipsecPolicyTester = new NeutronIpSecPoliciesTests(base);
         String createJsonString = ipsecPolicyTester.singleton_ipsecPolicy_create_test();
         ipsecPolicyTester.singleton_ipsecPolicy_get_with_one_query_item_test(createJsonString);
         ipsecPolicyTester.ipsecPolicy_update_test();
similarity index 96%
rename from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIPSECSiteConnectionTests.java
rename to integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronIpSecSiteConnectionTests.java
index 7ca77a20930b559102c1605dfa6a1611c343fa4d..538e2185b60e6b35f78da8d7caebbd0700055ae9 100644 (file)
@@ -8,10 +8,10 @@
 
 package org.opendaylight.neutron.e2etest;
 
-public class NeutronIPSECSiteConnectionTests {
+public class NeutronIpSecSiteConnectionTests {
     String base;
 
-    public NeutronIPSECSiteConnectionTests(String base) {
+    public NeutronIpSecSiteConnectionTests(String base) {
         this.base = base;
     }
 
@@ -81,7 +81,7 @@ public class NeutronIPSECSiteConnectionTests {
     }
 
     public static void runTests(String base) {
-        NeutronIPSECSiteConnectionTests ipsecSiteConnectionTester = new NeutronIPSECSiteConnectionTests(base);
+        NeutronIpSecSiteConnectionTests ipsecSiteConnectionTester = new NeutronIpSecSiteConnectionTests(base);
         String createJsonString = ipsecSiteConnectionTester.singleton_ipsecSiteConnection_create_test();
         ipsecSiteConnectionTester.singleton_ipsecSiteConnection_get_with_one_query_item_test(createJsonString);
         ipsecSiteConnectionTester.ipsecSiteConnection_update_test();
similarity index 95%
rename from integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronVPNServicesTests.java
rename to integration/test/src/test/java/org/opendaylight/neutron/e2etest/NeutronVpnServicesTests.java
index f58f38df89b2fe39d7b8405492961a849079fcbd..da7614db417751df77758e8332afc7edadc9ec5f 100644 (file)
@@ -8,10 +8,10 @@
 
 package org.opendaylight.neutron.e2etest;
 
-public class NeutronVPNServicesTests {
+public class NeutronVpnServicesTests {
     String base;
 
-    public NeutronVPNServicesTests(String base) {
+    public NeutronVpnServicesTests(String base) {
         this.base = base;
     }
 
@@ -70,7 +70,7 @@ public class NeutronVPNServicesTests {
     }
 
     public static void runTests(String base) {
-        NeutronVPNServicesTests vpnServiceTester = new NeutronVPNServicesTests(base);
+        NeutronVpnServicesTests vpnServiceTester = new NeutronVpnServicesTests(base);
         String createJsonString = vpnServiceTester.singleton_vpnservice_create_test();
         vpnServiceTester.singleton_vpnservice_get_with_one_query_item_test(createJsonString);
         vpnServiceTester.vpnservice_update_test();
similarity index 75%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronFloatingIPCRUD.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronFloatingIpCRUD.java
index dfbb42967d182fbb5a0b7ef43c96d27b96e26c8d..beea619494e7ffabd4a9c01fe593c19b702b2477 100644 (file)
@@ -9,11 +9,11 @@
 package org.opendaylight.neutron.spi;
 
 /**
- * This interface defines the methods for CRUD of NB FloatingIP objects.
+ * This interface defines the methods for CRUD of NB FloatingIp objects.
  *
  */
 
-public interface INeutronFloatingIPCRUD extends INeutronCRUD<NeutronFloatingIP> {
+public interface INeutronFloatingIpCRUD extends INeutronCRUD<NeutronFloatingIp> {
     // Nothing Here.
     // This class is defined to use reflection.
 }
similarity index 82%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIKEPolicyCRUD.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIkePolicyCRUD.java
index d3902252d0106c07a6795c1fc836eddd9dd64877..7d54dda61d5210fdaa1bbccfb636cc448bafb4f9 100644 (file)
@@ -8,7 +8,7 @@
 
 package org.opendaylight.neutron.spi;
 
-public interface INeutronVPNIKEPolicyCRUD extends INeutronCRUD<NeutronVPNIKEPolicy> {
+public interface INeutronVpnIkePolicyCRUD extends INeutronCRUD<NeutronVpnIkePolicy> {
     // Nothing Here.
     // This class is defined to use reflection.
 }
similarity index 82%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIPSECPolicyCRUD.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIpSecPolicyCRUD.java
index 8cadf0be53ebf92010931241afda743041074b83..6b722457c679feca41c5aa1463afeff615f46b64 100644 (file)
@@ -8,7 +8,7 @@
 
 package org.opendaylight.neutron.spi;
 
-public interface INeutronVPNIPSECPolicyCRUD extends INeutronCRUD<NeutronVPNIPSECPolicy> {
+public interface INeutronVpnIpSecPolicyCRUD extends INeutronCRUD<NeutronVpnIpSecPolicy> {
     // Nothing Here.
     // This class is defined to use reflection.
 }
similarity index 79%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNIPSECSiteConnectionsCRUD.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnIpSecSiteConnectionsCRUD.java
index d34aea256c9de5081d32409b989717be8cf34719..061204f354b42b8a76f18f172fbbbab280d5673b 100644 (file)
@@ -8,7 +8,7 @@
 
 package org.opendaylight.neutron.spi;
 
-public interface INeutronVPNIPSECSiteConnectionsCRUD extends INeutronCRUD<NeutronVPNIPSECSiteConnection> {
+public interface INeutronVpnIpSecSiteConnectionsCRUD extends INeutronCRUD<NeutronVpnIpSecSiteConnection> {
     // Nothing Here.
     // This class is defined to use reflection.
 }
similarity index 86%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVPNServiceCRUD.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronVpnServiceCRUD.java
index 95dbe6c2e7d08f93bd8ad4b92735b7e851405eb7..157518e44a1aee0be9d9c065af65c5f2da8287af 100644 (file)
@@ -13,7 +13,7 @@ package org.opendaylight.neutron.spi;
  *
  */
 
-public interface INeutronVPNServiceCRUD extends INeutronCRUD<NeutronVPNService> {
+public interface INeutronVpnServiceCRUD extends INeutronCRUD<NeutronVpnService> {
     // Nothing Here.
     // This class is defined to use reflection.
 }
similarity index 74%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronFloatingIP.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronFloatingIp.java
index ce85d2f6f302ceb9cd039bdd222aa18039f9ce76..2b5427d34c0e93e18f53b9ae7d9f7ec900143ffb 100644 (file)
@@ -17,8 +17,8 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFloatingIP
-        extends NeutronObject<NeutronFloatingIP> implements Serializable, INeutronObject<NeutronFloatingIP> {
+public final class NeutronFloatingIp
+        extends NeutronObject<NeutronFloatingIp> implements Serializable, INeutronObject<NeutronFloatingIp> {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -31,10 +31,10 @@ public final class NeutronFloatingIP
     String portUUID;
 
     @XmlElement(name = "fixed_ip_address")
-    String fixedIPAddress;
+    String fixedIpAddress;
 
     @XmlElement(name = "floating_ip_address")
-    String floatingIPAddress;
+    String floatingIpAddress;
 
     @XmlElement(name = "router_id")
     String routerUUID;
@@ -42,7 +42,7 @@ public final class NeutronFloatingIP
     @XmlElement(name = "status")
     String status;
 
-    public NeutronFloatingIP() {
+    public NeutronFloatingIp() {
     }
 
     public String getFloatingNetworkUUID() {
@@ -65,20 +65,20 @@ public final class NeutronFloatingIP
         this.portUUID = portUUID;
     }
 
-    public String getFixedIPAddress() {
-        return fixedIPAddress;
+    public String getFixedIpAddress() {
+        return fixedIpAddress;
     }
 
-    public void setFixedIPAddress(String fixedIPAddress) {
-        this.fixedIPAddress = fixedIPAddress;
+    public void setFixedIpAddress(String fixedIpAddress) {
+        this.fixedIpAddress = fixedIpAddress;
     }
 
-    public String getFloatingIPAddress() {
-        return floatingIPAddress;
+    public String getFloatingIpAddress() {
+        return floatingIpAddress;
     }
 
-    public void setFloatingIPAddress(String floatingIPAddress) {
-        this.floatingIPAddress = floatingIPAddress;
+    public void setFloatingIpAddress(String floatingIpAddress) {
+        this.floatingIpAddress = floatingIpAddress;
     }
 
     public void setRouterUUID(String routerUUID) {
@@ -99,12 +99,12 @@ public final class NeutronFloatingIP
      *
      * @param fields
      *            List of attributes to be extracted
-     * @return an OpenStackFloatingIPs object with only the selected fields
+     * @return an OpenStackFloatingIps object with only the selected fields
      *             populated
      */
 
-    public NeutronFloatingIP extractFields(List<String> fields) {
-        NeutronFloatingIP ans = new NeutronFloatingIP();
+    public NeutronFloatingIp extractFields(List<String> fields) {
+        NeutronFloatingIp ans = new NeutronFloatingIp();
         for (String s : fields) {
             extractField(s, ans);
             if (s.equals("floating_network_id")) {
@@ -114,10 +114,10 @@ public final class NeutronFloatingIP
                 ans.setPortUUID(this.getPortUUID());
             }
             if (s.equals("fixed_ip_address")) {
-                ans.setFixedIPAddress(this.getFixedIPAddress());
+                ans.setFixedIpAddress(this.getFixedIpAddress());
             }
             if (s.equals("floating_ip_address")) {
-                ans.setFloatingIPAddress(this.getFloatingIPAddress());
+                ans.setFloatingIpAddress(this.getFloatingIpAddress());
             }
             if (s.equals("router_id")) {
                 ans.setRouterUUID(this.getRouterUUID());
@@ -131,9 +131,9 @@ public final class NeutronFloatingIP
 
     @Override
     public String toString() {
-        return "NeutronFloatingIP{" + "fipUUID='" + uuid + '\'' + ", fipFloatingNetworkId='" + floatingNetworkUUID
-                + '\'' + ", fipPortUUID='" + portUUID + '\'' + ", fipFixedIPAddress='" + fixedIPAddress + '\''
-                + ", fipFloatingIPAddress=" + floatingIPAddress + ", fipTenantId='" + tenantID + '\''
+        return "NeutronFloatingIp{" + "fipUUID='" + uuid + '\'' + ", fipFloatingNetworkId='" + floatingNetworkUUID
+                + '\'' + ", fipPortUUID='" + portUUID + '\'' + ", fipFixedIpAddress='" + fixedIpAddress + '\''
+                + ", fipFloatingIpAddress=" + floatingIpAddress + ", fipTenantId='" + tenantID + '\''
                 + ", fipRouterId='" + routerUUID + '\'' + ", fipStatus='" + status + '\'' + '}';
     }
 }
similarity index 88%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronIPs.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronIps.java
index 54aa33b4d1f664c2e7a093cfe7295def817f2b31..1d23ea4f05150d34038a0afa06521063fdf1ba12 100644 (file)
@@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronIPs implements Serializable {
+public final class NeutronIps implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -28,10 +28,10 @@ public final class NeutronIPs implements Serializable {
     @XmlElement(name = "subnet_id")
     String subnetUUID;
 
-    public NeutronIPs() {
+    public NeutronIps() {
     }
 
-    public NeutronIPs(String uuid) {
+    public NeutronIps(String uuid) {
         subnetUUID = uuid;
     }
 
@@ -53,6 +53,6 @@ public final class NeutronIPs implements Serializable {
 
     @Override
     public String toString() {
-        return "NeutronIPs{" + "ipAddress='" + ipAddress + '\'' + ", subnetUUID='" + subnetUUID + '\'' + "}";
+        return "NeutronIps{" + "ipAddress='" + ipAddress + '\'' + ", subnetUUID='" + subnetUUID + '\'' + "}";
     }
 }
index d315d25a3996b63bd5af8cc1436aeb6ad5d38bad..0c8836ef53915b97a8c538776f18c7d71896a95f 100644 (file)
@@ -28,7 +28,7 @@ public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeterin
     Boolean meteringLabelRuleExcluded;
 
     @XmlElement(name = "remote_ip_prefix")
-    String meteringLabelRuleRemoteIPPrefix;
+    String meteringLabelRuleRemoteIpPrefix;
 
     @XmlElement(name = "metering_label_id")
     String meteringLabelRuleLabelID;
@@ -53,12 +53,12 @@ public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeterin
         this.meteringLabelRuleExcluded = excluded;
     }
 
-    public String getMeteringLabelRuleRemoteIPPrefix() {
-        return meteringLabelRuleRemoteIPPrefix;
+    public String getMeteringLabelRuleRemoteIpPrefix() {
+        return meteringLabelRuleRemoteIpPrefix;
     }
 
-    public void setMeteringLabelRuleRemoteIPPrefix(String prefix) {
-        this.meteringLabelRuleRemoteIPPrefix = prefix;
+    public void setMeteringLabelRuleRemoteIpPrefix(String prefix) {
+        this.meteringLabelRuleRemoteIpPrefix = prefix;
     }
 
     public String getMeteringLabelRuleLabelID() {
@@ -79,7 +79,7 @@ public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeterin
     public String toString() {
         return "NeutronMeteringLabelRule [id=" + uuid + ", tenantID=" + tenantID + ", direction="
                 + meteringLabelRuleDirection + ", excluded=" + meteringLabelRuleExcluded + ", remote_ip_prefix="
-                + meteringLabelRuleRemoteIPPrefix + ", metering_label_id=" + meteringLabelRuleLabelID + "]";
+                + meteringLabelRuleRemoteIpPrefix + ", metering_label_id=" + meteringLabelRuleLabelID + "]";
     }
 
     /**
@@ -102,7 +102,7 @@ public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeterin
                 ans.setMeteringLabelRuleExcluded(this.getMeteringLabelRuleExcluded());
             }
             if (s.equals("remote_ip_prefix")) {
-                ans.setMeteringLabelRuleRemoteIPPrefix(this.getMeteringLabelRuleRemoteIPPrefix());
+                ans.setMeteringLabelRuleRemoteIpPrefix(this.getMeteringLabelRuleRemoteIpPrefix());
             }
             if (s.equals("metering_label_id")) {
                 ans.setMeteringLabelRuleLabelID(this.getMeteringLabelRuleLabelID());
index 077ec8d5fc6d46e933cb1501b98240d90baae6cf..3788590cf47de780c531bb46f398ba196d1d4450 100644 (file)
@@ -34,7 +34,7 @@ public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> imple
     String macAddress;
 
     @XmlElement(name = "fixed_ips")
-    List<NeutronIPs> fixedIPs;
+    List<NeutronIps> fixedIps;
 
     @XmlElement(name = "device_id")
     String deviceID;
@@ -101,12 +101,12 @@ public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> imple
         this.macAddress = macAddress;
     }
 
-    public List<NeutronIPs> getFixedIPs() {
-        return fixedIPs;
+    public List<NeutronIps> getFixedIps() {
+        return fixedIps;
     }
 
-    public void setFixedIPs(List<NeutronIPs> fixedIPs) {
-        this.fixedIPs = fixedIPs;
+    public void setFixedIps(List<NeutronIps> fixedIps) {
+        this.fixedIps = fixedIps;
     }
 
     public String getDeviceID() {
@@ -221,7 +221,7 @@ public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> imple
                 ans.setMacAddress(this.getMacAddress());
             }
             if ("fixed_ips".equals(field)) {
-                ans.setFixedIPs(new ArrayList<NeutronIPs>(this.getFixedIPs()));
+                ans.setFixedIps(new ArrayList<NeutronIps>(this.getFixedIps()));
             }
             if ("device_id".equals(field)) {
                 ans.setDeviceID(this.getDeviceID());
@@ -268,15 +268,15 @@ public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> imple
         if (status == null) {
             status = "ACTIVE";
         }
-        if (fixedIPs == null) {
-            fixedIPs = new ArrayList<NeutronIPs>();
+        if (fixedIps == null) {
+            fixedIps = new ArrayList<NeutronIps>();
         }
     }
 
     @Override
     public String toString() {
         return "NeutronPort [portUUID=" + uuid + ", networkUUID=" + networkUUID + ", name=" + name + ", adminStateUp="
-                + adminStateUp + ", status=" + status + ", macAddress=" + macAddress + ", fixedIPs=" + fixedIPs
+                + adminStateUp + ", status=" + status + ", macAddress=" + macAddress + ", fixedIps=" + fixedIps
                 + ", deviceID=" + deviceID + ", deviceOwner=" + deviceOwner + ", tenantID=" + tenantID
                 + ", securityGroups=" + securityGroups + ", allowedAddressPairs" + allowedAddressPairs
                 + ", bindinghostID=" + bindinghostID + ", bindingvnicType=" + bindingvnicType + ", bindingvifType="
index 230727859934f64d6111c8dd62bd31e663d9d2be..a9cc849a9995f58d6c8a8f95952c88a5359d0c30 100644 (file)
@@ -30,7 +30,7 @@ public final class NeutronRouterNetworkReference implements Serializable {
     Boolean enableSNAT;
 
     @XmlElement(name = "external_fixed_ips")
-    List<NeutronIPs> externalFixedIPs;
+    List<NeutronIps> externalFixedIps;
 
     public NeutronRouterNetworkReference() {
     }
@@ -51,18 +51,18 @@ public final class NeutronRouterNetworkReference implements Serializable {
         this.enableSNAT = enableSNAT;
     }
 
-    public List<NeutronIPs> getExternalFixedIPs() {
-        return externalFixedIPs;
+    public List<NeutronIps> getExternalFixedIps() {
+        return externalFixedIps;
     }
 
-    public void setExternalFixedIPs(List<NeutronIPs> externalFixedIPs) {
-        this.externalFixedIPs = externalFixedIPs;
+    public void setExternalFixedIps(List<NeutronIps> externalFixedIps) {
+        this.externalFixedIps = externalFixedIps;
     }
 
     @Override
     public String toString() {
         return "NeutronRouterNetworkReference [networkID=" + networkID + " enableSNAT=" + enableSNAT
-                + " externalFixedIPs=" + externalFixedIPs + "]";
+                + " externalFixedIps=" + externalFixedIps + "]";
     }
 
 }
index 74cce4a64762aa4b229d2ffdfd3459d0b2050f98..99a0e0e3990c87b67898879ed0d01e4453cb46e8 100644 (file)
@@ -50,13 +50,13 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
     String cidr;
 
     @XmlElement(name = "gateway_ip")
-    String gatewayIP;
+    String gatewayIp;
 
     @XmlElement(name = "dns_nameservers")
     List<String> dnsNameservers;
 
     @XmlElement(name = "allocation_pools")
-    List<NeutronSubnetIPAllocationPool> allocationPools;
+    List<NeutronSubnetIpAllocationPool> allocationPools;
 
     @XmlElement(name = "host_routes")
     List<NeutronRoute> hostRoutes;
@@ -94,12 +94,12 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
         this.cidr = cidr;
     }
 
-    public String getGatewayIP() {
-        return gatewayIP;
+    public String getGatewayIp() {
+        return gatewayIp;
     }
 
-    public void setGatewayIP(String gatewayIP) {
-        this.gatewayIP = gatewayIP;
+    public void setGatewayIp(String gatewayIp) {
+        this.gatewayIp = gatewayIp;
     }
 
     public List<String> getDnsNameservers() {
@@ -110,11 +110,11 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
         this.dnsNameservers = dnsNameservers;
     }
 
-    public List<NeutronSubnetIPAllocationPool> getAllocationPools() {
+    public List<NeutronSubnetIpAllocationPool> getAllocationPools() {
         return allocationPools;
     }
 
-    public void setAllocationPools(List<NeutronSubnetIPAllocationPool> allocationPools) {
+    public void setAllocationPools(List<NeutronSubnetIpAllocationPool> allocationPools) {
         this.allocationPools = allocationPools;
     }
 
@@ -181,7 +181,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                 ans.setCidr(this.getCidr());
             }
             if (s.equals("gateway_ip")) {
-                ans.setGatewayIP(this.getGatewayIP());
+                ans.setGatewayIp(this.getGatewayIp());
             }
             if (s.equals("dns_nameservers")) {
                 List<String> nsList = new ArrayList<String>();
@@ -189,7 +189,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                 ans.setDnsNameservers(nsList);
             }
             if (s.equals("allocation_pools")) {
-                List<NeutronSubnetIPAllocationPool> pools = new ArrayList<NeutronSubnetIPAllocationPool>();
+                List<NeutronSubnetIpAllocationPool> pools = new ArrayList<NeutronSubnetIpAllocationPool>();
                 pools.addAll(this.getAllocationPools());
                 ans.setAllocationPools(pools);
             }
@@ -263,12 +263,12 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
      * allocation pools (an error condition when creating a new subnet
      * or assigning a gateway IP)
      */
-    public boolean gatewayIP_Pool_overlap() {
-        for (NeutronSubnetIPAllocationPool pool : allocationPools) {
-            if (ipVersion == IPV4_VERSION && pool.contains(gatewayIP)) {
+    public boolean gatewayIp_Pool_overlap() {
+        for (NeutronSubnetIpAllocationPool pool : allocationPools) {
+            if (ipVersion == IPV4_VERSION && pool.contains(gatewayIp)) {
                 return true;
             }
-            if (ipVersion == IPV6_VERSION && pool.containsV6(gatewayIP)) {
+            if (ipVersion == IPV6_VERSION && pool.containsV6(gatewayIp)) {
                 return true;
             }
         }
@@ -290,18 +290,18 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
             hostRoutes = new ArrayList<NeutronRoute>();
         }
         if (allocationPools == null) {
-            allocationPools = new ArrayList<NeutronSubnetIPAllocationPool>();
+            allocationPools = new ArrayList<NeutronSubnetIpAllocationPool>();
             if (ipVersion == IPV4_VERSION) {
                 try {
                     SubnetUtils util = new SubnetUtils(cidr);
                     SubnetInfo info = util.getInfo();
-                    if (gatewayIP == null || ("").equals(gatewayIP)) {
-                        gatewayIP = info.getLowAddress();
+                    if (gatewayIp == null || ("").equals(gatewayIp)) {
+                        gatewayIp = info.getLowAddress();
                     }
                     if (allocationPools.size() < 1) {
-                        NeutronSubnetIPAllocationPool source = new NeutronSubnetIPAllocationPool(info.getLowAddress(),
+                        NeutronSubnetIpAllocationPool source = new NeutronSubnetIpAllocationPool(info.getLowAddress(),
                                 info.getHighAddress());
-                        allocationPools = source.splitPool(gatewayIP);
+                        allocationPools = source.splitPool(gatewayIp);
                     }
                 } catch (IllegalArgumentException e) {
                     LOGGER.warn("Failure in initDefault()", e);
@@ -315,18 +315,18 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                 }
 
                 int length = Integer.parseInt(parts[1]);
-                BigInteger lowAddressBi = NeutronSubnetIPAllocationPool.convertV6(parts[0]);
-                String lowAddress = NeutronSubnetIPAllocationPool.bigIntegerToIP(lowAddressBi.add(BigInteger.ONE));
+                BigInteger lowAddressBi = NeutronSubnetIpAllocationPool.convertV6(parts[0]);
+                String lowAddress = NeutronSubnetIpAllocationPool.bigIntegerToIp(lowAddressBi.add(BigInteger.ONE));
                 BigInteger mask = BigInteger.ONE.shiftLeft(length).subtract(BigInteger.ONE);
-                String highAddress = NeutronSubnetIPAllocationPool
-                        .bigIntegerToIP(lowAddressBi.add(mask).subtract(BigInteger.ONE));
-                if (gatewayIP == null || ("").equals(gatewayIP)) {
-                    gatewayIP = lowAddress;
+                String highAddress = NeutronSubnetIpAllocationPool
+                        .bigIntegerToIp(lowAddressBi.add(mask).subtract(BigInteger.ONE));
+                if (gatewayIp == null || ("").equals(gatewayIp)) {
+                    gatewayIp = lowAddress;
                 }
                 if (allocationPools.size() < 1) {
-                    NeutronSubnetIPAllocationPool source = new NeutronSubnetIPAllocationPool(lowAddress,
+                    NeutronSubnetIpAllocationPool source = new NeutronSubnetIpAllocationPool(lowAddress,
                             highAddress);
-                    allocationPools = source.splitPoolV6(gatewayIP);
+                    allocationPools = source.splitPoolV6(gatewayIp);
                 }
             }
         }
@@ -335,14 +335,14 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
     /* this method tests to see if the supplied IPv4 address
      * is valid for this subnet or not
      */
-    public boolean isValidIP(String ipAddress) {
+    public boolean isValidIp(String ipAddress) {
         if (ipVersion == IPV4_VERSION) {
             try {
                 SubnetUtils util = new SubnetUtils(cidr);
                 SubnetInfo info = util.getInfo();
                 return info.isInRange(ipAddress);
             } catch (IllegalArgumentException e) {
-                LOGGER.warn("Failure in isValidIP()", e);
+                LOGGER.warn("Failure in isValidIp()", e);
                 return false;
             }
         }
@@ -363,7 +363,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
                 }
                 return (true);
             } catch (UnknownHostException e) {
-                LOGGER.warn("Failure in isValidIP()", e);
+                LOGGER.warn("Failure in isValidIp()", e);
                 return (false);
             }
         }
@@ -376,16 +376,16 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
      */
     public String getLowAddr() {
         String ans = null;
-        for (NeutronSubnetIPAllocationPool pool : allocationPools) {
+        for (NeutronSubnetIpAllocationPool pool : allocationPools) {
             if (ans == null) {
                 ans = pool.getPoolStart();
             } else {
-                if (ipVersion == IPV4_VERSION && NeutronSubnetIPAllocationPool
-                        .convert(pool.getPoolStart()) < NeutronSubnetIPAllocationPool.convert(ans)) {
+                if (ipVersion == IPV4_VERSION && NeutronSubnetIpAllocationPool
+                        .convert(pool.getPoolStart()) < NeutronSubnetIpAllocationPool.convert(ans)) {
                     ans = pool.getPoolStart();
                 }
-                if (ipVersion == IPV6_VERSION && NeutronSubnetIPAllocationPool.convertV6(pool.getPoolStart())
-                        .compareTo(NeutronSubnetIPAllocationPool.convertV6(ans)) < 0) {
+                if (ipVersion == IPV6_VERSION && NeutronSubnetIpAllocationPool.convertV6(pool.getPoolStart())
+                        .compareTo(NeutronSubnetIpAllocationPool.convertV6(ans)) < 0) {
                     ans = pool.getPoolStart();
                 }
             }
@@ -396,7 +396,7 @@ public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> im
     @Override
     public String toString() {
         return "NeutronSubnet [subnetUUID=" + uuid + ", networkUUID=" + networkUUID + ", name=" + name + ", ipVersion="
-                + ipVersion + ", cidr=" + cidr + ", gatewayIP=" + gatewayIP + ", dnsNameservers=" + dnsNameservers
+                + ipVersion + ", cidr=" + cidr + ", gatewayIp=" + gatewayIp + ", dnsNameservers=" + dnsNameservers
                 + ", allocationPools=" + allocationPools + ", hostRoutes=" + hostRoutes + ", enableDHCP=" + enableDHCP
                 + ", tenantID=" + tenantID + ", ipv6AddressMode=" + ipV6AddressMode + ", ipv6RaMode=" + ipV6RaMode
                 + "]";
similarity index 74%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnetIPAllocationPool.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnetIpAllocationPool.java
index 73edd04e93f6e71b8f0097298d301feef5baa370..af16c9753f87d500616bd8cbca23cfc2c7da107d 100644 (file)
@@ -24,8 +24,8 @@ import org.slf4j.LoggerFactory;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSubnetIPAllocationPool implements Serializable {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSubnetIPAllocationPool.class);
+public final class NeutronSubnetIpAllocationPool implements Serializable {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronSubnetIpAllocationPool.class);
 
     private static final long serialVersionUID = 1L;
 
@@ -43,10 +43,10 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
     @XmlElement(name = "end")
     String poolEnd;
 
-    public NeutronSubnetIPAllocationPool() {
+    public NeutronSubnetIpAllocationPool() {
     }
 
-    public NeutronSubnetIPAllocationPool(String lowAddress, String highAddress) {
+    public NeutronSubnetIpAllocationPool(String lowAddress, String highAddress) {
         poolStart = lowAddress;
         poolEnd = highAddress;
     }
@@ -77,10 +77,10 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      */
 
     public boolean contains(String inputString) {
-        long inputIP = convert(inputString);
-        long startIP = convert(poolStart);
-        long endIP = convert(poolEnd);
-        return inputIP >= startIP && inputIP <= endIP;
+        long inputIp = convert(inputString);
+        long startIp = convert(poolStart);
+        long endIp = convert(poolEnd);
+        return inputIp >= startIp && inputIp <= endIp;
     }
 
     /**
@@ -115,10 +115,10 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      */
 
     public boolean containsV6(String inputString) {
-        BigInteger inputIP = convertV6(inputString);
-        BigInteger startIP = convertV6(poolStart);
-        BigInteger endIP = convertV6(poolEnd);
-        return inputIP.compareTo(startIP) >= 0 && inputIP.compareTo(endIP) <= 0;
+        BigInteger inputIp = convertV6(inputString);
+        BigInteger startIp = convertV6(poolStart);
+        BigInteger endIp = convertV6(poolEnd);
+        return inputIp.compareTo(startIp) >= 0 && inputIp.compareTo(endIp) <= 0;
     }
 
     /**
@@ -151,7 +151,7 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      *            high-endian representation of the IPv4 address as a long
      * @return IPv4 address in dotted decimal format
      */
-    static String longToIP(long input) {
+    static String longToIp(long input) {
         int part;
         long ipLong = input;
         String[] parts = new String[IPV4_DOTTED_QUADS];
@@ -170,17 +170,17 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      *            high-endian representation of the IPv4 address as a long
      * @return IPv4 address in dotted decimal format
      */
-    static String bigIntegerToIP(BigInteger ipv4BigInteger) {
+    static String bigIntegerToIp(BigInteger ipv4BigInteger) {
         try {
             return Inet6Address.getByAddress(ipv4BigInteger.toByteArray()).getHostAddress();
         } catch (UnknownHostException e) {
-            LOGGER.error("bigIntegerToIP", e);
+            LOGGER.error("bigIntegerToIp", e);
             return "ERROR";
         }
     }
 
     /*
-     * helper routine used by longToIP
+     * helper routine used by longToIp
      */
     public static String join(String[] strings, String separator) {
         if (strings.length == 0) {
@@ -207,13 +207,13 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      * create two new instances, one ranging from low to parameter-1
      * the other ranging from parameter+1 to high
      */
-    public List<NeutronSubnetIPAllocationPool> splitPool(String ipAddress) {
-        List<NeutronSubnetIPAllocationPool> ans = new ArrayList<>();
-        long givenIp = NeutronSubnetIPAllocationPool.convert(ipAddress);
-        long startIp = NeutronSubnetIPAllocationPool.convert(poolStart);
-        long endIp = NeutronSubnetIPAllocationPool.convert(poolEnd);
+    public List<NeutronSubnetIpAllocationPool> splitPool(String ipAddress) {
+        List<NeutronSubnetIpAllocationPool> ans = new ArrayList<>();
+        long givenIp = NeutronSubnetIpAllocationPool.convert(ipAddress);
+        long startIp = NeutronSubnetIpAllocationPool.convert(poolStart);
+        long endIp = NeutronSubnetIpAllocationPool.convert(poolEnd);
         long ipaddr;
-        NeutronSubnetIPAllocationPool pool = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool pool = new NeutronSubnetIpAllocationPool();
         boolean poolStarted = false;
         for (ipaddr = startIp; ipaddr <= endIp; ipaddr++) {
             if (ipaddr == startIp) {
@@ -222,30 +222,30 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
                     poolStarted = true;
                 } else {
                     //FIX for bug 533
-                    pool.setPoolStart(NeutronSubnetIPAllocationPool.longToIP(ipaddr + 1));
+                    pool.setPoolStart(NeutronSubnetIpAllocationPool.longToIp(ipaddr + 1));
                 }
             }
             if (ipaddr == endIp) {
                 if (ipaddr != givenIp) {
                     pool.setPoolEnd(poolEnd);
                 } else {
-                    pool.setPoolEnd(NeutronSubnetIPAllocationPool.longToIP(ipaddr - 1));
+                    pool.setPoolEnd(NeutronSubnetIpAllocationPool.longToIp(ipaddr - 1));
                 }
                 ans.add(pool);
             }
             if (ipaddr != startIp && ipaddr != endIp) {
                 if (ipaddr != givenIp) {
                     if (!poolStarted) {
-                        pool.setPoolStart(NeutronSubnetIPAllocationPool.longToIP(ipaddr));
+                        pool.setPoolStart(NeutronSubnetIpAllocationPool.longToIp(ipaddr));
                         poolStarted = true;
                     }
                 } else {
-                    pool.setPoolEnd(NeutronSubnetIPAllocationPool.longToIP(ipaddr - 1));
+                    pool.setPoolEnd(NeutronSubnetIpAllocationPool.longToIp(ipaddr - 1));
                     poolStarted = false;
                     ans.add(pool);
-                    pool = new NeutronSubnetIPAllocationPool();
+                    pool = new NeutronSubnetIpAllocationPool();
                     // Fix for 2120
-                    pool.setPoolStart(NeutronSubnetIPAllocationPool.longToIP(ipaddr + 1));
+                    pool.setPoolStart(NeutronSubnetIpAllocationPool.longToIp(ipaddr + 1));
                     poolStarted = true;
                 }
             }
@@ -255,7 +255,7 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
 
     @Override
     public String toString() {
-        return "NeutronSubnetIPAllocationPool [" + "start=" + poolStart + ", end=" + poolEnd + "]";
+        return "NeutronSubnetIpAllocationPool [" + "start=" + poolStart + ", end=" + poolEnd + "]";
     }
 
     /*
@@ -271,32 +271,32 @@ public final class NeutronSubnetIPAllocationPool implements Serializable {
      * the other ranging from parameter+1 to high
      * If the pool is a single address, return null
      */
-    public List<NeutronSubnetIPAllocationPool> splitPoolV6(String ipAddress) {
-        List<NeutronSubnetIPAllocationPool> ans = new ArrayList<>();
-        BigInteger givenIp = NeutronSubnetIPAllocationPool.convertV6(ipAddress);
-        BigInteger startIp = NeutronSubnetIPAllocationPool.convertV6(poolStart);
-        BigInteger endIp = NeutronSubnetIPAllocationPool.convertV6(poolEnd);
+    public List<NeutronSubnetIpAllocationPool> splitPoolV6(String ipAddress) {
+        List<NeutronSubnetIpAllocationPool> ans = new ArrayList<>();
+        BigInteger givenIp = NeutronSubnetIpAllocationPool.convertV6(ipAddress);
+        BigInteger startIp = NeutronSubnetIpAllocationPool.convertV6(poolStart);
+        BigInteger endIp = NeutronSubnetIpAllocationPool.convertV6(poolEnd);
         if (givenIp.compareTo(startIp) == 0 && givenIp.compareTo(endIp) < 0) {
-            NeutronSubnetIPAllocationPool pool = new NeutronSubnetIPAllocationPool();
-            pool.setPoolStart(NeutronSubnetIPAllocationPool.bigIntegerToIP(startIp.add(BigInteger.ONE)));
+            NeutronSubnetIpAllocationPool pool = new NeutronSubnetIpAllocationPool();
+            pool.setPoolStart(NeutronSubnetIpAllocationPool.bigIntegerToIp(startIp.add(BigInteger.ONE)));
             pool.setPoolEnd(poolEnd);
             ans.add(pool);
             return ans;
         }
         if (givenIp.compareTo(endIp) == 0 && givenIp.compareTo(startIp) > 0) {
-            NeutronSubnetIPAllocationPool pool = new NeutronSubnetIPAllocationPool();
+            NeutronSubnetIpAllocationPool pool = new NeutronSubnetIpAllocationPool();
             pool.setPoolStart(poolStart);
-            pool.setPoolEnd(NeutronSubnetIPAllocationPool.bigIntegerToIP(endIp.subtract(BigInteger.ONE)));
+            pool.setPoolEnd(NeutronSubnetIpAllocationPool.bigIntegerToIp(endIp.subtract(BigInteger.ONE)));
             ans.add(pool);
             return ans;
         }
         if (givenIp.compareTo(endIp) < 0 && givenIp.compareTo(startIp) > 0) {
-            NeutronSubnetIPAllocationPool pool = new NeutronSubnetIPAllocationPool();
+            NeutronSubnetIpAllocationPool pool = new NeutronSubnetIpAllocationPool();
             pool.setPoolStart(poolStart);
-            pool.setPoolEnd(NeutronSubnetIPAllocationPool.bigIntegerToIP(givenIp.subtract(BigInteger.ONE)));
+            pool.setPoolEnd(NeutronSubnetIpAllocationPool.bigIntegerToIp(givenIp.subtract(BigInteger.ONE)));
             ans.add(pool);
-            NeutronSubnetIPAllocationPool p2 = new NeutronSubnetIPAllocationPool();
-            p2.setPoolStart(NeutronSubnetIPAllocationPool.bigIntegerToIP(givenIp.add(BigInteger.ONE)));
+            NeutronSubnetIpAllocationPool p2 = new NeutronSubnetIpAllocationPool();
+            p2.setPoolStart(NeutronSubnetIpAllocationPool.bigIntegerToIp(givenIp.add(BigInteger.ONE)));
             p2.setPoolEnd(poolEnd);
             ans.add(p2);
             return ans;
similarity index 92%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNDeadPeerDetection.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnDeadPeerDetection.java
index 162655411cf19982499b7f3da0836b7a749e17db..b928bcc2b34ec20ae246975ee96747036ad80bcf 100644 (file)
@@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNDeadPeerDetection implements Serializable {
+public final class NeutronVpnDeadPeerDetection implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -31,7 +31,7 @@ public final class NeutronVPNDeadPeerDetection implements Serializable {
     @XmlElement(name = "timeout")
     Integer timeout;
 
-    public NeutronVPNDeadPeerDetection() {
+    public NeutronVpnDeadPeerDetection() {
     }
 
     public String getAction() {
similarity index 87%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIKEPolicy.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIkePolicy.java
index 38284c108f38b0b097f22e7d949a84e690262aa1..8bf05b85ca215d89ce1c7c1101b127760b286320 100644 (file)
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIKEPolicy extends NeutronBaseAttributes<NeutronVPNIKEPolicy> implements Serializable {
+public final class NeutronVpnIkePolicy extends NeutronBaseAttributes<NeutronVpnIkePolicy> implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -39,9 +39,9 @@ public final class NeutronVPNIKEPolicy extends NeutronBaseAttributes<NeutronVPNI
     String ikeVersion;
 
     @XmlElement(name = "lifetime")
-    NeutronVPNLifetime lifetime;
+    NeutronVpnLifetime lifetime;
 
-    public NeutronVPNIKEPolicy() {
+    public NeutronVpnIkePolicy() {
     }
 
     public String getAuthAlgorithm() {
@@ -84,11 +84,11 @@ public final class NeutronVPNIKEPolicy extends NeutronBaseAttributes<NeutronVPNI
         this.ikeVersion = ikeVersion;
     }
 
-    public NeutronVPNLifetime getLifetime() {
+    public NeutronVpnLifetime getLifetime() {
         return lifetime;
     }
 
-    public void setLifetime(NeutronVPNLifetime lifetime) {
+    public void setLifetime(NeutronVpnLifetime lifetime) {
         this.lifetime = lifetime;
     }
 
@@ -98,11 +98,11 @@ public final class NeutronVPNIKEPolicy extends NeutronBaseAttributes<NeutronVPNI
      *
      * @param fields
      *            List of attributes to be extracted
-     * @return a NeutronVPNIKEPolicy object with only the selected fields
+     * @return a NeutronVpnIkePolicy object with only the selected fields
      *             populated
      */
-    public NeutronVPNIKEPolicy extractFields(List<String> fields) {
-        NeutronVPNIKEPolicy ans = new NeutronVPNIKEPolicy();
+    public NeutronVpnIkePolicy extractFields(List<String> fields) {
+        NeutronVpnIkePolicy ans = new NeutronVpnIkePolicy();
         for (String s : fields) {
             extractField(s, ans);
             if (s.equals("auth_algorithm")) {
similarity index 87%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIPSECPolicy.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIpSecPolicy.java
index 63bfb5fd8e4f208217c9e9388a90d914b9b79732..fb507e92617d0cae0dbd695d838619b68bddf892 100644 (file)
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIPSECPolicy extends NeutronBaseAttributes<NeutronVPNIPSECPolicy> implements Serializable {
+public final class NeutronVpnIpSecPolicy extends NeutronBaseAttributes<NeutronVpnIpSecPolicy> implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -39,9 +39,9 @@ public final class NeutronVPNIPSECPolicy extends NeutronBaseAttributes<NeutronVP
     String perfectForwardSecrecy;
 
     @XmlElement(name = "lifetime")
-    NeutronVPNLifetime lifetime;
+    NeutronVpnLifetime lifetime;
 
-    public NeutronVPNIPSECPolicy() {
+    public NeutronVpnIpSecPolicy() {
     }
 
     public String getTransformProtocol() {
@@ -84,11 +84,11 @@ public final class NeutronVPNIPSECPolicy extends NeutronBaseAttributes<NeutronVP
         this.perfectForwardSecrecy = perfectForwardSecrecy;
     }
 
-    public NeutronVPNLifetime getLifetime() {
+    public NeutronVpnLifetime getLifetime() {
         return lifetime;
     }
 
-    public void setLifetime(NeutronVPNLifetime lifetime) {
+    public void setLifetime(NeutronVpnLifetime lifetime) {
         this.lifetime = lifetime;
     }
 
@@ -98,11 +98,11 @@ public final class NeutronVPNIPSECPolicy extends NeutronBaseAttributes<NeutronVP
      *
      * @param fields
      *            List of attributes to be extracted
-     * @return a NeutronVPNIPSECPolicy object with only the selected fields
+     * @return a NeutronVpnIpSecPolicy object with only the selected fields
      *             populated
      */
-    public NeutronVPNIPSECPolicy extractFields(List<String> fields) {
-        NeutronVPNIPSECPolicy ans = new NeutronVPNIPSECPolicy();
+    public NeutronVpnIpSecPolicy extractFields(List<String> fields) {
+        NeutronVpnIpSecPolicy ans = new NeutronVpnIpSecPolicy();
         for (String s : fields) {
             extractField(s, ans);
             if (s.equals("transform_protocol")) {
similarity index 90%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNIPSECSiteConnection.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnIpSecSiteConnection.java
index cada350249bc936de89263e05484e1bdcd4be4ee..067c590ce74fdc70ae7966915d5efa6f2d94ec07 100644 (file)
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIPSECSiteConnection extends NeutronAdminAttributes<NeutronVPNIPSECSiteConnection>
+public final class NeutronVpnIpSecSiteConnection extends NeutronAdminAttributes<NeutronVpnIpSecSiteConnection>
         implements Serializable {
     private static final long serialVersionUID = 1L;
 
@@ -58,9 +58,9 @@ public final class NeutronVPNIPSECSiteConnection extends NeutronAdminAttributes<
     String vpnServiceID;
 
     @XmlElement(name = "dpd")
-    NeutronVPNDeadPeerDetection deadPeerDetection;
+    NeutronVpnDeadPeerDetection deadPeerDetection;
 
-    public NeutronVPNIPSECSiteConnection() {
+    public NeutronVpnIpSecSiteConnection() {
     }
 
     public String getPeerAddress() {
@@ -151,11 +151,11 @@ public final class NeutronVPNIPSECSiteConnection extends NeutronAdminAttributes<
         this.vpnServiceID = vpnServiceID;
     }
 
-    public NeutronVPNDeadPeerDetection getDeadPeerDetection() {
+    public NeutronVpnDeadPeerDetection getDeadPeerDetection() {
         return deadPeerDetection;
     }
 
-    public void setDeadPeerDetection(NeutronVPNDeadPeerDetection deadPeerDetection) {
+    public void setDeadPeerDetection(NeutronVpnDeadPeerDetection deadPeerDetection) {
         this.deadPeerDetection = deadPeerDetection;
     }
 
@@ -165,12 +165,12 @@ public final class NeutronVPNIPSECSiteConnection extends NeutronAdminAttributes<
      *
      * @param fields
      *            List of attributes to be extracted
-     * @return a NeutronVPNIPSECSiteConnection object with only the selected
+     * @return a NeutronVpnIpSecSiteConnection object with only the selected
      *         fields populated
      */
 
-    public NeutronVPNIPSECSiteConnection extractFields(List<String> fields) {
-        NeutronVPNIPSECSiteConnection ans = new NeutronVPNIPSECSiteConnection();
+    public NeutronVpnIpSecSiteConnection extractFields(List<String> fields) {
+        NeutronVpnIpSecSiteConnection ans = new NeutronVpnIpSecSiteConnection();
         for (String s : fields) {
             extractField(s, ans);
             if (s.equals("peer_address")) {
@@ -209,7 +209,7 @@ public final class NeutronVPNIPSECSiteConnection extends NeutronAdminAttributes<
 
     @Override
     public String toString() {
-        return "NeutronVPNIPSECSiteConnection{" + "id='" + uuid + '\'' + ", tenantID='" + tenantID + '\'' + ", name='"
+        return "NeutronVpnIpSecSiteConnection{" + "id='" + uuid + '\'' + ", tenantID='" + tenantID + '\'' + ", name='"
                 + name + '\'' + ", peerAddress=" + peerAddress + ", peerID='" + peerID + '\'' + ", routeMode='"
                 + routeMode + '\'' + ", mtu=" + mtu + ", authMode='" + authMode + '\'' + ", preSharedKey='"
                 + preSharedKey + '\'' + ", initiator='" + initiator + '\'' + ", adminStateUp=" + adminStateUp
similarity index 92%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNLifetime.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnLifetime.java
index 28798aa9843026efe28977b26a44be81f5bae8f0..9d78b245750d89d24bfa3b1472ac630b490bc2f7 100644 (file)
@@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNLifetime implements Serializable {
+public final class NeutronVpnLifetime implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -28,7 +28,7 @@ public final class NeutronVPNLifetime implements Serializable {
     @XmlElement(name = "value")
     Integer value;
 
-    public NeutronVPNLifetime() {
+    public NeutronVpnLifetime() {
     }
 
     public String getUnits() {
similarity index 85%
rename from neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVPNService.java
rename to neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronVpnService.java
index 6ccdd500a4d18c3bf51dcd4ebfc6ae112bc02aeb..983913f0aec6ce344b0067ce9f2c0815c4889daa 100644 (file)
@@ -17,7 +17,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNService extends NeutronAdminAttributes<NeutronVPNService> implements Serializable {
+public final class NeutronVpnService extends NeutronAdminAttributes<NeutronVpnService> implements Serializable {
     private static final long serialVersionUID = 1L;
 
     // See OpenStack Network API v2.0 Reference for description of
@@ -29,7 +29,7 @@ public final class NeutronVPNService extends NeutronAdminAttributes<NeutronVPNSe
     @XmlElement(name = "subnet_id")
     String subnetUUID;
 
-    public NeutronVPNService() {
+    public NeutronVpnService() {
     }
 
     public String getRouterUUID() {
@@ -48,8 +48,8 @@ public final class NeutronVPNService extends NeutronAdminAttributes<NeutronVPNSe
         this.subnetUUID = subnetUUID;
     }
 
-    public NeutronVPNService extractFields(List<String> fields) {
-        NeutronVPNService ans = new NeutronVPNService();
+    public NeutronVpnService extractFields(List<String> fields) {
+        NeutronVpnService ans = new NeutronVpnService();
         for (String s : fields) {
             extractField(s, ans);
             if (s.equals("router_id")) {
similarity index 67%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronFloatingIPJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronFloatingIpJAXBTest.java
index 7fafa6d3e906667bad9865e6f28e9225b1222d16..25f055b2695ace93bb037d5dcd56d23d0a1f1f61 100644 (file)
@@ -12,7 +12,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronFloatingIPJAXBTest {
+public class NeutronFloatingIpJAXBTest {
 
     private static final String NEUTRON_FLOATING_IP_SOURCE_JSON = "{" + "\"fixed_ip_address\": \"10.0.0.3\", "
             + "\"floating_ip_address\": \"172.24.4.228\", "
@@ -23,33 +23,33 @@ public class NeutronFloatingIPJAXBTest {
             + "\"tenant_id\": \"4969c491a3c74ee4af974e6d800c62de\" }";
 
     @Test
-    public void test_NeutronFloatingIP_JAXB() throws JAXBException {
-        NeutronFloatingIP dummyObject = new NeutronFloatingIP();
+    public void test_NeutronFloatingIp_JAXB() throws JAXBException {
+        NeutronFloatingIp dummyObject = new NeutronFloatingIp();
 
-        NeutronFloatingIP testObject = (NeutronFloatingIP) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+        NeutronFloatingIp testObject = (NeutronFloatingIp) JaxbTestHelper.jaxbUnmarshall(dummyObject,
                 NEUTRON_FLOATING_IP_SOURCE_JSON);
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 1: Testing id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 1: Testing id failed",
                 "2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 2: Testing tenant_id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 2: Testing tenant_id failed",
                 "4969c491a3c74ee4af974e6d800c62de", testObject.getTenantID());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 3: Testing router id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 3: Testing router id failed",
                 "d23abc8d-2991-4a55-ba98-2aaea84cc72f", testObject.getRouterUUID());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 4: Testing port id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 4: Testing port id failed",
                 "ce705c24-c1ef-408a-bda3-7bbd946164ab", testObject.getPortUUID());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 5: Testing floating network id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 5: Testing floating network id failed",
                 "376da547-b977-4cfe-9cba-275c80debf57", testObject.getFloatingNetworkUUID());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 6: Testing floating ip address failed", "172.24.4.228",
-                testObject.getFloatingIPAddress());
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 6: Testing floating ip address failed", "172.24.4.228",
+                testObject.getFloatingIpAddress());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 7: Testing fixed ip address failed", "10.0.0.3",
-                testObject.getFixedIPAddress());
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 7: Testing fixed ip address failed", "10.0.0.3",
+                testObject.getFixedIpAddress());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 8: Testing status failed", "ACTIVE",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 8: Testing status failed", "ACTIVE",
                 testObject.getStatus());
     }
 }
similarity index 96%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIDJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIdJAXBTest.java
index cdabf18ce779877a276cd56ebcb9ecbd060fbedd..17df660f2deefd89a62f422389cb3c8f9f69e09e 100644 (file)
@@ -12,7 +12,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronIDJAXBTest {
+public class NeutronIdJAXBTest {
 
     private static final String NEUTRON_ID_SOURCE_JSON =
             "{ \"id\": \"4e8e5957-649f-477b-9e5b-f1f75b21c03c\" }";
similarity index 71%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIPsJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronIpsJAXBTest.java
index a05910eaff4644befdd45de57bda26caf82db600..79719d5f3c0d73b592e938e7f15c648773ac5081 100644 (file)
@@ -12,20 +12,20 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronIPsJAXBTest {
+public class NeutronIpsJAXBTest {
 
     private static final String NEUTRON_IPS_SOURCE_JSON =
             "{ \"ip_address\": \"192.168.111.3\", " + "\"subnet_id\": \"22b44fc2-4ffb-4de4-b0f9-69d58b37ae27\" }";
 
     @Test
-    public void test_NeutronIPs_JAXB() throws JAXBException {
-        NeutronIPs neutronObject = new NeutronIPs();
-        NeutronIPs testObject = (NeutronIPs) JaxbTestHelper.jaxbUnmarshall(neutronObject, NEUTRON_IPS_SOURCE_JSON);
+    public void test_NeutronIps_JAXB() throws JAXBException {
+        NeutronIps neutronObject = new NeutronIps();
+        NeutronIps testObject = (NeutronIps) JaxbTestHelper.jaxbUnmarshall(neutronObject, NEUTRON_IPS_SOURCE_JSON);
 
-        Assert.assertEquals("NeutronIPs JAXB Test 1: Testing ip_address failed", "192.168.111.3",
+        Assert.assertEquals("NeutronIps JAXB Test 1: Testing ip_address failed", "192.168.111.3",
                     testObject.getIpAddress());
 
-        Assert.assertEquals("NeutronIPs JAXB Test 2: Testing subnet_id failed",
+        Assert.assertEquals("NeutronIps JAXB Test 2: Testing subnet_id failed",
                     "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", testObject.getSubnetUUID());
     }
 }
index 54a54c7279c09f3d1141acb0e6e0b30eeda0f0fd..83666f1273aa258c9d90f89945c3d2e154774f24 100644 (file)
@@ -29,7 +29,7 @@ public class NeutronMeteringLabelRuleJAXBTest {
                 "e131d186-b02d-4c0b-83d5-0c0725c4f812", testObject.getMeteringLabelRuleLabelID());
 
         Assert.assertEquals("NeutronMeteringLabelRule JAXB Test 2: Testing remote_ip_prefix failed", "10.0.0.0/24",
-                testObject.getMeteringLabelRuleRemoteIPPrefix());
+                testObject.getMeteringLabelRuleRemoteIpPrefix());
 
         Assert.assertEquals("NeutronMeteringLabelRule JAXB Test 3: Testing direction failed", "ingress",
                 testObject.getMeteringLabelRuleDirection());
index 083b339d0710f924014661e5b67b62bcc63db443..6846daa2527f8501580b9fa2cd2824f6ab60657f 100644 (file)
@@ -44,14 +44,14 @@ public class NeutronPortJAXBTest {
 
         Assert.assertEquals("NeutronPort JAXB Test 4: Testing status failed", "ACTIVE", neutronObject.getStatus());
 
-        List<NeutronIPs> fixedIPs = neutronObject.getFixedIPs();
-        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIPs.size());
+        List<NeutronIps> fixedIps = neutronObject.getFixedIps();
+        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIps.size());
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.2: Testing ip_address value failed", "192.168.111.3",
-                fixedIPs.get(0).ipAddress);
+                fixedIps.get(0).ipAddress);
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.3: Testing subnet_id value failed",
-                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIPs.get(0).subnetUUID);
+                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIps.get(0).subnetUUID);
 
         List<NeutronPortExtraDHCPOption> extraDHCPOptions = neutronObject.getExtraDHCPOptions();
 
index d91d728e6ed19993ee34e825554623a8630a7217..cbc12a43b366fcf8975465fd5268a5983771b4e0 100644 (file)
@@ -47,14 +47,14 @@ public class NeutronPortQosJAXBTest {
 
         Assert.assertEquals("NeutronPort JAXB Test 4: Testing status failed", "ACTIVE", neutronObject.getStatus());
 
-        List<NeutronIPs> fixedIPs = neutronObject.getFixedIPs();
-        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIPs.size());
+        List<NeutronIps> fixedIps = neutronObject.getFixedIps();
+        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIps.size());
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.2: Testing ip_address value failed", "192.168.111.3",
-                fixedIPs.get(0).ipAddress);
+                fixedIps.get(0).ipAddress);
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.3: Testing subnet_id value failed",
-                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIPs.get(0).subnetUUID);
+                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIps.get(0).subnetUUID);
 
         List<NeutronPortExtraDHCPOption> extraDHCPOptions = neutronObject.getExtraDHCPOptions();
 
index 76971d00b866585113751276a5d49721db1b7d18..3a93cc9f296993cefbfc2d5ec8cca9faa436e00e 100644 (file)
@@ -92,14 +92,14 @@ public class NeutronPortSecurityJAXBTest {
 
         Assert.assertEquals("NeutronPort JAXB Test 4: Testing status failed", "ACTIVE", neutronObject.getStatus());
 
-        List<NeutronIPs> fixedIPs = neutronObject.getFixedIPs();
-        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIPs.size());
+        List<NeutronIps> fixedIps = neutronObject.getFixedIps();
+        Assert.assertEquals(" NeutronPort JAXB Test 5.1: Testing fixed_ips list length failed", 1, fixedIps.size());
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.2: Testing ip_address value failed", "192.168.111.3",
-                fixedIPs.get(0).ipAddress);
+                fixedIps.get(0).ipAddress);
 
         Assert.assertEquals(" NeutronPort JAXB Test 5.3: Testing subnet_id value failed",
-                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIPs.get(0).subnetUUID);
+                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", fixedIps.get(0).subnetUUID);
 
         List<NeutronPortExtraDHCPOption> extraDHCPOptions = neutronObject.getExtraDHCPOptions();
 
index e4f7c67f1cf41eb4eadc8eb89ac1230019b759f5..e9fdff7cd00bf4d2d7671814b7bbcf142cab060e 100644 (file)
@@ -42,7 +42,7 @@ public class NeutronRouterJAXBTest {
 
         Assert.assertEquals("NeutronRouter JAXB Test 4: Testing status failed", "ACTIVE", testObject.getStatus());
 
-        Assert.assertEquals("NeutronFloatingIP JAXB Test 5: Testing tenant_id failed",
+        Assert.assertEquals("NeutronFloatingIp JAXB Test 5: Testing tenant_id failed",
                 "aa902936679e4ea29bfe1158e3450a13", testObject.getTenantID());
 
         Assert.assertEquals("NeutronRouter JAXB Test 6: Testing externalGatewayInfo failed",
index 597d144b1ce23fce49917514b9a8a4de4f48678e..f64846ed92d550c238c045c767704ddf42267278 100644 (file)
@@ -28,7 +28,7 @@ public class NeutronRouterNetworkReferenceJAXBTest {
         NeutronRouterNetworkReference testObject = (NeutronRouterNetworkReference) JaxbTestHelper
                 .jaxbUnmarshall(dummyObject, NEUTRON_ROUTER_NETWORK_REFERENCE_SOURCE_JSON);
 
-        List<NeutronIPs> externalFixedIPs = testObject.getExternalFixedIPs();
+        List<NeutronIps> externalFixedIps = testObject.getExternalFixedIps();
 
         Assert.assertEquals("NeutronRouterNetworkReference JAXB Test 1: Testing network_id failed",
                 "e9330b1f-a2ef-4160-a991-169e56ab17f6", testObject.getNetworkID());
@@ -37,13 +37,13 @@ public class NeutronRouterNetworkReferenceJAXBTest {
                 testObject.getEnableSNAT());
 
         Assert.assertEquals(
-                "NeutronRouterNetworkReference JAXB Test 3.1: Testing externalFixedIPs list length failed", 1,
-                externalFixedIPs.size());
+                "NeutronRouterNetworkReference JAXB Test 3.1: Testing externalFixedIps list length failed", 1,
+                externalFixedIps.size());
 
         Assert.assertEquals("NeutronRouterNetworkReference JAXB Test 3.2: Testing ip_address value failed",
-                "192.168.111.3", externalFixedIPs.get(0).ipAddress);
+                "192.168.111.3", externalFixedIps.get(0).ipAddress);
 
         Assert.assertEquals("NeutronRouterNetworkReference JAXB Test 3.3: Testing subnet_id value failed",
-                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", externalFixedIPs.get(0).subnetUUID);
+                "22b44fc2-4ffb-4de4-b0f9-69d58b37ae27", externalFixedIps.get(0).subnetUUID);
     }
 }
similarity index 86%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetIPAllocationPoolTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronSubnetIpAllocationPoolTest.java
index 743f2899e9d874e9508206534e2a0870ded597ad..c2c14b760b7801cd801c6c9638633d4bef1e1286 100644 (file)
@@ -13,47 +13,47 @@ import java.util.List;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronSubnetIPAllocationPoolTest {
+public class NeutronSubnetIpAllocationPoolTest {
     @Test
     public void convertTest() {
-        Assert.assertEquals("Convert Test 1: null Argument failed", 0, NeutronSubnetIPAllocationPool.convert(null));
+        Assert.assertEquals("Convert Test 1: null Argument failed", 0, NeutronSubnetIpAllocationPool.convert(null));
 
         Assert.assertEquals("Convert Test 2: convert of 32.20.10.0 failed", 538184192,
-                NeutronSubnetIPAllocationPool.convert("32.20.10.0"));
+                NeutronSubnetIpAllocationPool.convert("32.20.10.0"));
 
         Assert.assertEquals("Convert Test 3: convert of 192.168.2.140 failed", 3232236172L,
-                NeutronSubnetIPAllocationPool.convert("192.168.2.140"));
+                NeutronSubnetIpAllocationPool.convert("192.168.2.140"));
     }
 
     @Test
     public void convertV6Test() {
-        boolean result = BigInteger.ZERO.equals(NeutronSubnetIPAllocationPool.convertV6(null));
+        boolean result = BigInteger.ZERO.equals(NeutronSubnetIpAllocationPool.convertV6(null));
         Assert.assertTrue("Convert V6 Test 1: null Argument failed", result);
 
         result = new BigInteger("42550872755692912415807417417958686721")
-                .equals(NeutronSubnetIPAllocationPool.convertV6("2003:0:0:0:0:0:0:1"));
+                .equals(NeutronSubnetIpAllocationPool.convertV6("2003:0:0:0:0:0:0:1"));
         Assert.assertTrue("Convert V6 Test 2: 2003:0:0:0:0:0:0:1 Argument failed", result);
     }
 
     @Test
-    public void longToIPTest() {
-        Assert.assertEquals("longToIP Test 1: convert of 538184192L failed", "32.20.10.0",
-                NeutronSubnetIPAllocationPool.longToIP(538184192L));
+    public void longToIpTest() {
+        Assert.assertEquals("longToIp Test 1: convert of 538184192L failed", "32.20.10.0",
+                NeutronSubnetIpAllocationPool.longToIp(538184192L));
 
-        Assert.assertEquals("longToIP Test 2: convert of 3232236172L failed", "192.168.2.140",
-                NeutronSubnetIPAllocationPool.longToIP(3232236172L));
+        Assert.assertEquals("longToIp Test 2: convert of 3232236172L failed", "192.168.2.140",
+                NeutronSubnetIpAllocationPool.longToIp(3232236172L));
     }
 
     @Test
-    public void bigIntegerToIPTest() {
+    public void bigIntegerToIpTest() {
         BigInteger start = new BigInteger("42550872755692912415807417417958686721");
-        Assert.assertEquals("longToIP Test 1: convert of 42550872755692912415807417417958686721 failed",
-                "2003:0:0:0:0:0:0:1", NeutronSubnetIPAllocationPool.bigIntegerToIP(start));
+        Assert.assertEquals("longToIp Test 1: convert of 42550872755692912415807417417958686721 failed",
+                "2003:0:0:0:0:0:0:1", NeutronSubnetIpAllocationPool.bigIntegerToIp(start));
     }
 
     @Test
     public void containsTest() {
-        NeutronSubnetIPAllocationPool apUT = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.4");
 
@@ -70,7 +70,7 @@ public class NeutronSubnetIPAllocationPoolTest {
 
     @Test
     public void containsV6Test() {
-        NeutronSubnetIPAllocationPool apUT = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:4");
 
@@ -88,17 +88,17 @@ public class NeutronSubnetIPAllocationPoolTest {
 
     @Test
     public void splitPoolTest() {
-        NeutronSubnetIPAllocationPool apUT = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.6");
-        List<NeutronSubnetIPAllocationPool> result = apUT.splitPool("10.18.0.2");
+        List<NeutronSubnetIpAllocationPool> result = apUT.splitPool("10.18.0.2");
         Assert.assertEquals("splitPool Test 1.1: address == pool start (result size) failed", 1, result.size());
         Assert.assertEquals("splitPool Test 1.2: address == pool start (pool start) failed", "10.18.0.3",
                 result.get(0).getPoolStart());
         Assert.assertEquals("splitPool Test 1.3: address == pool start (pool end) failed", "10.18.0.6",
                 result.get(0).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.6");
         result = apUT.splitPool("10.18.0.3");
@@ -112,7 +112,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPool Test 2.5: address one above pool start (pool 2 end) failed", "10.18.0.6",
                 result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.6");
         result = apUT.splitPool("10.18.0.4");
@@ -126,7 +126,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPool Test 3.5: address one above pool start (pool 2 end) failed", "10.18.0.6",
                 result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.6");
         result = apUT.splitPool("10.18.0.5");
@@ -140,7 +140,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPool Test 4.5: address one above pool start (pool 2 end) failed", "10.18.0.6",
                 result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("10.18.0.2");
         apUT.setPoolEnd("10.18.0.6");
         result = apUT.splitPool("10.18.0.6");
@@ -153,17 +153,17 @@ public class NeutronSubnetIPAllocationPoolTest {
 
     @Test
     public void splitPoolV6Test() {
-        NeutronSubnetIPAllocationPool apUT = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:6");
-        List<NeutronSubnetIPAllocationPool> result = apUT.splitPoolV6("2015:0:0:0:0:0:0:2");
+        List<NeutronSubnetIpAllocationPool> result = apUT.splitPoolV6("2015:0:0:0:0:0:0:2");
         Assert.assertEquals("splitPoolV6 Test 1.1: address == pool start (result size) failed", 1, result.size());
         Assert.assertEquals("splitPoolV6 Test 1.2: address == pool start (pool start) failed", "2015:0:0:0:0:0:0:3",
                 result.get(0).getPoolStart());
         Assert.assertEquals("splitPoolV6 Test 1.3: address == pool start (pool end) failed", "2015:0:0:0:0:0:0:6",
                 result.get(0).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:6");
         result = apUT.splitPoolV6("2015:0:0:0:0:0:0:3");
@@ -178,7 +178,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPoolV6 Test 2.5: address one above pool start (pool 2 end) failed",
                 "2015:0:0:0:0:0:0:6", result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:6");
         result = apUT.splitPoolV6("2015:0:0:0:0:0:0:4");
@@ -193,7 +193,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPoolV6 Test 3.5: address one above pool start (pool 2 end) failed",
                 "2015:0:0:0:0:0:0:6", result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:6");
         result = apUT.splitPoolV6("2015:0:0:0:0:0:0:5");
@@ -208,7 +208,7 @@ public class NeutronSubnetIPAllocationPoolTest {
         Assert.assertEquals("splitPoolV6 Test 4.5: address one above pool start (pool 2 end) failed",
                 "2015:0:0:0:0:0:0:6", result.get(1).getPoolEnd());
 
-        apUT = new NeutronSubnetIPAllocationPool();
+        apUT = new NeutronSubnetIpAllocationPool();
         apUT.setPoolStart("2015:0:0:0:0:0:0:2");
         apUT.setPoolEnd("2015:0:0:0:0:0:0:6");
         result = apUT.splitPoolV6("2015:0:0:0:0:0:0:6");
index bb2395a13ab2b1547da4ff5cc67dfae92e4c1622..e11c67847c8e1a05fc672e973e0755605fd5b3cf 100644 (file)
@@ -56,7 +56,7 @@ public class NeutronSubnetJAXBTest {
                             dnsNameservers, testObject.getDnsNameservers());
 
         Assert.assertEquals("NeutronSubnet JAXB Test 7: Testing gateway_ip failed",
-                            "2003::1", testObject.getGatewayIP());
+                            "2003::1", testObject.getGatewayIp());
         Assert.assertEquals("NeutronSubnet JAXB Test 8: Testing ipv6_ra_mode failed",
                             null, testObject.getIpV6RaMode());
         Assert.assertEquals("NeutronSubnet JAXB Test 9: Testing ip_version failed",
index 05a1cecd48cf5cc4bf3784742ca0913720cd5c9b..2cdcd82714e4ee4fbe0867329b45fc7072b9c8dd 100644 (file)
@@ -39,73 +39,73 @@ public class NeutronSubnetTest {
     }
 
     @Test
-    public void gatewayIP_PoolOverlapTest() {
+    public void gatewayIp_PoolOverlapTest() {
         NeutronSubnet objectUT = new NeutronSubnet();
         objectUT.setIpVersion(4);
         objectUT.setCidr("10.18.0.0/16");
 
-        NeutronSubnetIPAllocationPool allocationPool = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("10.18.0.2");
         allocationPool.setPoolEnd("10.18.0.6");
-        List<NeutronSubnetIPAllocationPool> pools = new ArrayList<NeutronSubnetIPAllocationPool>();
+        List<NeutronSubnetIpAllocationPool> pools = new ArrayList<NeutronSubnetIpAllocationPool>();
         pools.add(allocationPool);
         objectUT.setAllocationPools(pools);
 
-        objectUT.setGatewayIP("10.18.0.1");
-        Assert.assertFalse("gatewayIP_Pool_overlap Test 1: test with address below allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("10.18.0.1");
+        Assert.assertFalse("gatewayIp_Pool_overlap Test 1: test with address below allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
 
-        objectUT.setGatewayIP("10.18.0.4");
-        Assert.assertTrue("gatewayIP_Pool_overlap Test 2: test with address in allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("10.18.0.4");
+        Assert.assertTrue("gatewayIp_Pool_overlap Test 2: test with address in allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
 
-        objectUT.setGatewayIP("10.18.0.7");
-        Assert.assertFalse("gatewayIP_Pool_overlap Test 3: test with address above allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("10.18.0.7");
+        Assert.assertFalse("gatewayIp_Pool_overlap Test 3: test with address above allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
 
         objectUT.setIpVersion(6);
         objectUT.setCidr("2015::0/64");
 
-        allocationPool = new NeutronSubnetIPAllocationPool();
+        allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("2015::2");
         allocationPool.setPoolEnd("2015::6");
-        pools = new ArrayList<NeutronSubnetIPAllocationPool>();
+        pools = new ArrayList<NeutronSubnetIpAllocationPool>();
         pools.add(allocationPool);
         objectUT.setAllocationPools(pools);
 
-        objectUT.setGatewayIP("2015::1");
-        Assert.assertFalse("gatewayIP_Pool_overlap v6 Test 1: test with address below allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("2015::1");
+        Assert.assertFalse("gatewayIp_Pool_overlap v6 Test 1: test with address below allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
 
-        objectUT.setGatewayIP("2015::4");
-        Assert.assertTrue("gatewayIP_Pool_overlap v6 Test 2: test with address in allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("2015::4");
+        Assert.assertTrue("gatewayIp_Pool_overlap v6 Test 2: test with address in allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
 
-        objectUT.setGatewayIP("2015::7");
-        Assert.assertFalse("gatewayIP_Pool_overlap v6 Test 3: test with address above allocation pool failed",
-                objectUT.gatewayIP_Pool_overlap());
+        objectUT.setGatewayIp("2015::7");
+        Assert.assertFalse("gatewayIp_Pool_overlap v6 Test 3: test with address above allocation pool failed",
+                objectUT.gatewayIp_Pool_overlap());
     }
 
     @Test
-    public void isValidIPTest() {
+    public void isValidIpTest() {
         NeutronSubnet objectUT = new NeutronSubnet();
         objectUT.setIpVersion(4);
         objectUT.setCidr("10.18.0.0/24");
 
-        Assert.assertFalse("isValidIP Negative Test 1: test of IP address outside of CIDR block failed",
-                objectUT.isValidIP("10.18.1.1"));
+        Assert.assertFalse("isValidIp Negative Test 1: test of IP address outside of CIDR block failed",
+                objectUT.isValidIp("10.18.1.1"));
 
-        Assert.assertTrue("isValidIP Test 1: test of IP address within CIDR block failed",
-                objectUT.isValidIP("10.18.0.1"));
+        Assert.assertTrue("isValidIp Test 1: test of IP address within CIDR block failed",
+                objectUT.isValidIp("10.18.0.1"));
 
         objectUT.setIpVersion(6);
         objectUT.setCidr("2015::0/64");
 
-        Assert.assertFalse("isValidIP v6 Negative Test 1: test of IP address outside of CIDR block failed",
-                objectUT.isValidIP("2015:0:0:1:0:0:0:1"));
+        Assert.assertFalse("isValidIp v6 Negative Test 1: test of IP address outside of CIDR block failed",
+                objectUT.isValidIp("2015:0:0:1:0:0:0:1"));
 
-        Assert.assertTrue("isValidIP v6 Test 1: test of IP address within CIDR block failed",
-                objectUT.isValidIP("2015:0:0:0:1:0:0:1"));
+        Assert.assertTrue("isValidIp v6 Test 1: test of IP address within CIDR block failed",
+                objectUT.isValidIp("2015:0:0:0:1:0:0:1"));
     }
 
     @Test
@@ -114,12 +114,12 @@ public class NeutronSubnetTest {
         objectUT.setIpVersion(4);
         objectUT.setCidr("10.18.0.0/24");
 
-        NeutronSubnetIPAllocationPool allocationPool = new NeutronSubnetIPAllocationPool();
+        NeutronSubnetIpAllocationPool allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("10.18.0.2");
         allocationPool.setPoolEnd("10.18.0.6");
-        List<NeutronSubnetIPAllocationPool> pools = new ArrayList<NeutronSubnetIPAllocationPool>();
+        List<NeutronSubnetIpAllocationPool> pools = new ArrayList<NeutronSubnetIpAllocationPool>();
         pools.add(allocationPool);
-        allocationPool = new NeutronSubnetIPAllocationPool();
+        allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("10.18.0.10");
         allocationPool.setPoolEnd("10.18.0.15");
         objectUT.setAllocationPools(pools);
@@ -129,12 +129,12 @@ public class NeutronSubnetTest {
         objectUT.setIpVersion(6);
         objectUT.setCidr("2015::0/24");
 
-        allocationPool = new NeutronSubnetIPAllocationPool();
+        allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("2015::2");
         allocationPool.setPoolEnd("2015::6");
-        pools = new ArrayList<NeutronSubnetIPAllocationPool>();
+        pools = new ArrayList<NeutronSubnetIpAllocationPool>();
         pools.add(allocationPool);
-        allocationPool = new NeutronSubnetIPAllocationPool();
+        allocationPool = new NeutronSubnetIpAllocationPool();
         allocationPool.setPoolStart("2015::10");
         allocationPool.setPoolEnd("2015::15");
         objectUT.setAllocationPools(pools);
similarity index 74%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNDeadPeerDetectionJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnDeadPeerDetectionJAXBTest.java
index 9d0ba67175ee1f907874ec079dc09ff24e9e52cf..f6c15b2893deabe11db50b7ac1ac90f8acb2c0cb 100644 (file)
@@ -12,24 +12,24 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNDeadPeerDetectionJAXBTest {
+public class NeutronVpnDeadPeerDetectionJAXBTest {
 
     private static final String NEUTRON_VPN_DEAD_PEER_DETECTION_SOURCE_JSON = "{" + "\"action\": \"hold\", "
             + "\"interval\": 30, " + "\"timeout\": 120 }";
 
     @Test
     public void test_NeutronVPNDeadPeerDetection_JAXB() throws JAXBException {
-        NeutronVPNDeadPeerDetection dummyObject = new NeutronVPNDeadPeerDetection();
+        NeutronVpnDeadPeerDetection dummyObject = new NeutronVpnDeadPeerDetection();
 
-        NeutronVPNDeadPeerDetection testObject = (NeutronVPNDeadPeerDetection) JaxbTestHelper
+        NeutronVpnDeadPeerDetection testObject = (NeutronVpnDeadPeerDetection) JaxbTestHelper
                 .jaxbUnmarshall(dummyObject, NEUTRON_VPN_DEAD_PEER_DETECTION_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNDeadPeerDetection JAXB Test 1: Testing action failed", "hold",
+        Assert.assertEquals("NeutronVpnDeadPeerDetection JAXB Test 1: Testing action failed", "hold",
                 testObject.getAction());
 
-        Assert.assertEquals("NeutronVPNDeadPeerDetection JAXB Test 2: Testing interval failed", new Integer(30),
+        Assert.assertEquals("NeutronVpnDeadPeerDetection JAXB Test 2: Testing interval failed", new Integer(30),
                 testObject.getInterval());
 
-        Assert.assertEquals("NeutronVPNDeadPeerDetection JAXB Test 3: Testing timeout failed", new Integer(120),
+        Assert.assertEquals("NeutronVpnDeadPeerDetection JAXB Test 3: Testing timeout failed", new Integer(120),
                 testObject.getTimeout());
     }
 }
similarity index 70%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIKEPolicyJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIkePolicyJAXBTest.java
index 42d75bb376dc02a8555368dc8369fd987628186d..8da001ce41d82c64b7ffc0d485ae95097bff1149 100644 (file)
@@ -12,7 +12,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNIKEPolicyJAXBTest {
+public class NeutronVpnIkePolicyJAXBTest {
     private static final String NEUTRON_VPN_IKE_POLICY_SOURCE_JSON = "{"
             + "\"id\": \"5522aff7-1b3c-48dd-9c3c-b50f016b73db\", "
             + "\"tenant_id\": \"ccb81365fe36411a9011e90491fe1330\", " + "\"name\": \"ikepolicy1\", "
@@ -22,39 +22,39 @@ public class NeutronVPNIKEPolicyJAXBTest {
             + "\"value\": 3600 " + "} }";
 
     @Test
-    public void test_NeutronVPNIKEPolicy_JAXB() throws JAXBException {
-        NeutronVPNIKEPolicy dummyObject = new NeutronVPNIKEPolicy();
+    public void test_NeutronVpnIkePolicy_JAXB() throws JAXBException {
+        NeutronVpnIkePolicy dummyObject = new NeutronVpnIkePolicy();
 
-        NeutronVPNIKEPolicy testObject = (NeutronVPNIKEPolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+        NeutronVpnIkePolicy testObject = (NeutronVpnIkePolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
                 NEUTRON_VPN_IKE_POLICY_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 1: Testing id failed",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 1: Testing id failed",
                 "5522aff7-1b3c-48dd-9c3c-b50f016b73db", testObject.getID());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 2: Testing tenant id failed",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 2: Testing tenant id failed",
                 "ccb81365fe36411a9011e90491fe1330", testObject.getTenantID());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 3: Testing name failed", "ikepolicy1",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 3: Testing name failed", "ikepolicy1",
                 testObject.getName());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 5: Testing auth algorithm failed", "sha1",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 5: Testing auth algorithm failed", "sha1",
                 testObject.getAuthAlgorithm());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 6: Testing Encryption algorithm failed", "aes-256",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 6: Testing Encryption algorithm failed", "aes-256",
                 testObject.getEncryptionAlgorithm());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 7: Testing phase1 negotiation mode failed", "main",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 7: Testing phase1 negotiation mode failed", "main",
                 testObject.getPhase1NegotiationMode());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 8: Testing ike version failed", "v1",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 8: Testing ike version failed", "v1",
                 testObject.getIkeVersion());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 9: Testing pfs failed", "group5",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 9: Testing pfs failed", "group5",
                 testObject.getPerfectForwardSecrecy());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 10.1: Testing lifetime units value failed", "seconds",
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 10.1: Testing lifetime units value failed", "seconds",
                 testObject.getLifetime().getUnits());
 
-        Assert.assertEquals("NeutronVPNIKEPolicy JAXB Test 10.2: Testing lifetime values failed", new Integer(3600),
+        Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 10.2: Testing lifetime values failed", new Integer(3600),
                 testObject.getLifetime().getValue());
     }
 }
similarity index 71%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIPSECPolicyJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIpSecPolicyJAXBTest.java
index 31545838a5efd3fa490a305cbb73688177e44576..669c66703ca2e48c2930bc7f9a2b833070a61d29 100644 (file)
@@ -12,7 +12,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNIPSECPolicyJAXBTest {
+public class NeutronVpnIpSecPolicyJAXBTest {
 
     private static final String NEUTRON_VPN_IPSEC_POLICY_SINGLE_PROVIDER_SOURCE_JSON = "{"
             + "\"id\": \"5291b189-fd84-46e5-84bd-78f40c05d69c\", "
@@ -23,39 +23,39 @@ public class NeutronVPNIPSECPolicyJAXBTest {
             + "\"units\": \"seconds\", " + "\"value\": 3600 " + "} }";
 
     @Test
-    public void test_NeutronVPNIPSECPolicy_JAXB() throws JAXBException {
-        NeutronVPNIPSECPolicy dummyObject = new NeutronVPNIPSECPolicy();
+    public void test_NeutronVpnIPSecPolicy_JAXB() throws JAXBException {
+        NeutronVpnIpSecPolicy dummyObject = new NeutronVpnIpSecPolicy();
 
-        NeutronVPNIPSECPolicy testObject = (NeutronVPNIPSECPolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+        NeutronVpnIpSecPolicy testObject = (NeutronVpnIpSecPolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
                 NEUTRON_VPN_IPSEC_POLICY_SINGLE_PROVIDER_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 1: Testing id failed",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 1: Testing id failed",
                 "5291b189-fd84-46e5-84bd-78f40c05d69c", testObject.getID());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 2: Testing tenant id failed",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 2: Testing tenant id failed",
                 "ccb81365fe36411a9011e90491fe1330", testObject.getTenantID());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 3: Testing name failed", "ipsecpolicy1",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 3: Testing name failed", "ipsecpolicy1",
                 testObject.getName());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 5: Testing transform protocol failed", "esp",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 5: Testing transform protocol failed", "esp",
                 testObject.getTransformProtocol());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 6: Testing encapsulation mode failed", "tunnel",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 6: Testing encapsulation mode failed", "tunnel",
                 testObject.getEncapsulationMode());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 7: Testing authorization algorithm failed", "sha1",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 7: Testing authorization algorithm failed", "sha1",
                 testObject.getAuthAlgorithm());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 8: Testing encryption algorithm failed", "aes-128",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 8: Testing encryption algorithm failed", "aes-128",
                 testObject.getEncryptionAlgorithm());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 9: Testing PerfectForwardSecrecy failed", "group5",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 9: Testing PerfectForwardSecrecy failed", "group5",
                 testObject.getPerfectForwardSecrecy());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 10: Testing Lifetime unit value failed", "seconds",
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 10: Testing Lifetime unit value failed", "seconds",
                 testObject.getLifetime().getUnits());
 
-        Assert.assertEquals("NeutronVPNIPSECPolicy JAXB Test 11: Testing Lifetime value failed", new Integer(3600),
+        Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 11: Testing Lifetime value failed", new Integer(3600),
                 testObject.getLifetime().getValue());
     }
 }
similarity index 70%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNIPSECSiteConnectionJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnIpSecSiteConnectionJAXBTest.java
index d9dd2fd622bb9b7b7321d4d1833b19fb8cd538a1..cc693fc35c301e9cc55a9db6ae9e1af0a890c71a 100644 (file)
@@ -13,7 +13,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNIPSECSiteConnectionJAXBTest {
+public class NeutronVpnIpSecSiteConnectionJAXBTest {
 
     private static final String NEUTRON_VPN_IPSEC_SITE_CONNECTION_SOURCE_JSON = "{"
             + "\"id\": \"cbc152a0-7e93-4f98-9f04-b085a4bf2511\", "
@@ -28,71 +28,71 @@ public class NeutronVPNIPSECSiteConnectionJAXBTest {
             + "\"interval\": 30 ," + "\"timeout\": 120 " + "} }";
 
     @Test
-    public void test_NeutronVPNIPSECSiteConnection_JAXB() throws JAXBException {
-        NeutronVPNIPSECSiteConnection dummyObject = new NeutronVPNIPSECSiteConnection();
+    public void test_NeutronVpnIPSecSiteConnection_JAXB() throws JAXBException {
+        NeutronVpnIpSecSiteConnection dummyObject = new NeutronVpnIpSecSiteConnection();
 
-        NeutronVPNIPSECSiteConnection testObject = (NeutronVPNIPSECSiteConnection) JaxbTestHelper
+        NeutronVpnIpSecSiteConnection testObject = (NeutronVpnIpSecSiteConnection) JaxbTestHelper
                 .jaxbUnmarshall(dummyObject, NEUTRON_VPN_IPSEC_SITE_CONNECTION_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 1: Testing id failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 1: Testing id failed",
                 "cbc152a0-7e93-4f98-9f04-b085a4bf2511", testObject.getID());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 2: Testing tenant id failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 2: Testing tenant id failed",
                 "ccb81365fe36411a9011e90491fe1330", testObject.getTenantID());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 3: Testing name failed", "myvpn",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 3: Testing name failed", "myvpn",
                 testObject.getName());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 5: Testing peer address failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 5: Testing peer address failed",
                 "172.24.4.226", testObject.getPeerAddress());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 6: Testing peer id failed", "172.24.4.226",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 6: Testing peer id failed", "172.24.4.226",
                 testObject.getPeerID());
 
         List<String> peerCidrs = testObject.getPeerCidrs();
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 7: Testing peerCidrs size failed", 1,
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 7: Testing peerCidrs size failed", 1,
                 peerCidrs.size());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection Test 8.1: Testing peerCidrs value failed", "10.1.0.0/24",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection Test 8.1: Testing peerCidrs value failed", "10.1.0.0/24",
                 peerCidrs.get(0));
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 8.2: Testing list value failed", "static",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 8.2: Testing list value failed", "static",
                 testObject.getRouteMode());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 9: Testing mtu failed", 1500,
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 9: Testing mtu failed", 1500,
                 (long) testObject.getMtu());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 10: Testing authmode failed", "psk",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 10: Testing authmode failed", "psk",
                 testObject.getAuthMode());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 11: Testing presharedkey failed", "secret",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 11: Testing presharedkey failed", "secret",
                 testObject.getPreSharedKey());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 12: Testing initiator failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 12: Testing initiator failed",
                 "bi-directional", testObject.getInitiator());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 13: Testing Admin state failed", true,
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 13: Testing Admin state failed", true,
                 testObject.getAdminStateUp());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 14: Testing status failed", "PENDING_CREATE",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 14: Testing status failed", "PENDING_CREATE",
                 testObject.getStatus());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 15: Testing IkePolicyID failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 15: Testing IkePolicyID failed",
                 "bf5612ac-15fb-460c-9b3d-6453da2fafa2", testObject.getIkePolicyID());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 16: Testing IpsecPolicyID failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 16: Testing IpsecPolicyID failed",
                 "8ba867b2-67eb-4835-bb61-c226804a1584", testObject.getIpsecPolicyID());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 17: Testing VpnServiceID failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 17: Testing VpnServiceID failed",
                 "c2f3178d-5530-4c4a-89fc-050ecd552636", testObject.getVpnServiceID());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 18.1: Testing DeadPeerDetection failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 18.1: Testing DeadPeerDetection failed",
                 "hold", testObject.getDeadPeerDetection().getAction());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 18.2: Testing DeadPeerDetection failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 18.2: Testing DeadPeerDetection failed",
                 new Integer(30), testObject.getDeadPeerDetection().getInterval());
 
-        Assert.assertEquals("NeutronVPNIPSECSiteConnection JAXB Test 18.3: Testing DeadPeerDetection failed",
+        Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 18.3: Testing DeadPeerDetection failed",
                 new Integer(120), testObject.getDeadPeerDetection().getTimeout());
     }
 }
similarity index 75%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNLifetimeJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnLifetimeJAXBTest.java
index 67ce25e57d6909165f5f2ff80883fab1cd3872d0..2e9217a51dcba196d8d7fd359875427b492bbe65 100644 (file)
@@ -12,21 +12,21 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNLifetimeJAXBTest {
+public class NeutronVpnLifetimeJAXBTest {
 
     private static final String NEUTRON_VPN_LIFETIME_TEST_SOURCE_JSON = "{" + "\"units\": \"seconds\", "
             + "\"value\": 3600 }";
 
     @Test
     public void test_NeutronVPNLifetime_JAXB() throws JAXBException {
-        NeutronVPNLifetime dummyObject = new NeutronVPNLifetime();
+        NeutronVpnLifetime dummyObject = new NeutronVpnLifetime();
 
-        NeutronVPNLifetime testObject = (NeutronVPNLifetime) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+        NeutronVpnLifetime testObject = (NeutronVpnLifetime) JaxbTestHelper.jaxbUnmarshall(dummyObject,
                 NEUTRON_VPN_LIFETIME_TEST_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNLifetime JAXB Test 1: Testing units failed", "seconds",
+        Assert.assertEquals("NeutronVpnLifetime JAXB Test 1: Testing units failed", "seconds",
                 testObject.getUnits());
 
-        Assert.assertEquals("NeutronVPNLifetime JAXB Test 2: Testing value failed", new Integer(3600),
+        Assert.assertEquals("NeutronVpnLifetime JAXB Test 2: Testing value failed", new Integer(3600),
                 testObject.getValue());
     }
 }
similarity index 74%
rename from neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVPNServiceJAXBTest.java
rename to neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronVpnServiceJAXBTest.java
index 2f331d100f2196e874379c81684b643eb3c84bf5..5780fc72647d6b2f30abe317972139f46a5347b4 100644 (file)
@@ -12,7 +12,7 @@ import javax.xml.bind.JAXBException;
 import org.junit.Assert;
 import org.junit.Test;
 
-public class NeutronVPNServiceJAXBTest {
+public class NeutronVpnServiceJAXBTest {
 
     private static final String NEUTRON_VPN_SERVICE_SOURCE_JSON = "{"
             + "\"router_id\": \"ec8619be-0ba8-4955-8835-3b49ddb76f89\", " + "\"status\": \"PENDING_CREATE\", "
@@ -23,29 +23,29 @@ public class NeutronVPNServiceJAXBTest {
 
     @Test
     public void test_NeutronVPNService_JAXB() throws JAXBException {
-        NeutronVPNService dummyObject = new NeutronVPNService();
+        NeutronVpnService dummyObject = new NeutronVpnService();
 
-        NeutronVPNService testObject = (NeutronVPNService) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+        NeutronVpnService testObject = (NeutronVpnService) JaxbTestHelper.jaxbUnmarshall(dummyObject,
                 NEUTRON_VPN_SERVICE_SOURCE_JSON);
-        Assert.assertEquals("NeutronVPNService JAXB Test 1: Testing router id failed",
+        Assert.assertEquals("NeutronVpnService JAXB Test 1: Testing router id failed",
                 "ec8619be-0ba8-4955-8835-3b49ddb76f89", testObject.getRouterUUID());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 2: Testing status failed", "PENDING_CREATE",
+        Assert.assertEquals("NeutronVpnService JAXB Test 2: Testing status failed", "PENDING_CREATE",
                 testObject.getStatus());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 3: Testing name failed", "myservice",
+        Assert.assertEquals("NeutronVpnService JAXB Test 3: Testing name failed", "myservice",
                 testObject.getName());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 4: Testing admin state up failed", true,
+        Assert.assertEquals("NeutronVpnService JAXB Test 4: Testing admin state up failed", true,
                 testObject.getAdminStateUp());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 5: Testing Subnet UUID failed",
+        Assert.assertEquals("NeutronVpnService JAXB Test 5: Testing Subnet UUID failed",
                 "f4fb4528-ed93-467c-a57b-11c7ea9f963e", testObject.getSubnetUUID());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 6: Testing Tenant Id failed",
+        Assert.assertEquals("NeutronVpnService JAXB Test 6: Testing Tenant Id failed",
                 "ccb81365fe36411a9011e90491fe1330", testObject.getTenantID());
 
-        Assert.assertEquals("NeutronVPNService JAXB Test 7: Testing id failed",
+        Assert.assertEquals("NeutronVpnService JAXB Test 7: Testing id failed",
                 "9faaf49f-dd89-4e39-a8c6-101839aa49bc", testObject.getID());
     }
 }
similarity index 70%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIPRequest.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIpRequest.java
index 0a261c21a35ab197269cb8d076866fbb55700da4..ee0cf7bab268a2d136fa00c497c831d6dc17e98d 100644 (file)
@@ -13,28 +13,28 @@ import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.neutron.spi.NeutronFloatingIP;
+import org.opendaylight.neutron.spi.NeutronFloatingIp;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFloatingIPRequest implements INeutronRequest<NeutronFloatingIP> {
+public final class NeutronFloatingIpRequest implements INeutronRequest<NeutronFloatingIp> {
     // See OpenStack Network API v2.0 Reference for description of
     // annotated attributes
 
     @XmlElement(name = "floatingip")
-    NeutronFloatingIP singleton;
+    NeutronFloatingIp singleton;
 
     @XmlElement(name = "floatingips")
-    List<NeutronFloatingIP> bulkRequest;
+    List<NeutronFloatingIp> bulkRequest;
 
-    NeutronFloatingIPRequest() {
+    NeutronFloatingIpRequest() {
     }
 
-    NeutronFloatingIPRequest(List<NeutronFloatingIP> bulk) {
+    NeutronFloatingIpRequest(List<NeutronFloatingIp> bulk) {
         bulkRequest = bulk;
     }
 
-    NeutronFloatingIPRequest(NeutronFloatingIP singleton) {
+    NeutronFloatingIpRequest(NeutronFloatingIp singleton) {
         this.singleton = singleton;
     }
 }
similarity index 81%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIPsNorthbound.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronFloatingIpsNorthbound.java
index 439e3e31c76a048fbcbe31166d8155fd787297d8..1e686f13a68a27f848a65d84052c7a8ed7c25cc2 100644 (file)
@@ -24,8 +24,8 @@ import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
-import org.opendaylight.neutron.spi.INeutronFloatingIPCRUD;
-import org.opendaylight.neutron.spi.NeutronFloatingIP;
+import org.opendaylight.neutron.spi.INeutronFloatingIpCRUD;
+import org.opendaylight.neutron.spi.NeutronFloatingIp;
 
 /**
  * Neutron Northbound REST APIs.<br>
@@ -46,8 +46,8 @@ import org.opendaylight.neutron.spi.NeutronFloatingIP;
  */
 
 @Path("/floatingips")
-public final class NeutronFloatingIPsNorthbound
-        extends AbstractNeutronNorthbound<NeutronFloatingIP, NeutronFloatingIPRequest, INeutronFloatingIPCRUD> {
+public final class NeutronFloatingIpsNorthbound
+        extends AbstractNeutronNorthbound<NeutronFloatingIp, NeutronFloatingIpRequest, INeutronFloatingIpCRUD> {
     private static final String RESOURCE_NAME = "Floating IP";
 
     @Override
@@ -56,7 +56,7 @@ public final class NeutronFloatingIPsNorthbound
     }
 
     /**
-     * Returns a list of all FloatingIPs.
+     * Returns a list of all FloatingIps.
      */
 
     @GET
@@ -65,15 +65,15 @@ public final class NeutronFloatingIPsNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response listFloatingIPs(
+    public Response listFloatingIps(
             // return fields
             @QueryParam("fields") List<String> fields,
             // note: openstack isn't clear about filtering on lists, so we aren't handling them
             @QueryParam("id") String queryID,
             @QueryParam("floating_network_id") String queryFloatingNetworkId,
             @QueryParam("port_id") String queryPortId,
-            @QueryParam("fixed_ip_address") String queryFixedIPAddress,
-            @QueryParam("floating_ip_address") String queryFloatingIPAddress,
+            @QueryParam("fixed_ip_address") String queryFixedIpAddress,
+            @QueryParam("floating_ip_address") String queryFloatingIpAddress,
             @QueryParam("tenant_id") String queryTenantID,
             @QueryParam("router_id") String queryRouterID,
             @QueryParam("status") String queryStatus,
@@ -83,18 +83,18 @@ public final class NeutronFloatingIPsNorthbound
             @QueryParam("page_reverse") String pageReverse
     // sorting not supported
     ) {
-        INeutronFloatingIPCRUD floatingIPInterface = getNeutronCRUD();
-        List<NeutronFloatingIP> allFloatingIPs = floatingIPInterface.getAll();
-        List<NeutronFloatingIP> ans = new ArrayList<>();
-        for (NeutronFloatingIP floatingIp : allFloatingIPs) {
+        INeutronFloatingIpCRUD floatingIpInterface = getNeutronCRUD();
+        List<NeutronFloatingIp> allFloatingIps = floatingIpInterface.getAll();
+        List<NeutronFloatingIp> ans = new ArrayList<>();
+        for (NeutronFloatingIp floatingIp : allFloatingIps) {
             //match filters: TODO provider extension and router extension
             if ((queryID == null || queryID.equals(floatingIp.getID()))
                     && (queryFloatingNetworkId == null
                         || queryFloatingNetworkId.equals(floatingIp.getFloatingNetworkUUID()))
                     && (queryPortId == null || queryPortId.equals(floatingIp.getPortUUID()))
-                    && (queryFixedIPAddress == null || queryFixedIPAddress.equals(floatingIp.getFixedIPAddress()))
-                    && (queryFloatingIPAddress == null
-                        || queryFloatingIPAddress.equals(floatingIp.getFloatingIPAddress()))
+                    && (queryFixedIpAddress == null || queryFixedIpAddress.equals(floatingIp.getFixedIpAddress()))
+                    && (queryFloatingIpAddress == null
+                        || queryFloatingIpAddress.equals(floatingIp.getFloatingIpAddress()))
                     && (queryStatus == null || queryStatus.equals(floatingIp.getStatus()))
                     && (queryRouterID == null || queryRouterID.equals(floatingIp.getRouterUUID()))
                     && (queryTenantID == null || queryTenantID.equals(floatingIp.getTenantID()))) {
@@ -106,11 +106,11 @@ public final class NeutronFloatingIPsNorthbound
             }
         }
         //TODO: apply pagination to results
-        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronFloatingIPRequest(ans)).build();
+        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronFloatingIpRequest(ans)).build();
     }
 
     /**
-     * Returns a specific FloatingIP.
+     * Returns a specific FloatingIp.
      */
 
     @Path("{floatingipUUID}")
@@ -121,14 +121,14 @@ public final class NeutronFloatingIPsNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response showFloatingIP(@PathParam("floatingipUUID") String floatingipUUID,
+    public Response showFloatingIp(@PathParam("floatingipUUID") String floatingipUUID,
             // return fields
             @QueryParam("fields") List<String> fields) {
         return show(floatingipUUID, fields);
     }
 
     /**
-     * Creates new FloatingIPs.
+     * Creates new FloatingIps.
      */
 
     @POST
@@ -136,12 +136,12 @@ public final class NeutronFloatingIPsNorthbound
     @Consumes({ MediaType.APPLICATION_JSON })
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response createFloatingIPs(final NeutronFloatingIPRequest input) {
+    public Response createFloatingIps(final NeutronFloatingIpRequest input) {
         return create(input);
     }
 
     /**
-     * Updates a FloatingIP.
+     * Updates a FloatingIp.
      */
 
     @Path("{floatingipUUID}")
@@ -151,13 +151,13 @@ public final class NeutronFloatingIPsNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response updateFloatingIP(@PathParam("floatingipUUID") String floatingipUUID,
-            NeutronFloatingIPRequest input) {
+    public Response updateFloatingIp(@PathParam("floatingipUUID") String floatingipUUID,
+            NeutronFloatingIpRequest input) {
         return update(floatingipUUID, input);
     }
 
     /**
-     * Deletes a FloatingIP.
+     * Deletes a FloatingIp.
      */
 
     @Path("{floatingipUUID}")
@@ -165,7 +165,7 @@ public final class NeutronFloatingIPsNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response deleteFloatingIP(@PathParam("floatingipUUID") String floatingipUUID) {
+    public Response deleteFloatingIp(@PathParam("floatingipUUID") String floatingipUUID) {
         return delete(floatingipUUID);
     }
 }
index 0949698b82d26dea3a39889229b3e243d02c7c1a..e8b213d4c74d399d259bdfba2fabf92843c585b0 100644 (file)
@@ -71,7 +71,7 @@ public final class NeutronMeteringLabelRulesNorthbound extends AbstractNeutronNo
             // filter fields
             @QueryParam("id") String queryID,
             @QueryParam("direction") String queryDirection,
-            @QueryParam("remote_ip_prefix") String queryRemoteIPPrefix,
+            @QueryParam("remote_ip_prefix") String queryRemoteIpPrefix,
             @QueryParam("metering_label_id") String queryLabelID
     // pagination and sorting are TODO
     ) {
@@ -81,8 +81,8 @@ public final class NeutronMeteringLabelRulesNorthbound extends AbstractNeutronNo
         for (NeutronMeteringLabelRule rule : allNeutronMeteringLabelRule) {
             if ((queryID == null || queryID.equals(rule.getID()))
                     && (queryDirection == null || queryDirection.equals(rule.getMeteringLabelRuleDirection()))
-                    && (queryRemoteIPPrefix == null
-                            || queryRemoteIPPrefix.equals(rule.getMeteringLabelRuleRemoteIPPrefix()))
+                    && (queryRemoteIpPrefix == null
+                            || queryRemoteIpPrefix.equals(rule.getMeteringLabelRuleRemoteIpPrefix()))
                     && (queryLabelID == null || queryLabelID.equals(rule.getMeteringLabelRuleLabelID()))) {
                 if (fields.size() > 0) {
                     ans.add(rule.extractFields(fields));
index 74ac72600d36bd54e22d22574b8ecab5eba24943..ea35d05be6624321e84bb147ec4466a72f93a9bf 100644 (file)
@@ -32,7 +32,7 @@ public final class NeutronNorthboundRSApplication extends Application {
         classes.add(NeutronSubnetsNorthbound.class);
         classes.add(NeutronPortsNorthbound.class);
         classes.add(NeutronRoutersNorthbound.class);
-        classes.add(NeutronFloatingIPsNorthbound.class);
+        classes.add(NeutronFloatingIpsNorthbound.class);
         classes.add(NeutronSecurityGroupsNorthbound.class);
         classes.add(NeutronSecurityRulesNorthbound.class);
         classes.add(NeutronFirewallNorthbound.class);
@@ -44,10 +44,10 @@ public final class NeutronNorthboundRSApplication extends Application {
         classes.add(NeutronLoadBalancerHealthMonitorNorthbound.class);
         classes.add(NeutronMeteringLabelsNorthbound.class);
         classes.add(NeutronMeteringLabelRulesNorthbound.class);
-        classes.add(NeutronVPNServicesNorthbound.class);
-        classes.add(NeutronVPNIKEPoliciesNorthbound.class);
-        classes.add(NeutronVPNIPSECPoliciesNorthbound.class);
-        classes.add(NeutronVPNIPSECSiteConnectionsNorthbound.class);
+        classes.add(NeutronVpnServicesNorthbound.class);
+        classes.add(NeutronVpnIkePoliciesNorthbound.class);
+        classes.add(NeutronVpnIpSecPoliciesNorthbound.class);
+        classes.add(NeutronVpnIpSecSiteConnectionsNorthbound.class);
         classes.add(NeutronBgpvpnsNorthbound.class);
         classes.add(NeutronL2gatewayNorthbound.class);
         classes.add(NeutronL2gatewayConnectionNorthbound.class);
index 52420354ab2624606dcd61b57545341f996f2654..2d871f56e30a5337c137d775bc65785c6113907e 100644 (file)
@@ -180,8 +180,8 @@ public final class NeutronPortsNorthbound
         if (delta.getMacAddress() == null) {
             delta.setMacAddress(original.getMacAddress());
         }
-        if (delta.getFixedIPs() == null) {
-            delta.setFixedIPs(original.getFixedIPs());
+        if (delta.getFixedIps() == null) {
+            delta.setFixedIps(original.getFixedIps());
         }
     }
 
index e4e0743ef5ba5050060c48e9c5a93d03e106337b..2f4f4a2db14cae06f4d1375e25e3fb5da076e676 100644 (file)
@@ -80,7 +80,7 @@ public final class NeutronSubnetsNorthbound
             @QueryParam("name") String queryName,
             @QueryParam("ip_version") Integer queryIPVersion,
             @QueryParam("cidr") String queryCIDR,
-            @QueryParam("gateway_ip") String queryGatewayIP,
+            @QueryParam("gateway_ip") String queryGatewayIp,
             @QueryParam("enable_dhcp") Boolean queryEnableDHCP,
             @QueryParam("tenant_id") String queryTenantID,
             @QueryParam("ipv6_address_mode") String queryIpV6AddressMode,
@@ -100,7 +100,7 @@ public final class NeutronSubnetsNorthbound
                     && (queryName == null || queryName.equals(subnet.getName()))
                     && (queryIPVersion == null || queryIPVersion.equals(subnet.getIpVersion()))
                     && (queryCIDR == null || queryCIDR.equals(subnet.getCidr()))
-                    && (queryGatewayIP == null || queryGatewayIP.equals(subnet.getGatewayIP()))
+                    && (queryGatewayIp == null || queryGatewayIp.equals(subnet.getGatewayIp()))
                     && (queryEnableDHCP == null || queryEnableDHCP.equals(subnet.getEnableDHCP()))
                     && (queryTenantID == null || queryTenantID.equals(subnet.getTenantID()))
                     && (queryIpV6AddressMode == null || queryIpV6AddressMode.equals(subnet.getIpV6AddressMode()))
similarity index 84%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIKEPoliciesNorthbound.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIkePoliciesNorthbound.java
index 9443cd78a7b2afb92f177f155b09d9f7435c0090..4fe759e79fb7de6fd6162538cb58d17f6c41caf9 100644 (file)
@@ -25,8 +25,8 @@ import javax.ws.rs.core.Response;
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
 import org.codehaus.enunciate.jaxrs.TypeHint;
-import org.opendaylight.neutron.spi.INeutronVPNIKEPolicyCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNIKEPolicy;
+import org.opendaylight.neutron.spi.INeutronVpnIkePolicyCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnIkePolicy;
 
 /**
  * Neutron Northbound REST APIs for VPN IKE Policy.<br>
@@ -47,8 +47,8 @@ import org.opendaylight.neutron.spi.NeutronVPNIKEPolicy;
  */
 
 @Path("/vpn/ikepolicies")
-public final class NeutronVPNIKEPoliciesNorthbound
-        extends AbstractNeutronNorthbound<NeutronVPNIKEPolicy, NeutronVPNIKEPolicyRequest, INeutronVPNIKEPolicyCRUD> {
+public final class NeutronVpnIkePoliciesNorthbound
+        extends AbstractNeutronNorthbound<NeutronVpnIkePolicy, NeutronVpnIkePolicyRequest, INeutronVpnIkePolicyCRUD> {
     private static final String RESOURCE_NAME = "VPNIKEPolicy";
 
     @Override
@@ -66,7 +66,7 @@ public final class NeutronVPNIKEPoliciesNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response listVPNIKEPolicies(
+    public Response listVpnIkePolicies(
             // return fields
             @QueryParam("fields") List<String> fields,
             // filter fields
@@ -80,10 +80,10 @@ public final class NeutronVPNIKEPoliciesNorthbound
             @QueryParam("ike_version") String queryIKEVersion
     // pagination and sorting are TODO
     ) {
-        INeutronVPNIKEPolicyCRUD labelInterface = getNeutronCRUD();
-        List<NeutronVPNIKEPolicy> allNeutronVPNIKEPolicy = labelInterface.getAll();
-        List<NeutronVPNIKEPolicy> ans = new ArrayList<>();
-        for (NeutronVPNIKEPolicy policy : allNeutronVPNIKEPolicy) {
+        INeutronVpnIkePolicyCRUD labelInterface = getNeutronCRUD();
+        List<NeutronVpnIkePolicy> allNeutronVpnIkePolicy = labelInterface.getAll();
+        List<NeutronVpnIkePolicy> ans = new ArrayList<>();
+        for (NeutronVpnIkePolicy policy : allNeutronVpnIkePolicy) {
             if ((queryID == null || queryID.equals(policy.getID()))
                     && (queryName == null || queryName.equals(policy.getName()))
                     && (queryAuthAlgorithm == null || queryAuthAlgorithm.equals(policy.getAuthAlgorithm()))
@@ -102,7 +102,7 @@ public final class NeutronVPNIKEPoliciesNorthbound
             }
         }
         //TODO: apply pagination to results
-        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVPNIKEPolicyRequest(ans)).build();
+        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVpnIkePolicyRequest(ans)).build();
     }
 
     /**
@@ -118,9 +118,9 @@ public final class NeutronVPNIKEPoliciesNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response showVPNIKEPolicy(@PathParam("policyID") String policyUUID,
-            // return fields
-            @QueryParam("fields") List<String> fields) {
+    public Response showVpnIkePolicy(@PathParam("policyID") String policyUUID,
+                                     // return fields
+                                     @QueryParam("fields") List<String> fields) {
         return show(policyUUID, fields);
     }
 
@@ -130,10 +130,10 @@ public final class NeutronVPNIKEPoliciesNorthbound
     @POST
     @Produces({ MediaType.APPLICATION_JSON })
     @Consumes({ MediaType.APPLICATION_JSON })
-    @TypeHint(NeutronVPNIKEPolicy.class)
+    @TypeHint(NeutronVpnIkePolicy.class)
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response createVPNIKEPolicy(final NeutronVPNIKEPolicyRequest input) {
+    public Response createVpnIkePolicy(final NeutronVpnIkePolicyRequest input) {
         return create(input);
     }
 
@@ -147,8 +147,8 @@ public final class NeutronVPNIKEPoliciesNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response updateVPNIKEPolicy(@PathParam("policyID") String policyUUID,
-            final NeutronVPNIKEPolicyRequest input) {
+    public Response updateVpnIkePolicy(@PathParam("policyID") String policyUUID,
+                                       final NeutronVpnIkePolicyRequest input) {
         return update(policyUUID, input);
     }
 
@@ -161,7 +161,7 @@ public final class NeutronVPNIKEPoliciesNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response deleteVPNIKEPolicy(@PathParam("policyID") String policyUUID) {
+    public Response deleteVpnIkePolicy(@PathParam("policyID") String policyUUID) {
         return delete(policyUUID);
     }
 }
similarity index 66%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIKEPolicyRequest.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIkePolicyRequest.java
index b6a2a06dfe2dbda0349c9d29bd66124dd28b4ff5..3ab9b90b68e8bf7dfefdc89d390312d7b30d381e 100644 (file)
@@ -13,25 +13,25 @@ import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.neutron.spi.NeutronVPNIKEPolicy;
+import org.opendaylight.neutron.spi.NeutronVpnIkePolicy;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIKEPolicyRequest implements INeutronRequest<NeutronVPNIKEPolicy> {
+public final class NeutronVpnIkePolicyRequest implements INeutronRequest<NeutronVpnIkePolicy> {
     @XmlElement(name = "ikepolicy")
-    NeutronVPNIKEPolicy singleton;
+    NeutronVpnIkePolicy singleton;
 
     @XmlElement(name = "ikepolicies")
-    List<NeutronVPNIKEPolicy> bulkRequest;
+    List<NeutronVpnIkePolicy> bulkRequest;
 
-    NeutronVPNIKEPolicyRequest() {
+    NeutronVpnIkePolicyRequest() {
     }
 
-    NeutronVPNIKEPolicyRequest(NeutronVPNIKEPolicy policy) {
+    NeutronVpnIkePolicyRequest(NeutronVpnIkePolicy policy) {
         singleton = policy;
     }
 
-    NeutronVPNIKEPolicyRequest(List<NeutronVPNIKEPolicy> policies) {
+    NeutronVpnIkePolicyRequest(List<NeutronVpnIkePolicy> policies) {
         bulkRequest = policies;
     }
 }
similarity index 84%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECPoliciesNorthbound.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecPoliciesNorthbound.java
index 0dc5ba3bd96c806d07a7bbd4f9f30752ecb00a22..3a13dba08aac9572012eef7942b637030a36ac46 100644 (file)
@@ -25,8 +25,8 @@ import javax.ws.rs.core.Response;
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
 import org.codehaus.enunciate.jaxrs.TypeHint;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECPolicyCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECPolicy;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecPolicyCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecPolicy;
 
 /**
  * Neutron Northbound REST APIs for VPN IPSEC Policy.<br>
@@ -47,8 +47,8 @@ import org.opendaylight.neutron.spi.NeutronVPNIPSECPolicy;
  */
 
 @Path("/vpn/ipsecpolicies")
-public final class NeutronVPNIPSECPoliciesNorthbound extends
-        AbstractNeutronNorthbound<NeutronVPNIPSECPolicy, NeutronVPNIPSECPolicyRequest, INeutronVPNIPSECPolicyCRUD> {
+public final class NeutronVpnIpSecPoliciesNorthbound extends
+        AbstractNeutronNorthbound<NeutronVpnIpSecPolicy, NeutronVpnIpSecPolicyRequest, INeutronVpnIpSecPolicyCRUD> {
 
     private static final String RESOURCE_NAME = "VPNIPSECPolicy";
 
@@ -67,7 +67,7 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
             @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response listVPNIPSECPolicies(
+    public Response listVpnIPSecPolicies(
             // return fields
             @QueryParam("fields") List<String> fields,
             // filter fields
@@ -81,10 +81,10 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
             @QueryParam("pfs") String queryPFS
     // pagination and sorting are TODO
     ) {
-        INeutronVPNIPSECPolicyCRUD policyInterface = getNeutronCRUD();
-        List<NeutronVPNIPSECPolicy> allNeutronVPNIPSECPolicies = policyInterface.getAll();
-        List<NeutronVPNIPSECPolicy> ans = new ArrayList<>();
-        for (NeutronVPNIPSECPolicy policy : allNeutronVPNIPSECPolicies) {
+        INeutronVpnIpSecPolicyCRUD policyInterface = getNeutronCRUD();
+        List<NeutronVpnIpSecPolicy> allNeutronVpnIPSecPolicies = policyInterface.getAll();
+        List<NeutronVpnIpSecPolicy> ans = new ArrayList<>();
+        for (NeutronVpnIpSecPolicy policy : allNeutronVpnIPSecPolicies) {
             if ((queryID == null || queryID.equals(policy.getID()))
                     && (queryName == null || queryName.equals(policy.getName()))
                     && (queryAuthAlgorithm == null || queryAuthAlgorithm.equals(policy.getAuthAlgorithm()))
@@ -102,7 +102,7 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
             }
         }
         //TODO: apply pagination to results
-        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVPNIPSECPolicyRequest(ans)).build();
+        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVpnIpSecPolicyRequest(ans)).build();
     }
 
     /**
@@ -118,9 +118,9 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response showVPNIPSECPolicy(@PathParam("policyID") String policyUUID,
-            // return fields
-            @QueryParam("fields") List<String> fields) {
+    public Response showVpnIPSecPolicy(@PathParam("policyID") String policyUUID,
+                                       // return fields
+                                       @QueryParam("fields") List<String> fields) {
         return show(policyUUID, fields);
     }
 
@@ -130,10 +130,10 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
     @POST
     @Produces({ MediaType.APPLICATION_JSON })
     @Consumes({ MediaType.APPLICATION_JSON })
-    @TypeHint(NeutronVPNIPSECPolicy.class)
+    @TypeHint(NeutronVpnIpSecPolicy.class)
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response createVPNIPSECPolicy(final NeutronVPNIPSECPolicyRequest input) {
+    public Response createVpnIPSecPolicy(final NeutronVpnIpSecPolicyRequest input) {
         return create(input);
     }
 
@@ -147,8 +147,8 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response updateVPNIPSECPolicy(@PathParam("policyID") String policyUUID,
-            final NeutronVPNIPSECPolicyRequest input) {
+    public Response updateVpnIPSecPolicy(@PathParam("policyID") String policyUUID,
+                                         final NeutronVpnIpSecPolicyRequest input) {
         return update(policyUUID, input);
     }
 
@@ -161,7 +161,7 @@ public final class NeutronVPNIPSECPoliciesNorthbound extends
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response deleteVPNIPSECPolicy(@PathParam("policyID") String policyUUID) {
+    public Response deleteVpnIPSecPolicy(@PathParam("policyID") String policyUUID) {
         return delete(policyUUID);
     }
 }
similarity index 66%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECPolicyRequest.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecPolicyRequest.java
index 5bc20520dde379880d00264d8caf19b22af43d6a..276293d6cb465e706daa8abd3de6fc0b2ea37a3b 100644 (file)
@@ -13,25 +13,25 @@ import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECPolicy;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecPolicy;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIPSECPolicyRequest implements INeutronRequest<NeutronVPNIPSECPolicy> {
+public final class NeutronVpnIpSecPolicyRequest implements INeutronRequest<NeutronVpnIpSecPolicy> {
     @XmlElement(name = "ipsecpolicy")
-    NeutronVPNIPSECPolicy singleton;
+    NeutronVpnIpSecPolicy singleton;
 
     @XmlElement(name = "ipsecpolicies")
-    List<NeutronVPNIPSECPolicy> bulkRequest;
+    List<NeutronVpnIpSecPolicy> bulkRequest;
 
-    NeutronVPNIPSECPolicyRequest() {
+    NeutronVpnIpSecPolicyRequest() {
     }
 
-    NeutronVPNIPSECPolicyRequest(NeutronVPNIPSECPolicy policy) {
+    NeutronVpnIpSecPolicyRequest(NeutronVpnIpSecPolicy policy) {
         singleton = policy;
     }
 
-    NeutronVPNIPSECPolicyRequest(List<NeutronVPNIPSECPolicy> policies) {
+    NeutronVpnIpSecPolicyRequest(List<NeutronVpnIpSecPolicy> policies) {
         bulkRequest = policies;
     }
 }
similarity index 65%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNIPSECSiteConnectionRequest.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnIpSecSiteConnectionRequest.java
index dfc65bba0b2b39c6f9ae7e89f54778b668eba778..c632aea811e667e60eca1efc456c74fcdd87458a 100644 (file)
@@ -13,25 +13,25 @@ import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECSiteConnection;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecSiteConnection;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNIPSECSiteConnectionRequest implements INeutronRequest<NeutronVPNIPSECSiteConnection> {
+public final class NeutronVpnIpSecSiteConnectionRequest implements INeutronRequest<NeutronVpnIpSecSiteConnection> {
     @XmlElement(name = "ipsec_site_connection")
-    NeutronVPNIPSECSiteConnection singleton;
+    NeutronVpnIpSecSiteConnection singleton;
 
     @XmlElement(name = "ipsec_site_connections")
-    List<NeutronVPNIPSECSiteConnection> bulkRequest;
+    List<NeutronVpnIpSecSiteConnection> bulkRequest;
 
-    NeutronVPNIPSECSiteConnectionRequest() {
+    NeutronVpnIpSecSiteConnectionRequest() {
     }
 
-    NeutronVPNIPSECSiteConnectionRequest(NeutronVPNIPSECSiteConnection connection) {
+    NeutronVpnIpSecSiteConnectionRequest(NeutronVpnIpSecSiteConnection connection) {
         singleton = connection;
     }
 
-    NeutronVPNIPSECSiteConnectionRequest(List<NeutronVPNIPSECSiteConnection> connections) {
+    NeutronVpnIpSecSiteConnectionRequest(List<NeutronVpnIpSecSiteConnection> connections) {
         bulkRequest = connections;
     }
 }
@@ -25,8 +25,8 @@ import javax.ws.rs.core.Response;
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
 import org.codehaus.enunciate.jaxrs.TypeHint;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECSiteConnectionsCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECSiteConnection;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecSiteConnectionsCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecSiteConnection;
 
 /**
  * Neutron Northbound REST APIs for VPN IPSEC SiteConnection.<br>
@@ -47,9 +47,9 @@ import org.opendaylight.neutron.spi.NeutronVPNIPSECSiteConnection;
  */
 
 @Path("/vpn/ipsecsiteconnections")
-public final class NeutronVPNIPSECSiteConnectionsNorthbound
-        extends AbstractNeutronNorthbound<NeutronVPNIPSECSiteConnection,
-        NeutronVPNIPSECSiteConnectionRequest, INeutronVPNIPSECSiteConnectionsCRUD> {
+public final class NeutronVpnIpSecSiteConnectionsNorthbound
+        extends AbstractNeutronNorthbound<NeutronVpnIpSecSiteConnection,
+        NeutronVpnIpSecSiteConnectionRequest, INeutronVpnIpSecSiteConnectionsCRUD> {
 
     private static final String RESOURCE_NAME = "VPNIPSECSiteConnections";
 
@@ -68,7 +68,7 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response listVPNIPSECSiteConnections(
+    public Response listVpnIPSecSiteConnections(
             // return fields
             @QueryParam("fields") List<String> fields,
             // filter fields
@@ -89,10 +89,10 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
             @QueryParam("vpnservice_id") String queryVpnServiceID
     // pagination and sorting are TODO
     ) {
-        INeutronVPNIPSECSiteConnectionsCRUD labelInterface = getNeutronCRUD();
-        List<NeutronVPNIPSECSiteConnection> allNeutronVPNIPSECSiteConnection = labelInterface.getAll();
-        List<NeutronVPNIPSECSiteConnection> ans = new ArrayList<>();
-        for (NeutronVPNIPSECSiteConnection siteConnection : allNeutronVPNIPSECSiteConnection) {
+        INeutronVpnIpSecSiteConnectionsCRUD labelInterface = getNeutronCRUD();
+        List<NeutronVpnIpSecSiteConnection> allNeutronVpnIPSecSiteConnection = labelInterface.getAll();
+        List<NeutronVpnIpSecSiteConnection> ans = new ArrayList<>();
+        for (NeutronVpnIpSecSiteConnection siteConnection : allNeutronVpnIPSecSiteConnection) {
             if ((queryID == null || queryID.equals(siteConnection.getID()))
                     && (queryTenantID == null || queryTenantID.equals(siteConnection.getTenantID()))
                     && (queryName == null || queryName.equals(siteConnection.getName()))
@@ -117,7 +117,7 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
         }
 
         // TODO: apply pagination to results
-        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVPNIPSECSiteConnectionRequest(ans)).build();
+        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVpnIpSecSiteConnectionRequest(ans)).build();
     }
 
     /**
@@ -133,9 +133,9 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response showVPNIPSECSiteConnection(@PathParam("connectionID") String connectionID,
-            // return fields
-            @QueryParam("fields") List<String> fields) {
+    public Response showVpnIPSecSiteConnection(@PathParam("connectionID") String connectionID,
+                                               // return fields
+                                               @QueryParam("fields") List<String> fields) {
         return show(connectionID, fields);
     }
 
@@ -145,10 +145,10 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
     @POST
     @Produces({ MediaType.APPLICATION_JSON })
     @Consumes({ MediaType.APPLICATION_JSON })
-    @TypeHint(NeutronVPNIPSECSiteConnection.class)
+    @TypeHint(NeutronVpnIpSecSiteConnection.class)
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response createVPNIPSECSiteConnection(final NeutronVPNIPSECSiteConnectionRequest input) {
+    public Response createVpnIPSecSiteConnection(final NeutronVpnIpSecSiteConnectionRequest input) {
         return create(input);
     }
 
@@ -162,8 +162,8 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response updateVPNIPSECSiteConnection(@PathParam("connectionID") String connectionID,
-            final NeutronVPNIPSECSiteConnectionRequest input) {
+    public Response updateVpnIPSecSiteConnection(@PathParam("connectionID") String connectionID,
+                                                 final NeutronVpnIpSecSiteConnectionRequest input) {
         return update(connectionID, input);
     }
 
@@ -176,7 +176,7 @@ public final class NeutronVPNIPSECSiteConnectionsNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response deleteVPNIPSECSiteConnection(@PathParam("connectionID") String connectionID) {
+    public Response deleteVpnIPSecSiteConnection(@PathParam("connectionID") String connectionID) {
         return delete(connectionID);
     }
 
similarity index 67%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNServiceRequest.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnServiceRequest.java
index 3e2e61dd7bc0ab51fa0949752d9692837ccb595e..809a354c9527d222d96ca869f0b309d15eab4dd3 100644 (file)
@@ -13,25 +13,25 @@ import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.neutron.spi.NeutronVPNService;
+import org.opendaylight.neutron.spi.NeutronVpnService;
 
 @XmlRootElement
 @XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVPNServiceRequest implements INeutronRequest<NeutronVPNService> {
+public final class NeutronVpnServiceRequest implements INeutronRequest<NeutronVpnService> {
     @XmlElement(name = "vpnservice")
-    NeutronVPNService singleton;
+    NeutronVpnService singleton;
 
     @XmlElement(name = "vpnservices")
-    List<NeutronVPNService> bulkRequest;
+    List<NeutronVpnService> bulkRequest;
 
-    NeutronVPNServiceRequest() {
+    NeutronVpnServiceRequest() {
     }
 
-    NeutronVPNServiceRequest(NeutronVPNService service) {
+    NeutronVpnServiceRequest(NeutronVpnService service) {
         singleton = service;
     }
 
-    NeutronVPNServiceRequest(List<NeutronVPNService> services) {
+    NeutronVpnServiceRequest(List<NeutronVpnService> services) {
         bulkRequest = services;
     }
 }
similarity index 88%
rename from northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVPNServicesNorthbound.java
rename to northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronVpnServicesNorthbound.java
index fc267d9a1e535ee236883adac8cdb005ebe0bc1d..b49a049dfc00654c15f47b2a5828a3916d311af1 100644 (file)
@@ -25,8 +25,8 @@ import javax.ws.rs.core.Response;
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
 import org.codehaus.enunciate.jaxrs.TypeHint;
-import org.opendaylight.neutron.spi.INeutronVPNServiceCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNService;
+import org.opendaylight.neutron.spi.INeutronVpnServiceCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnService;
 
 /**
  * Neutron Northbound REST APIs for VPN Service.<br>
@@ -47,10 +47,10 @@ import org.opendaylight.neutron.spi.NeutronVPNService;
  */
 
 @Path("/vpn/vpnservices")
-public final class NeutronVPNServicesNorthbound
-        extends AbstractNeutronNorthbound<NeutronVPNService, NeutronVPNServiceRequest, INeutronVPNServiceCRUD> {
+public final class NeutronVpnServicesNorthbound
+        extends AbstractNeutronNorthbound<NeutronVpnService, NeutronVpnServiceRequest, INeutronVpnServiceCRUD> {
 
-    private static final String RESOURCE_NAME = "VPNService";
+    private static final String RESOURCE_NAME = "VpnService";
 
     @Override
     protected String getResourceName() {
@@ -84,10 +84,10 @@ public final class NeutronVPNServicesNorthbound
             @QueryParam("page_reverse") String pageReverse
     // sorting not supported
     ) {
-        INeutronVPNServiceCRUD vpnServiceInterface = getNeutronCRUD();
-        List<NeutronVPNService> allVPNService = vpnServiceInterface.getAll();
-        List<NeutronVPNService> ans = new ArrayList<>();
-        for (NeutronVPNService vpnService : allVPNService) {
+        INeutronVpnServiceCRUD vpnServiceInterface = getNeutronCRUD();
+        List<NeutronVpnService> allVPNService = vpnServiceInterface.getAll();
+        List<NeutronVpnService> ans = new ArrayList<>();
+        for (NeutronVpnService vpnService : allVPNService) {
             if ((queryID == null || queryID.equals(vpnService.getID()))
                     && (queryName == null || queryName.equals(vpnService.getName()))
                     && (queryAdminStateUp == null || queryAdminStateUp.equals(vpnService.getAdminStateUp()))
@@ -103,7 +103,7 @@ public final class NeutronVPNServicesNorthbound
             }
         }
 
-        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVPNServiceRequest(ans)).build();
+        return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronVpnServiceRequest(ans)).build();
     }
 
     /**
@@ -130,10 +130,10 @@ public final class NeutronVPNServicesNorthbound
     @POST
     @Produces({ MediaType.APPLICATION_JSON })
     @Consumes({ MediaType.APPLICATION_JSON })
-    @TypeHint(NeutronVPNService.class)
+    @TypeHint(NeutronVpnService.class)
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response createVPNService(final NeutronVPNServiceRequest input) {
+    public Response createVPNService(final NeutronVpnServiceRequest input) {
         return create(input);
     }
 
@@ -147,7 +147,7 @@ public final class NeutronVPNServicesNorthbound
     @StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
             @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
             @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
-    public Response updateVPNService(@PathParam("serviceID") String serviceID, final NeutronVPNServiceRequest input) {
+    public Response updateVPNService(@PathParam("serviceID") String serviceID, final NeutronVpnServiceRequest input) {
         return update(serviceID, input);
     }
 
index 9fbc05ae830e838258c9b7119753006dbb5ae4f6..a0e2c3102bbd0dd10d8bf2949930e4602f0f32ce 100644 (file)
@@ -6,8 +6,5 @@
 
 <suppressions>
   <suppress files="[/\\]target[/\\]" checks=".*"/>
-  <suppress checks="AbbreviationAsWordInName"
-            files="."
-             />
 </suppressions>
 
similarity index 79%
rename from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronFloatingIPInterface.java
rename to transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronFloatingIpInterface.java
index 2e54346af1d8dacb5747bd715754092bd81646f5..eeb3c1a8779d6e223440fabe43da125bc3fed984 100644 (file)
@@ -10,8 +10,8 @@ package org.opendaylight.neutron.transcriber;
 
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.neutron.spi.INeutronFloatingIPCRUD;
-import org.opendaylight.neutron.spi.NeutronFloatingIP;
+import org.opendaylight.neutron.spi.INeutronFloatingIpCRUD;
+import org.opendaylight.neutron.spi.NeutronFloatingIp;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l3.rev150712.floatingips.attributes.Floatingips;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l3.rev150712.floatingips.attributes.floatingips.Floatingip;
@@ -20,16 +20,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l3.rev150712.floati
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public final class NeutronFloatingIPInterface
-        extends AbstractNeutronInterface<Floatingip, Floatingips, FloatingipKey, NeutronFloatingIP>
-        implements INeutronFloatingIPCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronFloatingIPInterface.class);
+public final class NeutronFloatingIpInterface
+        extends AbstractNeutronInterface<Floatingip, Floatingips, FloatingipKey, NeutronFloatingIp>
+        implements INeutronFloatingIpCRUD {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronFloatingIpInterface.class);
 
-    NeutronFloatingIPInterface(DataBroker db) {
+    NeutronFloatingIpInterface(DataBroker db) {
         super(FloatingipBuilder.class, db);
     }
 
-    // IfNBFloatingIPCRUD interface methods
+    // IfNBFloatingIpCRUD interface methods
 
     @Override
     protected List<Floatingip> getDataObjectList(Floatingips fips) {
@@ -37,13 +37,13 @@ public final class NeutronFloatingIPInterface
     }
 
     @Override
-    protected Floatingip toMd(NeutronFloatingIP floatingIp) {
+    protected Floatingip toMd(NeutronFloatingIp floatingIp) {
         final FloatingipBuilder floatingipBuilder = new FloatingipBuilder();
-        if (floatingIp.getFixedIPAddress() != null) {
-            floatingipBuilder.setFixedIpAddress(new IpAddress(floatingIp.getFixedIPAddress().toCharArray()));
+        if (floatingIp.getFixedIpAddress() != null) {
+            floatingipBuilder.setFixedIpAddress(new IpAddress(floatingIp.getFixedIpAddress().toCharArray()));
         }
-        if (floatingIp.getFloatingIPAddress() != null) {
-            floatingipBuilder.setFloatingIpAddress(new IpAddress(floatingIp.getFloatingIPAddress().toCharArray()));
+        if (floatingIp.getFloatingIpAddress() != null) {
+            floatingipBuilder.setFloatingIpAddress(new IpAddress(floatingIp.getFloatingIpAddress().toCharArray()));
         }
         if (floatingIp.getFloatingNetworkUUID() != null) {
             floatingipBuilder.setFloatingNetworkId(toUuid(floatingIp.getFloatingNetworkUUID()));
@@ -68,8 +68,8 @@ public final class NeutronFloatingIPInterface
         return floatingipBuilder.build();
     }
 
-    protected NeutronFloatingIP fromMd(Floatingip fip) {
-        final NeutronFloatingIP result = new NeutronFloatingIP();
+    protected NeutronFloatingIp fromMd(Floatingip fip) {
+        final NeutronFloatingIp result = new NeutronFloatingIp();
         result.setID(fip.getUuid().getValue());
         if (fip.getFloatingNetworkId() != null) {
             result.setFloatingNetworkUUID(String.valueOf(fip.getFloatingNetworkId().getValue()));
@@ -78,10 +78,10 @@ public final class NeutronFloatingIPInterface
             result.setPortUUID(String.valueOf(fip.getPortId().getValue()));
         }
         if (fip.getFixedIpAddress() != null) {
-            result.setFixedIPAddress(String.valueOf(fip.getFixedIpAddress().getValue()));
+            result.setFixedIpAddress(String.valueOf(fip.getFixedIpAddress().getValue()));
         }
         if (fip.getFloatingIpAddress() != null) {
-            result.setFloatingIPAddress(String.valueOf(fip.getFloatingIpAddress().getValue()));
+            result.setFloatingIpAddress(String.valueOf(fip.getFloatingIpAddress().getValue()));
         }
         if (fip.getTenantId() != null) {
             result.setTenantID(fip.getTenantId());
index 0366b7348a3bc8fc5189c405965f6ad30f9cac61..4dc9a33bf80dd27f12e69a376bef2110783240b8 100644 (file)
@@ -60,9 +60,9 @@ public final class NeutronMeteringLabelRuleInterface
             meteringRuleBuilder.setDirection(
                     (Class<? extends DirectionBase>) mapper.get(meteringLabelRule.getMeteringLabelRuleDirection()));
         }
-        if (meteringLabelRule.getMeteringLabelRuleRemoteIPPrefix() != null) {
+        if (meteringLabelRule.getMeteringLabelRuleRemoteIpPrefix() != null) {
             final IpPrefix ipPrefix = new IpPrefix(
-                    meteringLabelRule.getMeteringLabelRuleRemoteIPPrefix().toCharArray());
+                    meteringLabelRule.getMeteringLabelRuleRemoteIpPrefix().toCharArray());
             meteringRuleBuilder.setRemoteIpPrefix(ipPrefix);
         }
         meteringRuleBuilder.setExcluded(meteringLabelRule.getMeteringLabelRuleExcluded());
@@ -84,7 +84,7 @@ public final class NeutronMeteringLabelRuleInterface
             answer.setMeteringLabelRuleDirection(DIRECTION_MAP.get(rule.getDirection()));
         }
         if (rule.getRemoteIpPrefix() != null) {
-            answer.setMeteringLabelRuleRemoteIPPrefix(new String(rule.getRemoteIpPrefix().getValue()));
+            answer.setMeteringLabelRuleRemoteIpPrefix(new String(rule.getRemoteIpPrefix().getValue()));
         }
         answer.setMeteringLabelRuleExcluded(rule.isExcluded());
         return answer;
index 2c1def710c8caff160bb85b76a878102bb952b34..2090b390e1603c85102f4b3e154bde5d65efa27c 100644 (file)
@@ -17,7 +17,7 @@ import java.util.Map;
 import java.util.Set;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.neutron.spi.INeutronPortCRUD;
-import org.opendaylight.neutron.spi.NeutronIPs;
+import org.opendaylight.neutron.spi.NeutronIps;
 import org.opendaylight.neutron.spi.NeutronPort;
 import org.opendaylight.neutron.spi.NeutronPortAllowedAddressPairs;
 import org.opendaylight.neutron.spi.NeutronPortExtraDHCPOption;
@@ -124,14 +124,14 @@ public final class NeutronPortInterface extends AbstractNeutronInterface<Port, P
             result.setExtraDHCPOptions(options);
         }
         if (port.getFixedIps() != null) {
-            final List<NeutronIPs> ips = new ArrayList<NeutronIPs>();
-            for (final FixedIps mdIP : port.getFixedIps()) {
-                final NeutronIPs ip = new NeutronIPs();
-                ip.setIpAddress(String.valueOf(mdIP.getIpAddress().getValue()));
-                ip.setSubnetUUID(mdIP.getSubnetId().getValue());
+            final List<NeutronIps> ips = new ArrayList<NeutronIps>();
+            for (final FixedIps mdIp : port.getFixedIps()) {
+                final NeutronIps ip = new NeutronIps();
+                ip.setIpAddress(String.valueOf(mdIp.getIpAddress().getValue()));
+                ip.setSubnetUUID(mdIp.getSubnetId().getValue());
                 ips.add(ip);
             }
-            result.setFixedIPs(ips);
+            result.setFixedIps(ips);
         }
         result.setMacAddress(port.getMacAddress().getValue());
         result.setNetworkUUID(String.valueOf(port.getNetworkId().getValue()));
@@ -223,15 +223,15 @@ public final class NeutronPortInterface extends AbstractNeutronInterface<Port, P
             }
             portBuilder.setExtraDhcpOpts(listExtraDHCPOptions);
         }
-        if (neutronPort.getFixedIPs() != null) {
-            final List<FixedIps> listNeutronIPs = new ArrayList<FixedIps>();
-            for (final NeutronIPs neutronIPs : neutronPort.getFixedIPs()) {
+        if (neutronPort.getFixedIps() != null) {
+            final List<FixedIps> listNeutronIps = new ArrayList<FixedIps>();
+            for (final NeutronIps neutronIPs : neutronPort.getFixedIps()) {
                 final FixedIpsBuilder fixedIpsBuilder = new FixedIpsBuilder();
                 fixedIpsBuilder.setIpAddress(new IpAddress(neutronIPs.getIpAddress().toCharArray()));
                 fixedIpsBuilder.setSubnetId(toUuid(neutronIPs.getSubnetUUID()));
-                listNeutronIPs.add(fixedIpsBuilder.build());
+                listNeutronIps.add(fixedIpsBuilder.build());
             }
-            portBuilder.setFixedIps(listNeutronIPs);
+            portBuilder.setFixedIps(listNeutronIps);
         }
         if (neutronPort.getMacAddress() != null) {
             portBuilder.setMacAddress(new MacAddress(neutronPort.getMacAddress()));
index 40de549fc495fd42f9d687248f74d922d102c946..544d733109a5f6ce5f4f97781fa3b9d2f75f0da8 100644 (file)
@@ -12,7 +12,7 @@ import java.util.ArrayList;
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.neutron.spi.INeutronRouterCRUD;
-import org.opendaylight.neutron.spi.NeutronIPs;
+import org.opendaylight.neutron.spi.NeutronIps;
 import org.opendaylight.neutron.spi.NeutronRoute;
 import org.opendaylight.neutron.spi.NeutronRouter;
 import org.opendaylight.neutron.spi.NeutronRouterNetworkReference;
@@ -74,9 +74,9 @@ public final class NeutronRouterInterface extends AbstractNeutronInterface<Route
                 final ExternalGatewayInfoBuilder builder = new ExternalGatewayInfoBuilder();
                 builder.setEnableSnat(externalGatewayInfos.getEnableSNAT());
                 builder.setExternalNetworkId(toUuid(externalGatewayInfos.getNetworkID()));
-                if (externalGatewayInfos.getExternalFixedIPs() != null) {
+                if (externalGatewayInfos.getExternalFixedIps() != null) {
                     final List<ExternalFixedIps> externalFixedIps = new ArrayList<ExternalFixedIps>();
-                    for (final NeutronIPs externalIp : externalGatewayInfos.getExternalFixedIPs()) {
+                    for (final NeutronIps externalIp : externalGatewayInfos.getExternalFixedIps()) {
                         final ExternalFixedIpsBuilder eFixedIpBuilder = new ExternalFixedIpsBuilder();
                         eFixedIpBuilder.setIpAddress(new IpAddress(externalIp.getIpAddress().toCharArray()));
                         eFixedIpBuilder.setSubnetId(toUuid(externalIp.getSubnetUUID()));
@@ -114,14 +114,14 @@ public final class NeutronRouterInterface extends AbstractNeutronInterface<Route
             extGwInfo.setNetworkID(String.valueOf(router.getExternalGatewayInfo().getExternalNetworkId().getValue()));
             extGwInfo.setEnableSNAT(router.getExternalGatewayInfo().isEnableSnat());
             if (router.getExternalGatewayInfo().getExternalFixedIps() != null) {
-                final List<NeutronIPs> fixedIPs = new ArrayList<NeutronIPs>();
-                for (final ExternalFixedIps mdFixedIP : router.getExternalGatewayInfo().getExternalFixedIps()) {
-                    final NeutronIPs fixedIP = new NeutronIPs();
-                    fixedIP.setSubnetUUID(String.valueOf(mdFixedIP.getSubnetId().getValue()));
-                    fixedIP.setIpAddress(String.valueOf(mdFixedIP.getIpAddress().getValue()));
-                    fixedIPs.add(fixedIP);
+                final List<NeutronIps> fixedIps = new ArrayList<NeutronIps>();
+                for (final ExternalFixedIps mdFixedIp : router.getExternalGatewayInfo().getExternalFixedIps()) {
+                    final NeutronIps fixedIp = new NeutronIps();
+                    fixedIp.setSubnetUUID(String.valueOf(mdFixedIp.getSubnetId().getValue()));
+                    fixedIp.setIpAddress(String.valueOf(mdFixedIp.getIpAddress().getValue()));
+                    fixedIps.add(fixedIp);
                 }
-                extGwInfo.setExternalFixedIPs(fixedIPs);
+                extGwInfo.setExternalFixedIps(fixedIps);
             }
             result.setExternalGatewayInfo(extGwInfo);
         }
index 65599d72afb3cc4722a6966599985c8ca35aa775..82683465743d4214583c8e838d852fc2bb9e0722 100644 (file)
@@ -15,7 +15,7 @@ import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.neutron.spi.INeutronSubnetCRUD;
 import org.opendaylight.neutron.spi.NeutronRoute;
 import org.opendaylight.neutron.spi.NeutronSubnet;
-import org.opendaylight.neutron.spi.NeutronSubnetIPAllocationPool;
+import org.opendaylight.neutron.spi.NeutronSubnetIpAllocationPool;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefixBuilder;
@@ -73,7 +73,7 @@ public final class NeutronSubnetInterface extends AbstractNeutronInterface<Subne
         result.setIpVersion(IPV_MAP.get(subnet.getIpVersion()));
         result.setCidr(String.valueOf(subnet.getCidr().getValue()));
         if (subnet.getGatewayIp() != null) {
-            result.setGatewayIP(String.valueOf(subnet.getGatewayIp().getValue()));
+            result.setGatewayIp(String.valueOf(subnet.getGatewayIp().getValue()));
         }
         if (subnet.getIpv6RaMode() != null) {
             result.setIpV6RaMode(DHCPV6_MAP.get(subnet.getIpv6RaMode()));
@@ -83,9 +83,9 @@ public final class NeutronSubnetInterface extends AbstractNeutronInterface<Subne
         }
         result.setEnableDHCP(subnet.isEnableDhcp());
         if (subnet.getAllocationPools() != null) {
-            final List<NeutronSubnetIPAllocationPool> allocationPools = new ArrayList<NeutronSubnetIPAllocationPool>();
+            final List<NeutronSubnetIpAllocationPool> allocationPools = new ArrayList<NeutronSubnetIpAllocationPool>();
             for (final AllocationPools allocationPool : subnet.getAllocationPools()) {
-                final NeutronSubnetIPAllocationPool pool = new NeutronSubnetIPAllocationPool();
+                final NeutronSubnetIpAllocationPool pool = new NeutronSubnetIpAllocationPool();
                 pool.setPoolStart(String.valueOf(allocationPool.getStart().getValue()));
                 pool.setPoolEnd(String.valueOf(allocationPool.getEnd().getValue()));
                 allocationPools.add(pool);
@@ -126,8 +126,8 @@ public final class NeutronSubnetInterface extends AbstractNeutronInterface<Subne
             final IpPrefix ipPrefix = IpPrefixBuilder.getDefaultInstance(subnet.getCidr());
             subnetBuilder.setCidr(ipPrefix);
         }
-        if (subnet.getGatewayIP() != null) {
-            final IpAddress ipAddress = new IpAddress(subnet.getGatewayIP().toCharArray());
+        if (subnet.getGatewayIp() != null) {
+            final IpAddress ipAddress = new IpAddress(subnet.getGatewayIp().toCharArray());
             subnetBuilder.setGatewayIp(ipAddress);
         }
         if (subnet.getIpV6RaMode() != null) {
@@ -141,7 +141,7 @@ public final class NeutronSubnetInterface extends AbstractNeutronInterface<Subne
         subnetBuilder.setEnableDhcp(subnet.getEnableDHCP());
         if (subnet.getAllocationPools() != null) {
             final List<AllocationPools> allocationPools = new ArrayList<AllocationPools>();
-            for (final NeutronSubnetIPAllocationPool allocationPool : subnet.getAllocationPools()) {
+            for (final NeutronSubnetIpAllocationPool allocationPool : subnet.getAllocationPools()) {
                 final AllocationPoolsBuilder builder = new AllocationPoolsBuilder();
                 builder.setStart(new IpAddress(allocationPool.getPoolStart().toCharArray()));
                 builder.setEnd(new IpAddress(allocationPool.getPoolEnd().toCharArray()));
index ab4563e59db175abb9a6adb7b5d631c1204f9d8a..9e04eb277034face1f57c725d227925377317d94 100644 (file)
@@ -17,7 +17,7 @@ import org.opendaylight.neutron.spi.INeutronCRUD;
 import org.opendaylight.neutron.spi.INeutronFirewallCRUD;
 import org.opendaylight.neutron.spi.INeutronFirewallPolicyCRUD;
 import org.opendaylight.neutron.spi.INeutronFirewallRuleCRUD;
-import org.opendaylight.neutron.spi.INeutronFloatingIPCRUD;
+import org.opendaylight.neutron.spi.INeutronFloatingIpCRUD;
 import org.opendaylight.neutron.spi.INeutronL2gatewayCRUD;
 import org.opendaylight.neutron.spi.INeutronL2gatewayConnectionCRUD;
 import org.opendaylight.neutron.spi.INeutronLoadBalancerCRUD;
@@ -37,10 +37,10 @@ import org.opendaylight.neutron.spi.INeutronSFCPortPairGroupCRUD;
 import org.opendaylight.neutron.spi.INeutronSecurityGroupCRUD;
 import org.opendaylight.neutron.spi.INeutronSecurityRuleCRUD;
 import org.opendaylight.neutron.spi.INeutronSubnetCRUD;
-import org.opendaylight.neutron.spi.INeutronVPNIKEPolicyCRUD;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECPolicyCRUD;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECSiteConnectionsCRUD;
-import org.opendaylight.neutron.spi.INeutronVPNServiceCRUD;
+import org.opendaylight.neutron.spi.INeutronVpnIkePolicyCRUD;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecPolicyCRUD;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecSiteConnectionsCRUD;
+import org.opendaylight.neutron.spi.INeutronVpnServiceCRUD;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceRegistration;
 import org.slf4j.Logger;
@@ -75,7 +75,7 @@ public final class NeutronTranscriberProvider implements AutoCloseable, NeutronT
         registerCRUDInterface(INeutronFirewallCRUD.class, new NeutronFirewallInterface(db));
         registerCRUDInterface(INeutronFirewallPolicyCRUD.class, new NeutronFirewallPolicyInterface(db));
         registerCRUDInterface(INeutronFirewallRuleCRUD.class, new NeutronFirewallRuleInterface(db));
-        registerCRUDInterface(INeutronFloatingIPCRUD.class, new NeutronFloatingIPInterface(db));
+        registerCRUDInterface(INeutronFloatingIpCRUD.class, new NeutronFloatingIpInterface(db));
         registerCRUDInterface(INeutronL2gatewayConnectionCRUD.class, new NeutronL2gatewayConnectionInterface(db));
         registerCRUDInterface(INeutronL2gatewayCRUD.class, new NeutronL2gatewayInterface(db));
         registerCRUDInterface(INeutronLoadBalancerHealthMonitorCRUD.class,
@@ -96,11 +96,11 @@ public final class NeutronTranscriberProvider implements AutoCloseable, NeutronT
         registerCRUDInterface(INeutronSecurityGroupCRUD.class, new NeutronSecurityGroupInterface(db));
         registerCRUDInterface(INeutronSecurityRuleCRUD.class, new NeutronSecurityRuleInterface(db));
         registerCRUDInterface(INeutronSubnetCRUD.class, new NeutronSubnetInterface(db));
-        registerCRUDInterface(INeutronVPNIKEPolicyCRUD.class, new NeutronVPNIKEPolicyInterface(db));
-        registerCRUDInterface(INeutronVPNIPSECPolicyCRUD.class, new NeutronVPNIPSECPolicyInterface(db));
-        registerCRUDInterface(INeutronVPNIPSECSiteConnectionsCRUD.class,
-                              new NeutronVPNIPSECSiteConnectionsInterface(db));
-        registerCRUDInterface(INeutronVPNServiceCRUD.class, new NeutronVPNServiceInterface(db));
+        registerCRUDInterface(INeutronVpnIkePolicyCRUD.class, new NeutronVpnIkePolicyInterface(db));
+        registerCRUDInterface(INeutronVpnIpSecPolicyCRUD.class, new NeutronVpnIpSecPolicyInterface(db));
+        registerCRUDInterface(INeutronVpnIpSecSiteConnectionsCRUD.class,
+                              new NeutronVpnIpSecSiteConnectionsInterface(db));
+        registerCRUDInterface(INeutronVpnServiceCRUD.class, new NeutronVpnServiceInterface(db));
 
         // We don't need context any more
         this.context = null;
similarity index 83%
rename from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIKEPolicyInterface.java
rename to transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIkePolicyInterface.java
index ac1e26807d2882bb161f57d84d4b76434c24b4b0..77f9d2021ff79e9aae746cb93c640a77c6d516b0 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.neutron.transcriber;
 
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.neutron.spi.INeutronVPNIKEPolicyCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNIKEPolicy;
-import org.opendaylight.neutron.spi.NeutronVPNLifetime;
+import org.opendaylight.neutron.spi.INeutronVpnIkePolicyCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnIkePolicy;
+import org.opendaylight.neutron.spi.NeutronVpnLifetime;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ikepolicies.attributes.IkePolicies;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ikepolicies.attributes.ike.policies.Ikepolicy;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ikepolicies.attributes.ike.policies.IkepolicyBuilder;
@@ -21,12 +21,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ik
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public final class NeutronVPNIKEPolicyInterface
-        extends AbstractNeutronInterface<Ikepolicy, IkePolicies, IkepolicyKey, NeutronVPNIKEPolicy>
-        implements INeutronVPNIKEPolicyCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVPNIKEPolicyInterface.class);
+public final class NeutronVpnIkePolicyInterface
+        extends AbstractNeutronInterface<Ikepolicy, IkePolicies, IkepolicyKey, NeutronVpnIkePolicy>
+        implements INeutronVpnIkePolicyCRUD {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVpnIkePolicyInterface.class);
 
-    NeutronVPNIKEPolicyInterface(DataBroker db) {
+    NeutronVpnIkePolicyInterface(DataBroker db) {
         super(IkepolicyBuilder.class, db);
     }
 
@@ -37,8 +37,8 @@ public final class NeutronVPNIKEPolicyInterface
         return policies.getIkepolicy();
     }
 
-    protected NeutronVPNIKEPolicy fromMd(Ikepolicy ikePolicy) {
-        final NeutronVPNIKEPolicy answer = new NeutronVPNIKEPolicy();
+    protected NeutronVpnIkePolicy fromMd(Ikepolicy ikePolicy) {
+        final NeutronVpnIkePolicy answer = new NeutronVpnIkePolicy();
         fromMdBaseAttributes(ikePolicy, answer);
         if (ikePolicy.getAuthAlgorithm() != null) {
             answer.setAuthAlgorithm(ikePolicy.getAuthAlgorithm());
@@ -56,7 +56,7 @@ public final class NeutronVPNIKEPolicyInterface
             answer.setIkeVersion(ikePolicy.getIkeVersion());
         }
         if (ikePolicy.getLifetime() != null) {
-            final NeutronVPNLifetime vpnLifetime = new NeutronVPNLifetime();
+            final NeutronVpnLifetime vpnLifetime = new NeutronVpnLifetime();
             ikePolicy.getLifetime();
             vpnLifetime.setUnits(ikePolicy.getLifetime().getUnits());
             vpnLifetime.setValue(ikePolicy.getLifetime().getValue());
@@ -66,7 +66,7 @@ public final class NeutronVPNIKEPolicyInterface
     }
 
     @Override
-    protected Ikepolicy toMd(NeutronVPNIKEPolicy ikePolicy) {
+    protected Ikepolicy toMd(NeutronVpnIkePolicy ikePolicy) {
         final IkepolicyBuilder ikePolicyBuilder = new IkepolicyBuilder();
         toMdBaseAttributes(ikePolicy, ikePolicyBuilder);
         if (ikePolicy.getAuthAlgorithm() != null) {
@@ -85,7 +85,7 @@ public final class NeutronVPNIKEPolicyInterface
             ikePolicyBuilder.setIkeVersion(ikePolicy.getIkeVersion());
         }
         if (ikePolicy.getLifetime() != null) {
-            final NeutronVPNLifetime vpnLifetime = ikePolicy.getLifetime();
+            final NeutronVpnLifetime vpnLifetime = ikePolicy.getLifetime();
             final LifetimeBuilder lifetimeBuilder = new LifetimeBuilder();
             lifetimeBuilder.setUnits(vpnLifetime.getUnits());
             lifetimeBuilder.setValue(vpnLifetime.getValue());
similarity index 83%
rename from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIPSECPolicyInterface.java
rename to transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIpSecPolicyInterface.java
index 10160e9557f38ec821fff6f492aa1f73e13baebb..540af715d88ebb96ab6ab092806222a102f06d82 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.neutron.transcriber;
 
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECPolicyCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECPolicy;
-import org.opendaylight.neutron.spi.NeutronVPNLifetime;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecPolicyCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecPolicy;
+import org.opendaylight.neutron.spi.NeutronVpnLifetime;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecpolicies.attributes.IpsecPolicies;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecpolicies.attributes.ipsec.policies.Ipsecpolicy;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecpolicies.attributes.ipsec.policies.IpsecpolicyBuilder;
@@ -21,12 +21,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ip
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public final class NeutronVPNIPSECPolicyInterface
-        extends AbstractNeutronInterface<Ipsecpolicy, IpsecPolicies, IpsecpolicyKey, NeutronVPNIPSECPolicy>
-        implements INeutronVPNIPSECPolicyCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVPNIPSECPolicyInterface.class);
+public final class NeutronVpnIpSecPolicyInterface
+        extends AbstractNeutronInterface<Ipsecpolicy, IpsecPolicies, IpsecpolicyKey, NeutronVpnIpSecPolicy>
+        implements INeutronVpnIpSecPolicyCRUD {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVpnIpSecPolicyInterface.class);
 
-    NeutronVPNIPSECPolicyInterface(DataBroker db) {
+    NeutronVpnIpSecPolicyInterface(DataBroker db) {
         super(IpsecpolicyBuilder.class, db);
     }
 
@@ -37,8 +37,8 @@ public final class NeutronVPNIPSECPolicyInterface
         return policies.getIpsecpolicy();
     }
 
-    protected NeutronVPNIPSECPolicy fromMd(Ipsecpolicy ipsecPolicy) {
-        final NeutronVPNIPSECPolicy answer = new NeutronVPNIPSECPolicy();
+    protected NeutronVpnIpSecPolicy fromMd(Ipsecpolicy ipsecPolicy) {
+        final NeutronVpnIpSecPolicy answer = new NeutronVpnIpSecPolicy();
         fromMdBaseAttributes(ipsecPolicy, answer);
         if (ipsecPolicy.getAuthAlgorithm() != null) {
             answer.setAuthAlgorithm(ipsecPolicy.getAuthAlgorithm());
@@ -56,7 +56,7 @@ public final class NeutronVPNIPSECPolicyInterface
             answer.setPerfectForwardSecrecy(ipsecPolicy.getPfs());
         }
         if (ipsecPolicy.getLifetime() != null) {
-            final NeutronVPNLifetime vpnLifetime = new NeutronVPNLifetime();
+            final NeutronVpnLifetime vpnLifetime = new NeutronVpnLifetime();
             vpnLifetime.setUnits(ipsecPolicy.getLifetime().getUnits());
             vpnLifetime.setValue(ipsecPolicy.getLifetime().getValue());
             answer.setLifetime(vpnLifetime);
@@ -65,7 +65,7 @@ public final class NeutronVPNIPSECPolicyInterface
     }
 
     @Override
-    protected Ipsecpolicy toMd(NeutronVPNIPSECPolicy ipsecPolicy) {
+    protected Ipsecpolicy toMd(NeutronVpnIpSecPolicy ipsecPolicy) {
         final IpsecpolicyBuilder ipsecPolicyBuilder = new IpsecpolicyBuilder();
         toMdBaseAttributes(ipsecPolicy, ipsecPolicyBuilder);
         if (ipsecPolicy.getAuthAlgorithm() != null) {
@@ -84,7 +84,7 @@ public final class NeutronVPNIPSECPolicyInterface
             ipsecPolicyBuilder.setPfs(ipsecPolicy.getPerfectForwardSecrecy());
         }
         if (ipsecPolicy.getLifetime() != null) {
-            final NeutronVPNLifetime vpnLifetime = ipsecPolicy.getLifetime();
+            final NeutronVpnLifetime vpnLifetime = ipsecPolicy.getLifetime();
             final LifetimeBuilder lifetimeBuilder = new LifetimeBuilder();
             lifetimeBuilder.setUnits(vpnLifetime.getUnits());
             lifetimeBuilder.setValue(vpnLifetime.getValue());
similarity index 87%
rename from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIPSECSiteConnectionsInterface.java
rename to transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnIpSecSiteConnectionsInterface.java
index 155efb3291c6ca578bd89b97bc7900a0201f94d4..d88998fd3dc4c54fa58827ed034a785cd89b9d52 100644 (file)
@@ -11,9 +11,9 @@ package org.opendaylight.neutron.transcriber;
 import java.util.ArrayList;
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.neutron.spi.INeutronVPNIPSECSiteConnectionsCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNDeadPeerDetection;
-import org.opendaylight.neutron.spi.NeutronVPNIPSECSiteConnection;
+import org.opendaylight.neutron.spi.INeutronVpnIpSecSiteConnectionsCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnDeadPeerDetection;
+import org.opendaylight.neutron.spi.NeutronVpnIpSecSiteConnection;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecconnection.attributes.DpdBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecconnections.attributes.IpsecSiteConnections;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ipsecconnections.attributes.ipsec.site.connections.Ipsecsiteconnection;
@@ -22,24 +22,24 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.ip
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public final class NeutronVPNIPSECSiteConnectionsInterface
+public final class NeutronVpnIpSecSiteConnectionsInterface
         extends AbstractNeutronInterface<Ipsecsiteconnection, IpsecSiteConnections, IpsecsiteconnectionKey,
-                                         NeutronVPNIPSECSiteConnection>
-        implements INeutronVPNIPSECSiteConnectionsCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVPNIKEPolicyInterface.class);
+        NeutronVpnIpSecSiteConnection>
+        implements INeutronVpnIpSecSiteConnectionsCRUD {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVpnIkePolicyInterface.class);
 
-    NeutronVPNIPSECSiteConnectionsInterface(DataBroker db) {
+    NeutronVpnIpSecSiteConnectionsInterface(DataBroker db) {
         super(IpsecsiteconnectionBuilder.class, db);
     }
 
-    // INeutronVPNIPSECSiteConnectionsCRUD methods
+    // INeutronVpnIpSecSiteConnectionsCRUD methods
     @Override
     protected List<Ipsecsiteconnection> getDataObjectList(IpsecSiteConnections connections) {
         return connections.getIpsecsiteconnection();
     }
 
-    protected NeutronVPNIPSECSiteConnection fromMd(Ipsecsiteconnection ipsecSiteConnection) {
-        final NeutronVPNIPSECSiteConnection answer = new NeutronVPNIPSECSiteConnection();
+    protected NeutronVpnIpSecSiteConnection fromMd(Ipsecsiteconnection ipsecSiteConnection) {
+        final NeutronVpnIpSecSiteConnection answer = new NeutronVpnIpSecSiteConnection();
         fromMdAdminAttributes(ipsecSiteConnection, answer);
         if (ipsecSiteConnection.getPeerAddress() != null) {
             answer.setPeerAddress(ipsecSiteConnection.getPeerAddress());
@@ -79,7 +79,7 @@ public final class NeutronVPNIPSECSiteConnectionsInterface
             answer.setVpnServiceID(ipsecSiteConnection.getVpnserviceId().getValue());
         }
         if (ipsecSiteConnection.getDpd() != null) {
-            final NeutronVPNDeadPeerDetection deadPeerDetection = new NeutronVPNDeadPeerDetection();
+            final NeutronVpnDeadPeerDetection deadPeerDetection = new NeutronVpnDeadPeerDetection();
             deadPeerDetection.setAction(ipsecSiteConnection.getDpd().getAction());
             deadPeerDetection.setInterval(ipsecSiteConnection.getDpd().getInterval());
             deadPeerDetection.setTimeout(ipsecSiteConnection.getDpd().getTimeout());
@@ -89,7 +89,7 @@ public final class NeutronVPNIPSECSiteConnectionsInterface
     }
 
     @Override
-    protected Ipsecsiteconnection toMd(NeutronVPNIPSECSiteConnection ipsecSiteConnection) {
+    protected Ipsecsiteconnection toMd(NeutronVpnIpSecSiteConnection ipsecSiteConnection) {
         final IpsecsiteconnectionBuilder ipsecSiteConnectionBuilder = new IpsecsiteconnectionBuilder();
         toMdAdminAttributes(ipsecSiteConnection, ipsecSiteConnectionBuilder);
         if (ipsecSiteConnection.getPeerAddress() != null) {
@@ -130,7 +130,7 @@ public final class NeutronVPNIPSECSiteConnectionsInterface
             ipsecSiteConnectionBuilder.setVpnserviceId(toUuid(ipsecSiteConnection.getVpnServiceID()));
         }
         if (ipsecSiteConnection.getDeadPeerDetection() != null) {
-            final NeutronVPNDeadPeerDetection deadPeerDetection = ipsecSiteConnection.getDeadPeerDetection();
+            final NeutronVpnDeadPeerDetection deadPeerDetection = ipsecSiteConnection.getDeadPeerDetection();
             final DpdBuilder dpdBuilder = new DpdBuilder();
             dpdBuilder.setAction(deadPeerDetection.getAction());
             dpdBuilder.setInterval(deadPeerDetection.getInterval());
similarity index 80%
rename from transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNServiceInterface.java
rename to transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVpnServiceInterface.java
index de97859567955f350711dfdc4510995c1b9937c8..5bbd41d3f7ecc9fd536b67ecce040fe0d88439d3 100644 (file)
@@ -10,8 +10,8 @@ package org.opendaylight.neutron.transcriber;
 
 import java.util.List;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.neutron.spi.INeutronVPNServiceCRUD;
-import org.opendaylight.neutron.spi.NeutronVPNService;
+import org.opendaylight.neutron.spi.INeutronVpnServiceCRUD;
+import org.opendaylight.neutron.spi.NeutronVpnService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.vpnservices.attributes.VpnServices;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.vpnservices.attributes.vpn.services.Vpnservice;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.vpnservices.attributes.vpn.services.VpnserviceBuilder;
@@ -19,12 +19,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.vpnaas.rev150712.vp
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public final class NeutronVPNServiceInterface
-        extends AbstractNeutronInterface<Vpnservice, VpnServices, VpnserviceKey, NeutronVPNService>
-        implements INeutronVPNServiceCRUD {
-    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVPNServiceInterface.class);
+public final class NeutronVpnServiceInterface
+        extends AbstractNeutronInterface<Vpnservice, VpnServices, VpnserviceKey, NeutronVpnService>
+        implements INeutronVpnServiceCRUD {
+    private static final Logger LOGGER = LoggerFactory.getLogger(NeutronVpnServiceInterface.class);
 
-    NeutronVPNServiceInterface(DataBroker db) {
+    NeutronVpnServiceInterface(DataBroker db) {
         super(VpnserviceBuilder.class, db);
     }
 
@@ -33,8 +33,8 @@ public final class NeutronVPNServiceInterface
         return services.getVpnservice();
     }
 
-    protected NeutronVPNService fromMd(Vpnservice vpnService) {
-        final NeutronVPNService answer = new NeutronVPNService();
+    protected NeutronVpnService fromMd(Vpnservice vpnService) {
+        final NeutronVpnService answer = new NeutronVpnService();
         fromMdAdminAttributes(vpnService, answer);
         if (vpnService.getSubnetId() != null) {
             answer.setSubnetUUID(vpnService.getSubnetId().getValue());
@@ -46,7 +46,7 @@ public final class NeutronVPNServiceInterface
     }
 
     @Override
-    protected Vpnservice toMd(NeutronVPNService vpnService) {
+    protected Vpnservice toMd(NeutronVpnService vpnService) {
         final VpnserviceBuilder vpnServiceBuilder = new VpnserviceBuilder();
         toMdAdminAttributes(vpnService, vpnServiceBuilder);
         if (vpnService.getSubnetUUID() != null) {