from __future__ import print_function
import click
from nsot_sync.drivers import device_scanner


@click.command()
@click.option(
    '--max-threads',
    '-m',
    default=100,
    type=int,
    help='Maximum threads for the network scan, default is 100.'
)
@click.option(
    '--scan-vlan',
    type=int,
    required=True,
    help='The vlan ID of the management vlan.'
)
@click.option(
    '--snmp-community',
    type=str,
    required=True,
    help='The SNMP community for auto discovery.'
)
@click.option(
    '--snmp-version',
    default='v2c',
    type=str,
    required=True,
    help='The SNMP version for auto discovery, option are: \'v1\', \'v2c\', \'v3\''
)
@click.pass_context
def cli(ctx, max_threads, scan_vlan, snmp_community, snmp_version):
    driver = device_scanner.DeviceScannerDriver(
        click_ctx=ctx,
        max_threads=max_threads,
        scan_vlan=scan_vlan,
        snmp_community=snmp_community,
        snmp_version=snmp_version,
    )
    if ctx.obj['NOOP']:
        driver.noop()
        return

    driver.handle_resources()

e237bacf93efb0f63d289e9b3743f76ade43aa3a
<mask token>

<mask token>


@click.command()
@click.option('--max-threads', '-m', default=100, type=int, help=
    'Maximum threads for the network scan, default is 100.')
@click.option('--scan-vlan', type=int, required=True, help=
    'The vlan ID of the management vlan.')
@click.option('--snmp-community', type=str, required=True, help=
    'The SNMP community for auto discovery.')
@click.option('--snmp-version', default='v2c', type=str, required=True,
    help="The SNMP version for auto discovery, option are: 'v1', 'v2c', 'v3'")
@click.pass_context
def cli(ctx, max_threads, scan_vlan, snmp_community, snmp_version):
    driver = device_scanner.DeviceScannerDriver(click_ctx=ctx, max_threads=
        max_threads, scan_vlan=scan_vlan, snmp_community=snmp_community,
        snmp_version=snmp_version)
    if ctx.obj['NOOP']:
        driver.noop()
        return
    driver.handle_resources()

from __future__ import print_function
import click
from nsot_sync.drivers import device_scanner


@click.command()
@click.option('--max-threads', '-m', default=100, type=int, help=
    'Maximum threads for the network scan, default is 100.')
@click.option('--scan-vlan', type=int, required=True, help=
    'The vlan ID of the management vlan.')
@click.option('--snmp-community', type=str, required=True, help=
    'The SNMP community for auto discovery.')
@click.option('--snmp-version', default='v2c', type=str, required=True,
    help="The SNMP version for auto discovery, option are: 'v1', 'v2c', 'v3'")
@click.pass_context
def cli(ctx, max_threads, scan_vlan, snmp_community, snmp_version):
    driver = device_scanner.DeviceScannerDriver(click_ctx=ctx, max_threads=
        max_threads, scan_vlan=scan_vlan, snmp_community=snmp_community,
        snmp_version=snmp_version)
    if ctx.obj['NOOP']:
        driver.noop()
        return
    driver.handle_resources()

from __future__ import print_function
import click
from nsot_sync.drivers import device_scanner


@click.command()
@click.option(
    '--max-threads',
    '-m',
    default=100,
    type=int,
    help='Maximum threads for the network scan, default is 100.'
)
@click.option(
    '--scan-vlan',
    type=int,
    required=True,
    help='The vlan ID of the management vlan.'
)
@click.option(
    '--snmp-community',
    type=str,
    required=True,
    help='The SNMP community for auto discovery.'
)
@click.option(
    '--snmp-version',
    default='v2c',
    type=str,
    required=True,
    help='The SNMP version for auto discovery, option are: \'v1\', \'v2c\', \'v3\''
)
@click.pass_context
def cli(ctx, max_threads, scan_vlan, snmp_community, snmp_version):
    driver = device_scanner.DeviceScannerDriver(
        click_ctx=ctx,
        max_threads=max_threads,
        scan_vlan=scan_vlan,
        snmp_community=snmp_community,
        snmp_version=snmp_version,
    )
    if ctx.obj['NOOP']:
        driver.noop()
        return

    driver.handle_resources()
