Bug Fix at cnos.py (#34607)

* Bug Fix at cnos.py

* Removed extra blank space
This commit is contained in:
Anil Kumar Muraleedharan 2018-01-09 14:03:45 +05:30 committed by John R Barker
parent d5a8974ef3
commit 436ca0a0a1

View file

@ -71,6 +71,8 @@ def interfaceConfig(
deviceType, "portchannel_interface_string", interfaceArg2) deviceType, "portchannel_interface_string", interfaceArg2)
if(value == "ok"): if(value == "ok"):
newPrompt = "(config-if-range)#" newPrompt = "(config-if-range)#"
if '/' in interfaceArg2:
newPrompt = "(config-if)#"
retVal = retVal + \ retVal = retVal + \
waitForDeviceResponse(command, newPrompt, timeout, obj) waitForDeviceResponse(command, newPrompt, timeout, obj)
else: else:
@ -106,6 +108,8 @@ def interfaceConfig(
command = command + \ command = command + \
interfaceArg1 + " " + interfaceArg2 + "\n" interfaceArg1 + " " + interfaceArg2 + "\n"
newPrompt = "(config-if-range)#" newPrompt = "(config-if-range)#"
if '/' in interfaceArg2:
newPrompt = "(config-if)#"
retVal = retVal + \ retVal = retVal + \
waitForDeviceResponse(command, newPrompt, timeout, obj) waitForDeviceResponse(command, newPrompt, timeout, obj)
else: else: