def loxi_push_vlan_action_to_ofp_action(lo): return pb2.ofp_action(type=pb2.OFPAT_PUSH_VLAN, push=pb2.ofp_action_push(ethertype=lo.ethertype))
def loxi_set_field_action_to_ofp_action(lo): return pb2.ofp_action( type=pb2.OFPAT_SET_FIELD, set_field=pb2.ofp_action_set_field(field=to_grpc(lo.field)))
def loxi_pop_vlan_action_to_ofp_action(lo): return pb2.ofp_action(type=pb2.OFPAT_POP_VLAN)
def loxi_output_action_to_ofp_action(lo): return pb2.ofp_action(type=pb2.OFPAT_OUTPUT, output=pb2.ofp_action_output(port=lo.port, max_len=lo.max_len))
def loxi_group_action_to_ofp_action(lo): return pb2.ofp_action(type=pb2.OFPAT_GROUP, group=pb2.ofp_action_group(group_id=lo.group_id))
def loxi_push_vlan_action_to_ofp_action(lo): return pb2.ofp_action( type=pb2.OFPAT_PUSH_VLAN, push=pb2.ofp_action_push(ethertype=lo.ethertype))
def loxi_group_action_to_ofp_action(lo): return pb2.ofp_action( type=pb2.OFPAT_GROUP, group=pb2.ofp_action_group(group_id=lo.group_id))
def loxi_output_action_to_ofp_action(lo): return pb2.ofp_action( type=pb2.OFPAT_OUTPUT, output=pb2.ofp_action_output(port=lo.port, max_len=lo.max_len))