'Creates fixed IPs for host by range.'

@validate_network_plugin
@args('--label', metavar='<label>', help='Label    for    network    (ex:    public)')
@args('--fixed_range_v4', dest='cidr', metavar='<x.x.x.x/yy>', help='IPv4    subnet    (ex:    10.0.0.0/8)')
@args('--num_networks', metavar='<number>', help='Number    of    networks    to    create')
@args('--network_size', metavar='<number>', help='Number    of    IPs    per    network')
@args('--vlan', metavar='<vlan    id>', help='vlan    id')
@args('--vlan_start', dest='vlan_start', metavar='<vlan    start    id>', help='vlan    start    id')
@args('--vpn', dest='vpn_start', help='vpn    start')
@args('--fixed_range_v6', dest='cidr_v6', help='IPv6    subnet    (ex:    fe80::/64')
@args('--gateway', help='gateway')
@args('--gateway_v6', help='ipv6    gateway')
@args('--bridge', metavar='<bridge>', help='VIFs    on    this    network    are    connected    to    this    bridge')
@args('--bridge_interface', metavar='<bridge    interface>', help='the    bridge    is    connected    to    this    interface')
@args('--multi_host', metavar="<'T'|'F'>", help='Multi    host')
@args('--dns1', metavar='<DNS    Address>', help='First    DNS')
@args('--dns2', metavar='<DNS    Address>', help='Second    DNS')
@args('--uuid', metavar='<network    uuid>', help='Network    UUID')
@args('--fixed_cidr', metavar='<x.x.x.x/yy>', help='IPv4    subnet    for    fixed    IPs    (ex:    10.20.0.0/16)')
@args('--project_id', metavar='<project    id>', help='Project    id')
@args('--priority', metavar='<number>', help='Network    interface    priority')
def create(self, label=None, cidr=None, num_networks=None, network_size=None, multi_host=None, vlan=None, vlan_start=None, vpn_start=None, cidr_v6=None, gateway=None, gateway_v6=None, bridge=None, bridge_interface=None, dns1=None, dns2=None, project_id=None, priority=None, uuid=None, fixed_cidr=None):

    if (not label):
        raise exception.NetworkNotCreated(req='label')
    if (len(label) > 255):
        raise exception.LabelTooLong()
    if (not (cidr or cidr_v6)):
        raise exception.NetworkNotCreated(req='cidr    or    cidr_v6')
    kwargs = {k: v for (k, v) in locals().items() if (v and (k != 'self'))}
    if (multi_host is not None):
        kwargs['multi_host'] = (multi_host == 'T')
    net_manager = importutils.import_object(CONF.network_manager)
    net_manager.create_networks(context.get_admin_context(), **kwargs)
