Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Frr is the path to the frr configuration file Frr = "/etc/frr/frr.conf" // FrrTmp is the path to the tempoary location of the frr configuration file FrrTmp = "/etc/frr/frr.tmp" // FrrReloadService is the systemd service to reload FrrReloadService = "frr.service" // FrrValidationService is the systemd unit that is used for validation FrrValidationService = "frr-validation" )
View Source
const ( // Interfaces is the path to the network interfaces file Interfaces = "/etc/network/interfaces" // InterfacesTmp is the path to a temporary location of the interfaces file InterfacesTmp = "/etc/network/interfaces.tmp" // InterfacesReloadService is the systemd service to reload InterfacesReloadService = "ifreload.service" // InterfacesValidationService is the systemd unit that is used for validation InterfacesValidationService = "interfaces-validation" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applier ¶
Applier is an interface for rendering and reloading a switch configuration change
func NewInterfacesApplier ¶
NewInterfacesApplier creates a new InterfacesApplier
type Conf ¶
type Conf struct {
Name string
LogLevel string
Loopback string
ASN uint32
Ports Ports
MetalCoreCIDR string
AdditionalBridgeVIDs []string
FrrTplFile string
InterfacesTplFile string
}
Conf holds the switch configuration
func (*Conf) FillRouteMapsAndIPPrefixLists ¶
func (c *Conf) FillRouteMapsAndIPPrefixLists()
type Filter ¶
type Filter struct {
IPPrefixLists []IPPrefixList
RouteMaps []RouteMap
}
type FrrApplier ¶
type FrrApplier struct {
// contains filtered or unexported fields
}
FrrApplier is responsible for writing and applying the FRR configuration
func (FrrApplier) Apply ¶
func (a FrrApplier) Apply() error
Apply applies the configuration to the system
type IPPrefixList ¶
IPPrefixList represents 'ip prefix-list' filtering mechanism to be used in combination with route-maps.
type InterfacesApplier ¶
type InterfacesApplier struct {
// contains filtered or unexported fields
}
InterfacesApplier is responsible for writing and applying the network interfaces configuration
func (InterfacesApplier) Apply ¶
func (a InterfacesApplier) Apply() error
Apply applies the configuration to the system
Click to show internal directories.
Click to hide internal directories.