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

FCS-part of Ethernet header #376

Open indraniBh opened 3 months ago

indraniBh commented 3 months ago

Fixes #379

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

New Inclusions: flows/packet/ethernet/fcs

Objective: Support FCS in ethernet header to generate good as well as bad packet using raw traffic.

Code Snippet:

cfg := gosnappi.NewConfig()

// skipping other config snippets

flow := cfg.Flows().Add()
flow.SetName("f1").TxRx().Port().SetTxName("p1").SetRxName("p2")
pkt:= flow.Packet()
// setting valid fcs, by default fcs is set good. 
pkt.Add().Ethernet().Fcs().Generated().Good()
// setting invalid fcs
pkt.Add().Ethernet().Fcs().Generated().Bad()
Feature Support Info: ixia-hw ixia-c UHD