Giter Site home page Giter Site logo

Comments (3)

dandelwa avatar dandelwa commented on August 10, 2024

While the code is correct, there is a small mistake in using the command to add Lag,
One has to explicitly mention the argument name. hence the command will go like

ixnetwork.Lag.add(Name = "lag1", Vports = [a1, a2]) instead of ixnetwork.Lag.add("lag1", [a1, a2])
Also try to add the protocol stack, for ex you can do
lag.ProtocolStack.add().Ethernet.add().Lagportlacp.add()

from ixnetwork_restpy.

therkong avatar therkong commented on August 10, 2024

Hi,
in the restpy docs there is this sample (traffic_over_lags.py):

https://openixia.github.io/ixnetwork_restpy/#/samples

from ixnetwork_restpy.

pwlodawi avatar pwlodawi commented on August 10, 2024

Hi,

Code like below worked for me
a1 = ixnetwork.Vport.find(Name="access1") a2 = ixnetwork.Vport.find(Name="access2") lag1 = ixnetwork.Lag.add(Name="lag1", Vports=[a1, a2]) lacp = lag1.ProtocolStack.add().Ethernet.add().Lagportlacp.add() lacp.LacpduPeriodicTimeInterval.Single(1) lacp.LacpduTimeout.Single(3)

Thank you for your help.

from ixnetwork_restpy.

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.