def security_group_rule_get_by_security_group(context, security_group_id,
                                              columns_to_join=None):
    return IMPL.security_group_rule_get_by_security_group(
        context, security_group_id, columns_to_join=columns_to_join)
Get all rules for a given security group.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/api.py/security_group_rule_get_by_security_group