Beispiel #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))
Beispiel #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)))
Beispiel #3
0
def loxi_pop_vlan_action_to_ofp_action(lo):
    return pb2.ofp_action(type=pb2.OFPAT_POP_VLAN)
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #7
0
def loxi_pop_vlan_action_to_ofp_action(lo):
    return pb2.ofp_action(type=pb2.OFPAT_POP_VLAN)
Beispiel #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)))
Beispiel #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))
Beispiel #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))