mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-28 20:51:58 +01:00
This patch extends the server device driver with the ability to manage FlowRule objects on the network interface cards (NICs) of commodity servers. With a minimal modification in an existing ONOS class (i.e., DefaultFlowRule.java), the server device driver re-uses the FlowRule and FlowEntry concepts to implement a sub-class translator that converts FlowRule objects into NicFlowRule objects. Currently this new feature supports a handful of possible NIC rule actions but it can be easily extended in the future. Addressed comment made by ONOS reviewers and fixed two bugs. One bug was related to rule installation (ability to send an array of rules at the same time), while the other bug was related to the hash code of a NicFlowRule. Refactoring of this driver according to ONOS reviewers's comments. Change-Id: Ie76947df120d6e0df86acf9e5917e237653a8cea Signed-off-by: Georgios Katsikas <katsikas.gp@gmail.com>