def expand_rule_spec(rule_spec):
    """Creates and returns a list of ingress rule specs expanded from 
    a single rule spec (PORTS, CIDRIP) tuple whose PORTS component 
    contains port numbers and number ranges separated by commas."""
    port_ranges, cidrip = rule_spec
    port_ranges = port_ranges.split(',')
    rule_specs = []
    for port_range in port_ranges:
        rule_specs.append((port_range, cidrip))
    return rule_specs