Skip to content

Commit 2f10b46

Browse files
committed
added new function list_vendors():
Returns a list[] of valid ETH Vendors that can be used with vid_file_vendor()
1 parent ed604aa commit 2f10b46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generate_mac/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,8 @@ def vid_provided(vid_bytes):
185185
rand_bytes = generate_mac._gen_rand_bytes(3)
186186
output = vid_bytes + ":" + rand_bytes
187187
return output
188+
189+
def list_vendors(vid_file):
190+
'''Returns a list[] of valid ETH Vendors that can be used with vid_file_vendor()'''
191+
file_lines = generate_mac._read_vid_file(vid_file)
192+
return list(generate_mac._valid_vendors)

0 commit comments

Comments
 (0)