commit | bccc74e48bed3eb2ffdd3f7da2d582a7aa01f859 | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Wed Sep 30 14:05:24 2020 +0200 |
committer | Andrea Campanella <andrea@opennetworking.org> | Wed Sep 30 14:14:45 2020 +0200 |
tree | 3524dfdef75cafda8150a44f90205b940117f5d9 | |
parent | 1f65c903563f39b22dbfb3890608b0b8201a6401 [diff] |
[VOL-3518] Multi-threaded packet processing in maclearner app Change-Id: I9eb3ebec813a1f002fe0be3da46257cca1c81ff6
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.