Documentation ¶
Overview ¶
Package config contains the configuration tree
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusString ¶ added in v1.0.1
GetStatusString returns port status string based on the enabled flag: UP or DOWN
func NewSwitchConfig ¶
NewSwitchConfig creates a new switch skeleton configuration and returns its root node
func SetPortStatus ¶ added in v1.0.1
func SetPortStatus(interfaceNode *configtree.Node, portStatus string)
SetPortStatus applies port status to the given interface node
func SimulateTrafficCounters ¶ added in v0.1.3
SimulateTrafficCounters simulates a select set of traffic-related counters for all ports under the given root configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.