package
1.0.5
Repository: https://github.com/fgschwan/vpp-agent.git
Documentation: pkg.go.dev

# Functions

DeleteDataFromDb deletes the specified Key from the database, if the Key matches both the labelFilter and the dataFilter.
DeleteFibDataFromDb removes FIB entry from the ETCD.
ExitWithError is used by all commands to print out an error and exit.
GetBridgeDomainKeyAndValue returns true if a bridge domain with the specified name was found together with the BD key, data and data broker.
GetDbForAllAgents opens a connection to Etcd specified in the command line or the "ETCDV3_ENDPOINTS" environment variable.
GetDbForOneAgent opens a connection to Etcd specified in the command line or the "ETCDV3_ENDPOINTS" environment variable.
GetFibEntry returns the FIB entry if exists.
GetInterfaceKeyAndValue returns true if an interface with the specified name was found together with the interface key, data and data broker.
IsFlagPresent verifies flag presence in the OS args.
NewEtcdDump returns a new instance of the temporary storage that will hold data retrieved from Etcd.
NewTreeWriter returns a reference to a newly created TreeWriter instance.
ParseKey parses the etcd Key for the microservice label and the data type encoded in the Key.
UpdateIpv4Address updates interface's IPv4 address.
UpdateIpv6Address updates interface's IPv6 address.
ValidateIpv4Addr validates string representation of IPv4 address.
ValidateIpv6Addr validates string representation of IPv6 address.
ValidatePhyAddr validates string representation of MAC address.
WriteBridgeDomainToDb writes bridge domain to the ETCD.
WriteFibDataToDb writes FIB entry to the ETCD.
WriteInterfaceToDb validates and writes interface to the ETCD.

# Constants

BdConfig labels used by json formatter.
Bridge domain flag names.
BdState labels used by json formatter.
Bridge domain flag names.
Used as a header/info message.
Common exit flags.
Common exit flags.
Common exit flags.
Common exit flags.
Common exit flags.
Common exit flags.
Common exit flags.
Common exit flags.
Interface flag names.
IfConfig labels used by json formatter.
Bridge domain flag names.
IfState labels used by json formatter.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Bridge domain flag names.
Used as a header/info message.
Used as a header/info message.
Bridge domain flag names.
Bridge domain flag names.
L2FibConfig labels used by json formatter.
L3FibConfig labels used by json formatter.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Interface flag names.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Used as a header/info message.
Bridge domain flag names.
Used as a header/info message.
Bridge domain flag names.
Bridge domain flag names.
Interface flag names.
Interface flag names.
Interface flag names.

# Structs

BdConfigWithMD contains a Bridge Domain config data record and its Etcd metadata.
BdStateWithMD contains a Bridge Domain state data record and its Etcd metadata.
BdWithMD contains a Bridge Domain data record and its Etcd metadata.
BridgeDomainErrorWithMD contains a data record for bridge domain errors and its Etcd metadata.
FibTableWithMD contains a FIB table data record and its Etcd metadata.
IfConfigWithMD contains a data record for interface configuration and its Etcd metadata.
IfStateWithMD contains a data record for interface State and its Etcd metadata.
InterfaceErrorWithMD contains a data record for interface errors and its Etcd metadata.
InterfaceWithMD contains a data record for interface and its Etcd metadata.
PfxStack is helper struct while creating tree output.
PfxStackEntry represents entry in prefix stack entry list.
PrintLine represents one line in the tree output.
StaticRoutesWithMD contains a static route data record and its Etcd metadata.
TableVppDataContext is data context for one vpp (where number of interfaces == rows) with mandatory info: agent label (vpp name), list of interfaces used in table (without filtered items) and interfaceMap with statistics data.
TreeWriter is an implementation of the TreePrinter interface.
VppData defines a structure to hold all Etcd data records (of all types) for one VPP.
VppMetaData defines the Etcd metadata.
VppStatusWithMD contains a VPP Status data record and its Etcd metadata.
XconnectWithMD contains an l2 cross-Connect data record and its Etcd metadata.

# Type aliases

EtcdDump is a map of VppData records.