1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Bug Fixes for Vlan Name not assigned and Switch Error (#29953)

This commit is contained in:
Anil Kumar Muraleedharan 2017-09-12 20:44:52 +05:30 committed by John R Barker
parent 0a5fc3edf9
commit 32f0c9f809

View file

@ -2178,7 +2178,8 @@ def checkVlanNameNotAssigned(
retVal = waitForDeviceResponse(command, prompt, timeout, obj)
if(retVal.find(vlanName) != -1):
return "Nok"
return retVal
else:
return "ok"
# EOM
@ -3175,7 +3176,7 @@ def checkOutputForError(output):
index = output.lower().find("invalid")
startIndex = index + 8
if(index == -1):
index = output.lower().find("Cannot be enabled in L2 Interface")
index = output.lower().find("cannot be enabled in l2 interface")
startIndex = index + 34
if(index == -1):
index = output.lower().find("incorrect")