def loxi_oxm_udp_src_to_ofp_oxm(lo): return pb2.ofp_oxm_field( oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field(type=pb2.OFPXMT_OFB_UDP_SRC, udp_src=lo.value))
def loxi_oxm_metadata_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_METADATA, table_metadata=lo.value))
def loxi_oxm_ipv4_dst_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_IPV4_DST, ipv4_dst=lo.value))
def loxi_oxm_vlan_pcp_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_VLAN_PCP, vlan_pcp=lo.value))
def loxi_oxm_ip_proto_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_IP_PROTO, ip_proto=lo.value))
def loxi_oxm_in_port_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_IN_PORT, port=lo.value))
def loxi_oxm_eth_type_to_ofp_oxm(lo): return pb2.ofp_oxm_field(oxm_class=pb2.OFPXMC_OPENFLOW_BASIC, ofb_field=pb2.ofp_oxm_ofb_field( type=pb2.OFPXMT_OFB_ETH_TYPE, eth_type=lo.value))