Vendors update work v0.1 #618

This commit is contained in:
jokob-sk
2024-05-02 20:33:19 +10:00
parent 9435cd3081
commit 5d761e8687
2 changed files with 9 additions and 2 deletions

View File

@@ -2,10 +2,11 @@
import subprocess
import conf
import os
import re
from helper import timeNowTZ, get_setting, get_setting_value, list_to_where, resolve_device_name_dig, resolve_device_name_pholus, get_device_name_nslookup, check_IP_format
from logger import mylog, print_log
from const import vendorsPath
from const import vendorsPath, vendorsPathNewest
#-------------------------------------------------------------------------------
# Device object handling (WIP)
@@ -404,6 +405,11 @@ def check_mac_or_internet(input_str):
def query_MAC_vendor (pMAC):
pMACstr = str(pMAC)
filePath = vendorsPath
if os.path.isfile(vendorsPathNewest):
filePath = vendorsPathNewest
# Check MAC parameter
mac = pMACstr.replace (':','').lower()