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
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