Ejemplo n.º 1
0
def add(args):
    if args.sw_true:
        print("Adding switch data to database")
        pds.add_data_switches(args.db_file, args.filename)
    else:
        print("Reading info from file(s) \n%s" % ', '.join(args.filename))
        print("\nAdding data to db %s" % args.db_file)
        pds.add_data(args.db_file, args.filename)
Ejemplo n.º 2
0
def add(args):
    if args.sw_true:
        print('Добавляю данные о коммутаторах')
        pds.add_data_switches(args.db_file, args.filename)
    else:
        print('Читаю информацию из файлов\n{}'.format(', '.join(
            args.filename)))
        print('\nДобавляю данные по DHCP записям в {}'.format(args.db_file))
        pds.add_data(args.db_file, args.filename)
def add(args):
    if args.sw_true:
        print('Adding switch data')
        pds.add_data_switches(args.db_file, args.filename)
    else:
        print('Adding information from files\n{}'.format(', '.join(
            args.filename)))
        print('\nAdding data on DHCP records to {}'.format(args.db_file))
        pds.add_data(args.db_file, args.filename)
Ejemplo n.º 4
0
def add(args):
    if args.sw_true:
        print('Adding switch data to database')
        pds.add_data_switches(args.db_file, args.filename)
    else:
        print('Reading info from file(s) \n{}'.format(', '.join(
            args.filename)))
        print('\nAdding data to db {}'.format(args.db_file))
        pds.add_data(args.db_file, args.filename)