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
评论列表
文章目录