Refine implementation of FlowAction.create().

  * Take IP protocol number instead of boolean value.
  * Use reflection to simplify the code.

Change-Id: I6c66c62cb506071b7494d02fb411a344106309a6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>