commit | ab298905535039fcf7a7569840d37a24e058cc45 | [log] [tgz] |
---|---|---|
author | amit.ghosh <amit.ghosh@radisys.com> | Tue Jun 14 11:22:17 2022 +0200 |
committer | amit.ghosh <amit.ghosh@radisys.com> | Tue Jun 14 11:22:28 2022 +0200 |
tree | 467c26e4334b4fc8479bf783a5bd2905bce95315 | |
parent | 81ff5d9ac9faa377086166c19fa81ae4fe4767bc [diff] |
VOL-4735 : Make autoClearMacMapping property of mac-learner configurable Change-Id: I80ce20a698b38bd460a3a955138d41e954cfe848
diff --git a/app/src/main/java/org/opencord/maclearner/app/impl/MacLearnerManager.java b/app/src/main/java/org/opencord/maclearner/app/impl/MacLearnerManager.java index 18cb221..e1972c3 100644 --- a/app/src/main/java/org/opencord/maclearner/app/impl/MacLearnerManager.java +++ b/app/src/main/java/org/opencord/maclearner/app/impl/MacLearnerManager.java
@@ -372,6 +372,14 @@ enableDhcpForward = o; } } + + o = Tools.isPropertyEnabled(properties, AUTO_CLEAR_MAC_MAPPING); + if (o != null) { + if (o != autoClearMacMapping) { + log.info("Changing autoClearMacMapping to: {} from {}", o, autoClearMacMapping); + autoClearMacMapping = o; + } + } } private Integer setMacMappingCacheDuration(Integer second) {