Giter Site home page Giter Site logo

Comments (1)

hubertgee avatar hubertgee commented on September 26, 2024

Hi muthvar1,

This is how you configure DSCP. Look at all the options in the comments. They are the same as what is shown in the Traffic Item's packet header/ipv4/IpPriority/ToS/Precedence. To see how to create packet headers using the Traffic Item object, please look at sample script createTrafficItemAddPacketHeader.py.
There is also a step-by-step guide on how to use the API browser to create packet headers. This guide correlates to the RestPy sample script also:
https://www.openixia.com/tutorials?subject=ixNetwork/apiBrowser&page=addTrafficItemPacketHeader.html

ipv4PrecedenceField = ixNetwork.Traffic.TrafficItem.find()[0].ConfigElement.find()[0].Stack.find()[2].Field.find()[3]

# 000 Routine, 001 Priority, 010 Immediate, 011 Flash, 100 Flash Override,                                                                          
# 101 CRITIC/ECP, 110 Internetwork Control, 111 Network Control                                                                                     
ipv4PrecedenceField = ipv4FieldObj.find(DisplayName='Precedence')
ipv4PrecedenceField.ActiveFieldChoice = True
ipv4PrecedenceField.FieldValue = '011 Flash'

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.