You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a config file, which has certain ports. If I load that config file, during the assignment, the port goes for a reboot and come up online [green]. No issues! Now, If I do the same activity on the same port via RES, then port remains down [red]. To bring up the port, I have to explicitly issue the port reboot to factory default. Below is the code snapshot.
After the above step, port reboots and remains down. I have to use the below steps to bring up the ports online. Is there anything which I'm doing wrong? Any known issues?
There is a difference between the code paths.
Loading an ixncfg file does not restore via the automation API but uses the settings from Preferences->PortManagement to connect, reboot ports.
When using the automation API the AssignPorts will automatically connect the vport to a hardware port but the additional step to reboot is not included as part of the method.
Your approach is correct.
Hi,
I have a config file, which has certain ports. If I load that config file, during the assignment, the port goes for a reboot and come up online [green]. No issues! Now, If I do the same activity on the same port via RES, then port remains down [red]. To bring up the port, I have to explicitly issue the port reboot to factory default. Below is the code snapshot.
#######################################
import sys, os, time, traceback
import linecache
from ixnetwork_restpy.testplatform.testplatform import TestPlatform
from ixnetwork_restpy.assistants.statistics.statviewassistant import StatViewAssistant
platform = 'windows'
apiServerPort = 11009
apiServerIp = '172.22.202.213'
forceTakePortOwnership = True
ixChassisIpList = ['10.195.151.238']
portList = [[ixChassisIpList[0], 8,14],[ixChassisIpList[0], 8,1]]
testPorts = []
testPlatform = TestPlatform(ip_address=apiServerIp, rest_port=apiServerPort, platform=platform, log_file_name='restpy.log')
session = testPlatform.Sessions.add()
ixNetwork = session.Ixnetwork
ixNetwork.NewConfig()
Port_8_14 = ixNetwork.Vport.add(Name='Port_8_14')
Port_8_1 = ixNetwork.Vport.add(Name='Port_8_1')
vportList = [vport.href for vport in ixNetwork.Vport.find()]
for port in portList:
testPorts.append(dict(Arg1=port[0], Arg2=port[1], Arg3=port[2]))
hrefvport1 = ixNetwork.AssignPorts(testPorts, [], vportList, forceTakePortOwnership)
After the above step, port reboots and remains down. I have to use the below steps to bring up the ports online. Is there anything which I'm doing wrong? Any known issues?
Port_8_14.ResetPortCpuAndFactoryDefault()
Port_8_1.ResetPortCpuAndFactoryDefault()
The text was updated successfully, but these errors were encountered: