@utils.arg('secgroup', metavar='<secgroup>', help=_('ID or name of security group.'))
@deprecated_network
def do_secgroup_list_rules(cs, args):
 secgroup = _get_secgroup(cs, args.secgroup)
 _print_secgroup_rules(secgroup.rules)

@ utils . arg ( 'secgroup' , metavar = '<secgroup>' , help = _ ( 'ID or name of security group.' ) ) @ deprecated_network def do_secgroup_list_rules ( cs , args ) : secgroup = _get_secgroup ( cs , args . secgroup ) _print_secgroup_rules ( secgroup . rules )
list rules for a security group .