Bug Fix at cnos.py (#34607)
* Bug Fix at cnos.py * Removed extra blank space
This commit is contained in:
parent
d5a8974ef3
commit
436ca0a0a1
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,8 @@ def interfaceConfig(
|
|||
deviceType, "portchannel_interface_string", interfaceArg2)
|
||||
if(value == "ok"):
|
||||
newPrompt = "(config-if-range)#"
|
||||
if '/' in interfaceArg2:
|
||||
newPrompt = "(config-if)#"
|
||||
retVal = retVal + \
|
||||
waitForDeviceResponse(command, newPrompt, timeout, obj)
|
||||
else:
|
||||
|
@ -106,6 +108,8 @@ def interfaceConfig(
|
|||
command = command + \
|
||||
interfaceArg1 + " " + interfaceArg2 + "\n"
|
||||
newPrompt = "(config-if-range)#"
|
||||
if '/' in interfaceArg2:
|
||||
newPrompt = "(config-if)#"
|
||||
retVal = retVal + \
|
||||
waitForDeviceResponse(command, newPrompt, timeout, obj)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue