Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigned and connected ixia ports are showing as unassigned in IXIA REST #68

Closed
ThakkarJignesh opened this issue Jul 17, 2019 · 3 comments
Assignees

Comments

@ThakkarJignesh
Copy link

I configured vports and assigned them to test ports. Below is the GUI snapshot for same.
When I try to retrieve the vport attributes, for most of them it shows false or None/unassigned. Is there any known issue for this? Any fix available for this?

(Pdb) vport.ConnectionState
u'unassigned'
(Pdb) vport.ConnectionStatus
u'Unassigned'
(Pdb) vport.State
u'unassigned'
(Pdb) vport.IsAvailable
True
(Pdb) vport.IsConnected
False
(Pdb) vport.IsMapped
False
(Pdb) vport.AssignedTo
u''
(Pdb)
IXIA_Screenshot

@therkong
Copy link
Collaborator

How did you get the vport node? Here's my code sample:
vport = ixNetwork.Vport.find()[0]

vport.ActualSpeed
100000
vport.ConnectionStatus
'10.36.88.91:07:01 '
vport.ConnectionInfo
'chassis="10.36.88.91" card="7" port="1" portip="20.0.7.1"'

You can also do a print to print out all attributes. See below:
print(vport)
None
Vport[0]: /api/v1/sessions/1/ixnetwork/vport/1
ActualSpeed: 100000
AssignedTo: 10.36.88.91:7:1
ConnectedTo: /api/v1/sessions/1/ixnetwork/availableHardware/chassis/1/card/7/port/1
ConnectionInfo: chassis="10.36.88.91" card="7" port="1" portip="20.0.7.1"
ConnectionState: connectedLinkUp
ConnectionStatus: 10.36.88.91:07:01
InternalId: 1
IsAvailable: True
IsConnected: True
IsMapped: True
IsPullOnly: False
IsVMPort: False
IxnChassisVersion:
IxnClientVersion:
IxosChassisVersion: IxOS 8.50.1700.11 EA-SP1
Licenses: obsolete, do not use
Name: 1/7/1
RxMode: captureAndMeasure
State: up
StateDetail: idle
TransmitIgnoreLinkStatus: False
TxGapControlMode: averageMode
TxMode: interleaved
Type: tenFortyHundredGigLan
ValidTxModes: ['sequential', 'interleaved']

@therkong therkong self-assigned this Jul 17, 2019
@ThakkarJignesh
Copy link
Author

ThakkarJignesh commented Jul 17, 2019 via email

@ajbalogh
Copy link

After the AssignPorts method refresh the individual vport objects you have prior to printing them.

hrefvport1 = ixNetwork.AssignPorts(testPorts, [], vportList, forceTakePortOwnership)
print (Port_8_14.refresh())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants