Ejemplo n.º 1
0
def loxi_bucket_to_ofp_bucket(lo):
    return pb2.ofp_bucket(weight=lo.weight,
                          watch_port=lo.watch_port,
                          watch_group=lo.watch_group,
                          actions=[to_grpc(a) for a in lo.actions])
Ejemplo n.º 2
0
def loxi_bucket_to_ofp_bucket(lo):
    return pb2.ofp_bucket(
        weight=lo.weight,
        watch_port=lo.watch_port,
        watch_group=lo.watch_group,
        actions=[to_grpc(a) for a in lo.actions])