api

package
v0.0.0-...-a4e6d7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntfState

func GetIntfState(intfRef string) *config.IntfState

func GetIntfStates

func GetIntfStates(idx int, cnt int) (int, int, []config.IntfState)

func GetIntfs

func GetIntfs(idx int, cnt int) (int, int, []config.Intf)

func GetLLDPGlobalState

func GetLLDPGlobalState(vrf string) (*config.GlobalState, error)

func Init

func Init(svr *server.LLDPServer)

func SendGlobalConfig

func SendGlobalConfig(vrf, txrxMode string, enable, snoopAndDrop bool, tranmitInterval int32) (bool, error)

func SendIntfConfig

func SendIntfConfig(intfRef, txrxMode string, enable bool) (bool, error)

func SendPortStateChange

func SendPortStateChange(ifIndex int32, state string)

func UpdateCache

func UpdateCache(sysInfo *config.SystemInfo)

func UpdateGlobalConfig

func UpdateGlobalConfig(vrf, txrxMode string, enable, snoopAndDrop bool, tranmitInterval int32) (bool, error)

func UpdateIntfConfig

func UpdateIntfConfig(intfRef, txrxMode string, enable bool) (bool, error)

Types

type ApiLayer

type ApiLayer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL