Added to support to enabling l2 multicasting 02/107402/1
authorBoslet, Cory <cory.boslet@att.com>
Fri, 8 May 2020 18:58:31 +0000 (14:58 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Fri, 8 May 2020 18:58:32 +0000 (14:58 -0400)
updated aai dependency
Added to support to enabling l2 multicasting for lnterfaces.

Issue-ID: SO-2914
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Idf34a41777e23b7171bd09c174830a4eeeb79e4b

adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java
graph-inventory/aai-client/pom.xml
graph-inventory/aai-client/src/main/java/org/onap/aaiclient/client/aai/AAIVersion.java
mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/ServiceInstancesTest.java
pom.xml

index dcf33da..a00b9f9 100644 (file)
@@ -272,6 +272,14 @@ public class HeatBridgeImpl implements HeatBridgeApi {
             } else {
                 lIf.setInterfaceRole(port.getvNicType());
             }
+            boolean isL2Multicast = false;
+            if (port.getProfile().get("trusted") != null) {
+                String trusted = port.getProfile().get("trusted").toString();
+                if (Boolean.parseBoolean(trusted)) {
+                    isL2Multicast = true;
+                }
+            }
+            lIf.setL2Multicasting(isL2Multicast);
             updateLInterfaceIps(port, lIf);
             updateLInterfaceVlan(port, lIf);
 
index 39555f3..8c7be3e 100644 (file)
@@ -72,7 +72,6 @@
                 <artifactItem>
                   <groupId>org.onap.aai.schema-service</groupId>
                   <artifactId>aai-schema</artifactId>
-                  <version>1.6.5</version>
                   <outputDirectory>${project.build.directory}/swagger</outputDirectory>
                   <includes>**/*.yaml</includes>
                 </artifactItem>
     <dependency>
       <groupId>org.onap.aai.schema-service</groupId>
       <artifactId>aai-schema</artifactId>
-      <version>1.6.5</version>
     </dependency>
     <dependency>
       <groupId>com.jayway.jsonpath</groupId>
index 0ddbb8f..ef43717 100644 (file)
@@ -32,7 +32,8 @@ public enum AAIVersion implements GraphInventoryVersion {
     V16("v16"),
     V17("v17"),
     V18("v18"),
-    V19("v19");
+    V19("v19"),
+    V20("v20");
 
     public static final AAIVersion LATEST = AAIVersion.values()[AAIVersion.values().length - 1];
     private final String value;
index 143c928..ef90b22 100644 (file)
@@ -26,6 +26,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.get;
 import static com.github.tomakehurst.wiremock.client.WireMock.post;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;
+import static com.github.tomakehurst.wiremock.client.WireMock.urlPathMatching;
 import static com.shazam.shazamcrest.matcher.Matchers.sameBeanAs;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
@@ -1389,7 +1390,7 @@ public class ServiceInstancesTest extends BaseTest {
     @Test
     public void replaceVfModuleInstanceNoCloudConfigurationTest() throws IOException {
         wireMockServer.stubFor(
-                get(urlPathEqualTo("/aai/v19/network/generic-vnfs/generic-vnf/ff305d54-75b4-431b-adb2-eb6b9e5ff000"))
+                get(urlPathMatching("/aai/v\\d+/network/generic-vnfs/generic-vnf/ff305d54-75b4-431b-adb2-eb6b9e5ff000"))
                         .willReturn(aResponse().withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                                 .withBodyFile("infra/Vnf.json").withStatus(org.apache.http.HttpStatus.SC_OK)));
         wireMockServer.stubFor(post(urlPathEqualTo("/mso/async/services/WorkflowActionBB"))
diff --git a/pom.xml b/pom.xml
index 564e01e..909c1b9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
   <organization>
     <name>ONAP - SO</name>
     <url>http://www.onap.org/</url>
-  </organization>
+  </organization> 
   <modules>
     <module>deployment-configs</module>
     <module>common</module>
       </resource>
     </resources>
     <plugins>
-      <!-- <plugin>
-        <groupId>org.sonatype.plugins</groupId>
-        <artifactId>nexus-staging-maven-plugin</artifactId>
-        <version>1.6.7</version>
-        <extensions>true</extensions>
-        <configuration>
-          <nexusUrl>${nexusproxy}</nexusUrl>
-          <stagingProfileId>176c31dfe190a</stagingProfileId>
-          <serverId>ecomp-staging</serverId>
-        </configuration>
-      </plugin> -->
+      <!-- <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.7</version> 
+        <extensions>true</extensions> <configuration> <nexusUrl>${nexusproxy}</nexusUrl> <stagingProfileId>176c31dfe190a</stagingProfileId> 
+        <serverId>ecomp-staging</serverId> </configuration> </plugin> -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-deploy-plugin</artifactId>
         <artifactId>json</artifactId>
         <version>20140107</version>
       </dependency>
+      <dependency>
+        <groupId>org.onap.aai.schema-service</groupId>
+        <artifactId>aai-schema</artifactId>
+        <version>1.7.1-SNAPSHOT</version>
+      </dependency>
     </dependencies>
   </dependencyManagement>
   <profiles>