diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-02-17 13:22:09 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-02-17 13:23:24 +0100 |
commit | 2c00d09e6a41fcb066b43e76beb14e3d79210cc4 (patch) | |
tree | e4ab04608ae0d56f4da29a558d0c3c682312d0e5 /dhcp/dhcp-impl/src | |
parent | c9ab24206b1356dced7f90768606fbe83edbce1a (diff) |
Change dhcp yang model to use inet:ip-address
workaround for
https://bugs.opendaylight.org/show_bug.cgi?id=6413
needed until we bump ODL dependencies to Boron again.
Change-Id: I28e03ed26e8c032fa4d06c9a1c0f4bc5f32c7c64
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'dhcp/dhcp-impl/src')
-rw-r--r-- | dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/write/DhcpRelayCustomizer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/write/DhcpRelayCustomizer.java b/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/write/DhcpRelayCustomizer.java index ca4e20b95..2dc3ac96a 100644 --- a/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/write/DhcpRelayCustomizer.java +++ b/dhcp/dhcp-impl/src/main/java/io/fd/hc2vpp/dhcp/write/DhcpRelayCustomizer.java @@ -27,7 +27,7 @@ import io.fd.honeycomb.translate.write.WriteFailedException; import io.fd.vpp.jvpp.core.dto.DhcpProxyConfig2; import io.fd.vpp.jvpp.core.future.FutureJVppCore; import javax.annotation.Nonnull; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone; +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.params.xml.ns.yang.vpp.dhcp.rev170315.Ipv6; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.dhcp.rev170315.dhcp.attributes.relays.Relay; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.dhcp.rev170315.dhcp.attributes.relays.RelayKey; @@ -79,11 +79,11 @@ final class DhcpRelayCustomizer extends FutureJVppCustomizer implements ListWrit getReplyForWrite(getFutureJVpp().dhcpProxyConfig2(request).toCompletableFuture(), id); } - private byte[] parseAddress(@Nonnull final IpAddressNoZone address, final boolean isIpv6) { + private byte[] parseAddress(@Nonnull final IpAddress address, final boolean isIpv6) { if (isIpv6) { - return ipv6AddressNoZoneToArray(address.getIpv6AddressNoZone()); + return ipv6AddressNoZoneToArray(address.getIpv6Address()); } else { - return ipv4AddressNoZoneToArray(address.getIpv4AddressNoZone()); + return ipv4AddressNoZoneToArray(address.getIpv4Address().getValue()); } } } |