Documentation ¶
Overview ¶
Package utils contains various utilities for testing fabric simulator
Index ¶
- func GenerateFieldMatch(mf *p4info.MatchField) *p4api.FieldMatch
- func GenerateFieldMatches(tableInfo *p4info.Table) []*p4api.FieldMatch
- func GenerateTableAction(tableInfo *p4info.Table) *p4api.TableAction
- func GenerateTableEntry(tableInfo *p4info.Table, priority int32, action *p4api.TableAction) *p4api.TableEntry
- func RandomBytes(bitwidth int32) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFieldMatch ¶
func GenerateFieldMatch(mf *p4info.MatchField) *p4api.FieldMatch
GenerateFieldMatch generates field match compliant with the specified match schema
func GenerateFieldMatches ¶
func GenerateFieldMatches(tableInfo *p4info.Table) []*p4api.FieldMatch
GenerateFieldMatches generates field matches compliant with the specified table schema
func GenerateTableAction ¶
func GenerateTableAction(tableInfo *p4info.Table) *p4api.TableAction
GenerateTableAction generates a table action compliant with the specified table schema
func GenerateTableEntry ¶
func GenerateTableEntry(tableInfo *p4info.Table, priority int32, action *p4api.TableAction) *p4api.TableEntry
GenerateTableEntry generates a table entry compliant with the specified table schema
func RandomBytes ¶
RandomBytes returns a buffer spanning at least the specified number of bits, filled with random content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.