Giter Site home page Giter Site logo

Comments (3)

therkong avatar therkong commented on June 25, 2024

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']

from ixnetwork.

ThakkarJignesh avatar ThakkarJignesh commented on June 25, 2024

from ixnetwork.

ajbalogh avatar ajbalogh commented on June 25, 2024

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())

from ixnetwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.