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
MAC Learner is an ONOS application that examines DISCOVER or REQUEST type DHCP packets and keeps the MAC address temporarily according to the device, port and vlanId information obtained from these packets. If the package has a single tag, VlanVID is used; if it is a double tag, QinqVID is used as vlanId.
MAC Learner has REST API and CLI integration. You can access and modify MAC Address map via these.
By defining ports to the Ignored Port Map, it can be ensured that DHCP packets from these ports are not taken into account.
cacheDurationSec - MAC Mappings are held with a timestamp and scheduled executor running in the background that clears expired mappings(exist more than cacheDuration). The operating frequency of this executor can be set with this parameter. By default, it is 86400(1 day).
autoClearMacMapping - By enabling this parameter, the relevant mappings can be cleared automatically with DEVICE_REMOVED and PORT_REMOVED device events. By default, it is disabled.