{"modulePath":"github.com/ligato/vpp-agent","version":"v1.4.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ipsecplugin\n\nPackage ipsecplugin implements the IPSec plugin that handles management of IPSec for VPP.\n\n## Types\n\n```go\ntype IPSecConfigurator struct {\n\tLog       logging.Logger\n\tStopwatch *measure.Stopwatch // timer used to measure and store time\n\n\tGoVppmux govppmux.API\n\n\tSwIfIndexes ifaceidx.SwIfIndexRW\n\n\tSaIndexSeq       uint32\n\tSaIndexes        idxvpp.NameToIdxRW\n\tSpdIndexSeq      uint32\n\tSpdIndexes       ipsecidx.SPDIndexRW\n\tCachedSpdIndexes ipsecidx.SPDIndexRW\n\n\tSPDIfCache []SPDIfCacheEntry\n\t// contains filtered or unexported fields\n}\n```\nIPSecConfigurator runs in the background in its own goroutine where it watches for any changes in the configuration of interfaces as modelled by the proto file \"../model/ipsec/ipsec.proto\" and stored in ETCD under the key \"/vnf-agent/{vnf-agent}/vpp/config/v1/ipsec\". Updates received from the northbound API are compared with the VPP run-time configuration and differences are applied through the VPP binary API.\n\n```go\nfunc (plugin *IPSecConfigurator) Close() error\n```\nClose GOVPP channel\n\n```go\nfunc (plugin *IPSecConfigurator) ConfigureSA(sa *ipsec.SecurityAssociations_SA) error\n```\nConfigureSA configures Security Association in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) ConfigureSPD(spd *ipsec.SecurityPolicyDatabases_SPD) error\n```\nConfigureSPD configures Security Policy Database in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) ConfigureTunnel(tunnel *ipsec.TunnelInterfaces_Tunnel) error\n```\nConfigureTunnel configures Tunnel interface in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) DeleteSA(oldSa *ipsec.SecurityAssociations_SA) error\n```\nDeleteSA deletes Security Association in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) DeleteSPD(oldSpd *ipsec.SecurityPolicyDatabases_SPD) error\n```\nDeleteSPD deletes Security Policy Database in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) DeleteTunnel(oldTunnel *ipsec.TunnelInterfaces_Tunnel) error\n```\nDeleteTunnel deletes Tunnel interface in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) Init() (err error)\n```\nInit members (channels...) and start go routines\n\n```go\nfunc (plugin *IPSecConfigurator) ModifySA(oldSa *ipsec.SecurityAssociations_SA, newSa *ipsec.SecurityAssociations_SA) error\n```\nModifySA modifies Security Association in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) ModifySPD(oldSpd *ipsec.SecurityPolicyDatabases_SPD, newSpd *ipsec.SecurityPolicyDatabases_SPD) error\n```\nModifySPD modifies Security Policy Database in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) ModifyTunnel(oldTunnel *ipsec.TunnelInterfaces_Tunnel, newTunnel *ipsec.TunnelInterfaces_Tunnel) error\n```\nModifyTunnel modifies Tunnel interface in VPP\n\n```go\nfunc (plugin *IPSecConfigurator) ResolveCreatedInterface(ifName string, swIfIdx uint32)\n```\nResolveCreatedInterface is responsible for reconfiguring cached assignments\n\n```go\nfunc (plugin *IPSecConfigurator) ResolveDeletedInterface(ifName string, swIfIdx uint32)\n```\nResolveDeletedInterface is responsible for caching assignments for future reconfiguration\n\n```go\nfunc (plugin *IPSecConfigurator) Resync(spds []*ipsec.SecurityPolicyDatabases_SPD, sas []*ipsec.SecurityAssociations_SA, tunnels []*ipsec.TunnelInterfaces_Tunnel) error\n```\nResync writes missing IPSec configs to the VPP and removes obsolete ones.\n\n```go\ntype SPDIfCacheEntry struct {\n\t// contains filtered or unexported fields\n}\n```\nSPDIfCacheEntry contains info about cached assignment of interface to SPD\n\n","path":"github.com/ligato/vpp-agent/plugins/defaultplugins/ipsecplugin","name":"ipsecplugin","synopsis":"Package ipsecplugin implements the IPSec plugin that handles management of IPSec for VPP.","isRedistributable":true}
