mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_cisco_power.py : LCS-45 Read AP for Power fixed re.search(pat,line)
This commit is contained in:
@@ -1617,7 +1617,8 @@ def main():
|
||||
logg.info(pss)
|
||||
for line in pss.splitlines():
|
||||
logg.info("ap {}".format(line))
|
||||
m = re.search('^\s+1\s+6\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)')
|
||||
pat = '^\s+1\s+6\s+\S+\s+\S+\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)'
|
||||
m = re.search(pat, line)
|
||||
if (m != None):
|
||||
P1 = m.group(1)
|
||||
T1 = m.group(2)
|
||||
|
||||
Reference in New Issue
Block a user