open-traffic-generator / models

Open Traffic Generator Core Models
https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/open-traffic-generator/models/master/artifacts/openapi.yaml&nocors
MIT License
60 stars 16 forks source link

Support For random UDF #380

Closed Vibaswan closed 1 month ago

Vibaswan commented 3 months ago

Redocly View ReDoc Interactive Demo (redocly.github.io)

New Objects at:

Note: Random UDF support is initially exposed only for the packet fields which are required by present FP Test Cases.

code usage

snappi snippet

random = config.ipv4.dst.random
random.min = "1.2.3.4"
random.max = "255.255.3.4"
random.count = 2
random.seed = 2

gosnappi snippet

r := Config.Ipv4().Dst().Random()
r.SetMin("1.2.3.4").SetMax("255.255.3.4").SetCount(2).SetSeed(2)