示例#1
0
def topology_generator():
    '''Creates the Crawler object and calls all the functions to fill a file with the information.'''

    username = raw_input("Username: "******"Password: "******"Please enter your starting IP address: ")

            crawler = Crawler(ip_address, username, password)

            for address in crawler.address_list:
                crawler.update_address(address)
                err_flag = get_lldp.get_switch(crawler, working_file)
                if not err_flag:
                	l3_scrape.bgpcreation(crawler, working_file)

            print "\nScript complete! Check the 'neighbors.txt' file that has been generated.\n"

    except IOError, e:
        print e