Documentation ¶
Index ¶
- type Fixture
- func (fixture *Fixture) Close() error
- func (fixture *Fixture) ReadFibCounters(name string) (cnt fibdef.EntryCounters)
- func (fixture *Fixture) SetFibEntry(name string, strategy string, nexthops ...iface.ID)
- func (fixture *Fixture) StepDelay()
- func (fixture *Fixture) SumCounter(getCounter func(fwd *fwdp.Fwd) uint64) (n uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct { StepUnit time.Duration DataPlane *fwdp.DataPlane Ndt *ndt.Ndt Fib *fib.Fib // contains filtered or unexported fields }
Fixture is a test fixture for forwarder data plane.
func (*Fixture) ReadFibCounters ¶
func (fixture *Fixture) ReadFibCounters(name string) (cnt fibdef.EntryCounters)
ReadFibCounters returns counters of specified FIB entry.
func (*Fixture) SetFibEntry ¶
SetFibEntry inserts or replaces a FIB entry.
Click to show internal directories.
Click to hide internal directories.