@utils.arg('label', metavar='<network_label>', help=_('Network label (ex. my_new_network)'))
@utils.arg('cidr', metavar='<cidr>', help=_('IP block to allocate from (ex. 172.16.0.0/24 or 2001:DB8::/64)'))
@shell.deprecated_network
def do_tenant_network_create(cs, args):
 network = cs.tenant_networks.create(args.label, args.cidr)
 utils.print_dict(network._info)

@ utils . arg ( 'label' , metavar = '<network_label>' , help = _ ( 'Network label (ex. my_new_network)' ) ) @ utils . arg ( 'cidr' , metavar = '<cidr>' , help = _ ( 'IP block to allocate from (ex. 172.16.0.0/24 or 2001:DB8::/64)' ) ) @ shell . deprecated_network def do_tenant_network_create ( cs , args ) : network = cs . tenant_networks . create ( args . label , args . cidr ) utils . print_dict ( network . _info )
create a tenant network .