mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-25 19:22:24 +01:00
dp_desc represents the human readable description of a given datapath and is provided by an OpenFlow switch when it connects to the controller in the response to the OFPMP_DESC request. ONOS already has access to this information when the OpenFlowSwitch object is constructed (accessed via sw.datapathDescription()) but it does not save it or propagate it in any way. dp_desc, unlike the dp_id which is "random", works like a switch label. Accessing this information from the controller app layer is important so that different business logic can be applied according to the provided "marking". Thus, save the value into the Device Annotations if available. Change-Id: Ifaa715a0440e99ce31fdd8d4753c2e892385e33b