Ejemplo n.º 1
0
def group_entry_from_group_mod(mod):
    group = ofp.ofp_group_entry(
        desc=ofp.ofp_group_desc(type=mod.type,
                                group_id=mod.group_id,
                                buckets=mod.buckets),
        stats=ofp.ofp_group_stats(group_id=mod.group_id
                                  # TODO do we need to instantiate bucket bins?
                                  ))
    return group
Ejemplo n.º 2
0
def group_entry_from_group_mod(mod):
    group = ofp.ofp_group_entry(
        desc=ofp.ofp_group_desc(
            type=mod.type,
            group_id=mod.group_id,
            buckets=mod.buckets
        ),
        stats=ofp.ofp_group_stats(
            group_id=mod.group_id
            # TODO do we need to instantiate bucket bins?
        )
    )
    return group