diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-01-04 16:39:10 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-01-04 18:04:13 +0000 |
commit | ae767d51cdba6f2296c52b63cd569a98d6f7db27 (patch) | |
tree | 2c3d9e4db9b8912782824064406d4d768af20a02 /vpp-common/vpp-translate-utils/src/main/java/io/fd | |
parent | 7c0f620652cd014b791a3e243f9ca7b08e697d3a (diff) |
HONEYCOMB-102/HONEYCOMB-103 - Ipv6 Support
Contains
- Ipv6 read/write Support for Interfaces
- Ipv6 read/write Support for Subi-Interfaces
- Postman collection with relevant requests
Todo
- Test coverage - HC2VPP-11
- Refactoring - HC2VPP-12
- Could be related to - HONEYCOMB-328
Tested
- read/write for both interfaces and sub-interfaces - passes ok
- init with following scenarios
- vpp clean/hc has data - passes ok
- vpp has data/hc clean - passed with error for sub-interface described in HONEYCOMB-328.
The actual ipv4/ipv6 part passes ok
Change-Id: Ib18acb9b18d6374dc5847e30db4049696d512e72
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'vpp-common/vpp-translate-utils/src/main/java/io/fd')
-rw-r--r-- | vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MacTranslator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MacTranslator.java b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MacTranslator.java index b31dc30b2..71b8a15e6 100644 --- a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MacTranslator.java +++ b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/MacTranslator.java @@ -26,6 +26,7 @@ import java.util.function.BiConsumer; import javax.annotation.Nonnull; import org.apache.commons.codec.DecoderException; import org.apache.commons.codec.binary.Hex; +import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress; /** * Trait providing logic for translation of MAC address data @@ -89,6 +90,10 @@ public interface MacTranslator { return separated; } + default PhysAddress toPhysAddress(final byte[] macAddress) { + return new PhysAddress(byteArrayToMacSeparated(macAddress)); + } + /** * Converts MAC string to byte array */ |