commit | 6bd736073c6c7f65415815e6e6bac4a351e9b31d | [log] [tgz] |
---|---|---|
author | Harsh Awasthi <harshawasthi90@gmail.com> | Mon Jan 31 18:40:25 2022 +0530 |
committer | Harsh Awasthi <harshawasthi90@gmail.com> | Tue Feb 08 08:38:35 2022 +0000 |
tree | a98493625823d8905049893cecd7b1f5f74e052a | |
parent | 92bbfd3fc307d5d0999fbb722166d9525a6d75cc [diff] |
[VOL-4568] Changes to onos-mac-learner app to forward the DHCP packets Change-Id: I85c2185238afc788f40d9e32a4a4de96cb3a1ebd
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.