diff options
Diffstat (limited to 'samples')
4 files changed, 22 insertions, 5 deletions
diff --git a/samples/samples-api/pom.xml b/samples/samples-api/pom.xml index 95e43ed40..f6e748d0d 100644 --- a/samples/samples-api/pom.xml +++ b/samples/samples-api/pom.xml @@ -1,6 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<!-- + Copyright (c) 2019 Cisco and/or its affiliates. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at: + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <groupId>io.fd.hc2vpp.common</groupId> @@ -8,9 +21,10 @@ <version>1.19.08-SNAPSHOT</version> <relativePath>../../common/api-parent</relativePath> </parent> + <modelVersion>4.0.0</modelVersion> - <groupId>io.fd.hc2vpp.common</groupId> + <groupId>io.fd.hc2vpp.samples</groupId> <artifactId>samples-api</artifactId> <name>${project.artifactId}</name> <version>1.19.08-SNAPSHOT</version> diff --git a/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang b/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang index 96edffe32..2c662bf10 100644 --- a/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang +++ b/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang @@ -16,7 +16,7 @@ module sample-plugin { Mailing List <hc2vpp@lists.fd.io>"; description - "Sample model for demonstration of transation code. + "Sample model for demonstration of translation code. Copyright (c) 2016 Cisco and/or its affiliates. diff --git a/samples/samples-impl/pom.xml b/samples/samples-impl/pom.xml index e5ede225c..317ff299d 100644 --- a/samples/samples-impl/pom.xml +++ b/samples/samples-impl/pom.xml @@ -10,14 +10,16 @@ </parent> <modelVersion>4.0.0</modelVersion> + <groupId>io.fd.hc2vpp.samples</groupId> <artifactId>samples-impl</artifactId> <name>${project.artifactId}</name> <version>1.19.08-SNAPSHOT</version> + <packaging>bundle</packaging> <dependencies> <!-- Api classes generated from yang model --> <dependency> - <groupId>io.fd.hc2vpp.common</groupId> + <groupId>io.fd.hc2vpp.samples</groupId> <artifactId>samples-api</artifactId> <version>${project.version}</version> </dependency> diff --git a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java index 6fcf50351..b6a5cf462 100644 --- a/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java +++ b/samples/samples-impl/src/main/java/io/fd/hc2vpp/samples/read/VxlanReadCustomizer.java @@ -162,6 +162,7 @@ public final class VxlanReadCustomizer implements // Now translate all attributes into provided builder final Boolean isIpv6 = byteToBoolean(singleVxlanDetail.isIpv6); + builder.setId(vxlanName); builder.setSrc(arrayToIpAddress(isIpv6, singleVxlanDetail.srcAddress)); builder.setDst(arrayToIpAddress(isIpv6, singleVxlanDetail.dstAddress)); // There are additional attributes of a vxlan tunnel that wont be used here |