Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network interface custom fields to event generator
Browse files Browse the repository at this point in the history
QU3B1M committed Dec 2, 2024
1 parent d6dbac8 commit 72bfdad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -141,7 +141,10 @@ def generate_random_network():
def generate_random_interface():
interface = {
'alias': f'alias{random.randint(0, 9999)}',
'name': f'name{random.randint(0, 9999)}'
'name': f'name{random.randint(0, 9999)}',
'mtu': f'{random.randint(1000000, 99999999)}',
'state': random.choice(['Active', 'Inactive', 'Unknown']),
'type': random.choice(['wireless', 'ethernet'])
}
return interface

0 comments on commit 72bfdad

Please sign in to comment.