@utils.arg('ip_proto', metavar='<ip-proto>', help=_('IP protocol (icmp, tcp, udp).'))
@utils.arg('from_port', metavar='<from-port>', help=_('Port at start of range.'))
@utils.arg('to_port', metavar='<to-port>', help=_('Port at end of range.'))
@utils.arg('cidr', metavar='<cidr>', help=_('CIDR for address range.'))
@deprecated_network
def do_secgroup_add_default_rule(cs, args):
 rule = cs.security_group_default_rules.create(args.ip_proto, args.from_port, args.to_port, args.cidr)
 _print_secgroup_rules([rule], show_source_group=False)

@ utils . arg ( 'ip_proto' , metavar = '<ip-proto>' , help = _ ( 'IP protocol (icmp, tcp, udp).' ) ) @ utils . arg ( 'from_port' , metavar = '<from-port>' , help = _ ( 'Port at start of range.' ) ) @ utils . arg ( 'to_port' , metavar = '<to-port>' , help = _ ( 'Port at end of range.' ) ) @ utils . arg ( 'cidr' , metavar = '<cidr>' , help = _ ( 'CIDR for address range.' ) ) @ deprecated_network def do_secgroup_add_default_rule ( cs , args ) : rule = cs . security_group_default_rules . create ( args . ip_proto , args . from_port , args . to_port , args . cidr ) _print_secgroup_rules ( [ rule ] , show_source_group = False )
add a rule to the set of rules that will be added to the default security group for new tenants .