# README
Default plugins
Default plugins manage basic configuration of VPP. The management of configuration is split among multiple packages. Detailed description can be found in particular READMEs:
Config file
The default plugins can use configuration file defaultplugins.conf
to set global maximum transmission unit value
used in interface plugin. This mtu value is preferred before global setting which is set to 9000 bytes. Mtu is
written in config as follows:
mtu: <value>
To run the vpp-agent with defaultplugins.conf:
vpp-agent --defaultplugins-config=/opt/vpp-agent/dev/defaultplugins.conf
# Packages
Package aclplugin implements the ACL Plugin that handles management of VPP Access lists.
Package ifplugin implements the Interface plugin that handles management of VPP interfaces.
Package l2plugin implements the L2 plugin that handles Bridge Domains and L2 FIBs.
Package l3plugin implements the L3 plugin that handles L3 FIBs.
# Functions
GetBDIndexes gives access to mapping of logical names (used in ETCD configuration) as bd_indexes.
GetBfdAuthKeyIndexes gives access to mapping of logical names (used in ETCD configuration) to bfd_auth_keys.
GetBfdEchoFunctionIndexes gives access to mapping of logical names (used in ETCD configuration) to bfd_echo_function The echo function uses the interface name as an unique ID - this value is as a string stored in the mapping.
GetBfdSessionIndexes gives access to mapping of logical names (used in ETCD configuration) to bfd_session_indexes.
GetConfiguredInterfaceToBridgeDomainIndexes gives access to mapping of logical names (used in ETCD configuration) The mapping holds all interface to bridge domain pairs which are currently configured on the VPP.
GetFIBDesIndexes gives access to mapping of logical names (used in ETCD configuration) as fib_des_indexes.
GetFIBIndexes gives access to mapping of logical names (used in ETCD configuration) as fib_indexes.
GetRegisteredInterfaceToBridgeDomainIndexes gives access to mapping of logical names (used in ETCD configuration).
GetSwIfIndexes gives access to mapping of logical names (used in ETCD configuration) to sw_if_index.
GetXConnectIndexes gives access to mapping of logical names (used in ETCD configuration) as xc_indexes.
NewDataResyncReq is a constructor.
# Structs
DataResyncReq is used to transfer expected configuration of the VPP to the plugins.
Deps is here to group injected dependencies of plugin to not mix with other plugin fields.
DPConfig holds the value of maximum transmission unit in bytes.
ErrCtx is an error context struct which stores event change with object identifier (name, etc) and returned error (can be nil).
Plugin implements Plugin interface, therefore it can be loaded with other plugins.