commit | f734a2a14f2a02d1b6b954de21e802c95380d2fb | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea.campanella@intel.com> | Mon May 16 11:56:55 2022 +0200 |
committer | Andrea Campanella <andrea.campanella@intel.com> | Mon May 16 11:56:55 2022 +0200 |
tree | 79657d1450fe07a9178cd8d8434495613105f940 | |
parent | 34ce61ab34c4d8bdb301453c54e8b4568faea473 [diff] |
Allowing for FTTB flows to be provisioned with configured mac address Change-Id: I1ee6791f6df93653821d5d9db532f6fd329970ac
diff --git a/impl/src/main/java/org/opencord/olt/impl/fttb/FttbUtils.java b/impl/src/main/java/org/opencord/olt/impl/fttb/FttbUtils.java index 19d98a5..1ffb732 100644 --- a/impl/src/main/java/org/opencord/olt/impl/fttb/FttbUtils.java +++ b/impl/src/main/java/org/opencord/olt/impl/fttb/FttbUtils.java
@@ -178,6 +178,10 @@ return optHost.get().mac(); } } + } else if (uniTagInfo.getConfiguredMacAddress() != null && + !uniTagInfo.getConfiguredMacAddress().isEmpty()) { + log.info("Using configured mac address for FTTB {}", uniTagInfo.getConfiguredMacAddress()); + return MacAddress.valueOf(uniTagInfo.getConfiguredMacAddress()); } } return null;