l2: API cleanup

Use consistent API types.

Type: fix

Change-Id: I7ac7cd00606101864fa3422e7b9ea2f1143665dd
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
diff --git a/src/vnet/l2/l2_fib.c b/src/vnet/l2/l2_fib.c
index 57325af..160e4e6 100644
--- a/src/vnet/l2/l2_fib.c
+++ b/src/vnet/l2/l2_fib.c
@@ -1084,7 +1084,10 @@
 					key.fields.mac, 6);
 		      mp->mac[evt_idx].action =
 			l2fib_entry_result_is_set_LRN_MOV (&result) ?
-			MAC_EVENT_ACTION_MOVE : MAC_EVENT_ACTION_ADD;
+			(vl_api_mac_event_action_t) MAC_EVENT_ACTION_MOVE
+			: (vl_api_mac_event_action_t) MAC_EVENT_ACTION_ADD;
+		      mp->mac[evt_idx].action =
+			htonl (mp->mac[evt_idx].action);
 		      mp->mac[evt_idx].sw_if_index =
 			htonl (result.fields.sw_if_index);
 		      /* clear event bits and update mac entry */
@@ -1127,7 +1130,9 @@
 		  /* copy mac entry to event msg */
 		  clib_memcpy_fast (mp->mac[evt_idx].mac_addr, key.fields.mac,
 				    6);
-		  mp->mac[evt_idx].action = MAC_EVENT_ACTION_DELETE;
+		  mp->mac[evt_idx].action =
+		    (vl_api_mac_event_action_t) MAC_EVENT_ACTION_DELETE;
+		  mp->mac[evt_idx].action = htonl (mp->mac[evt_idx].action);
 		  mp->mac[evt_idx].sw_if_index =
 		    htonl (result.fields.sw_if_index);
 		  evt_idx++;