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)
|
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:
|
||||||
|
|
Loading…
Reference in a new issue