Example #1
0
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))
Example #2
0
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))
Example #3
0
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))
Example #4
0
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))
Example #5
0
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))
Example #6
0
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))
Example #7
0
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))