helpers.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:netcrawl 作者: Wyko 项目源码 文件源码
def populated_cisco_network_device():
    fake= Faker()
    fake.add_provider(Cisco)

    nd = CiscoDevice()
    nd.device_name= '_'.join(['fakedevice',
                           fake.word(),
                           fake.word(),
                           fake.word(),
                          ])

    for i in range(1, fake.random_int(1, 10)):
        nd.serial_numbers.append(fake.ios_serial())

    nd.config= fake.text(max_nb_chars=fake.random_int(min=5))

    return nd
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号