Ejemplo n.º 1
0
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))
Ejemplo n.º 2
0
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)))
Ejemplo n.º 3
0
def loxi_pop_vlan_action_to_ofp_action(lo):
    return pb2.ofp_action(type=pb2.OFPAT_POP_VLAN)
Ejemplo n.º 4
0
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))
Ejemplo n.º 5
0
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))
Ejemplo n.º 6
0
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))
Ejemplo n.º 7
0
def loxi_pop_vlan_action_to_ofp_action(lo):
    return pb2.ofp_action(type=pb2.OFPAT_POP_VLAN)
Ejemplo n.º 8
0
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)))
Ejemplo n.º 9
0
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))
Ejemplo n.º 10
0
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))