regex match for lowercase Cisco (#59550)
This commit is contained in:
parent
eea46a0d1b
commit
4eb156b2f5
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class Cliconf(CliconfBase):
|
||||||
if match:
|
if match:
|
||||||
device_info['network_os_version'] = match.group(1).strip(',')
|
device_info['network_os_version'] = match.group(1).strip(',')
|
||||||
|
|
||||||
model_search_strs = [r'^Cisco (.+) \(revision', r'^[Cc]isco (\S+).+bytes of .*memory']
|
model_search_strs = [r'^[Cc]isco (.+) \(revision', r'^[Cc]isco (\S+).+bytes of .*memory']
|
||||||
for item in model_search_strs:
|
for item in model_search_strs:
|
||||||
match = re.search(item, data, re.M)
|
match = re.search(item, data, re.M)
|
||||||
if match:
|
if match:
|
||||||
|
|
Loading…
Reference in a new issue