ipsec

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KeyPrefix is the relative key prefix for IPSec
	KeyPrefix = "vpp/config/v1/ipsec/"
	// KeyPrefixSPD is the relative key prefix for IPSec's Security Policy Databases
	KeyPrefixSPD = KeyPrefix + "spd/"
	// KeyPrefixSA is the relative key prefix for IPSec's Security Associations
	KeyPrefixSA = KeyPrefix + "sa/"
	// KeyPrefixTunnel is the relative key prefix for IPSec's Tunnel Interface
	KeyPrefixTunnel = KeyPrefix + "tunnel/"
)

Prefixes

Variables

View Source
var CryptoAlgorithm_name = map[int32]string{
	0: "NONE_CRYPTO",
	1: "AES_CBC_128",
	2: "AES_CBC_192",
	3: "AES_CBC_256",
}
View Source
var CryptoAlgorithm_value = map[string]int32{
	"NONE_CRYPTO": 0,
	"AES_CBC_128": 1,
	"AES_CBC_192": 2,
	"AES_CBC_256": 3,
}
View Source
var IntegAlgorithm_name = map[int32]string{
	0: "NONE_INTEG",
	1: "MD5_96",
	2: "SHA1_96",
	3: "SHA_256_96",
	4: "SHA_256_128",
	5: "SHA_384_192",
	6: "SHA_512_256",
}
View Source
var IntegAlgorithm_value = map[string]int32{
	"NONE_INTEG":  0,
	"MD5_96":      1,
	"SHA1_96":     2,
	"SHA_256_96":  3,
	"SHA_256_128": 4,
	"SHA_384_192": 5,
	"SHA_512_256": 6,
}
View Source
var SecurityAssociations_SA_IPSecProtocol_name = map[int32]string{
	0: "AH",
	1: "ESP",
}
View Source
var SecurityAssociations_SA_IPSecProtocol_value = map[string]int32{
	"AH":  0,
	"ESP": 1,
}
View Source
var SecurityPolicyDatabases_SPD_PolicyEntry_Action_name = map[int32]string{
	0: "BYPASS",
	1: "DISCARD",
	3: "PROTECT",
}
View Source
var SecurityPolicyDatabases_SPD_PolicyEntry_Action_value = map[string]int32{
	"BYPASS":  0,
	"DISCARD": 1,
	"PROTECT": 3,
}

Functions

func SAKey

func SAKey(name string) string

SAKey returns key for Security Association

func SPDKey

func SPDKey(name string) string

SPDKey returns key for Security Policy Database

func TunnelKey

func TunnelKey(name string) string

TunnelKey returns key for Tunnel Interface

Types

type CryptoAlgorithm

type CryptoAlgorithm int32

Cryptographic algorithm for encryption

const (
	CryptoAlgorithm_NONE_CRYPTO CryptoAlgorithm = 0
	CryptoAlgorithm_AES_CBC_128 CryptoAlgorithm = 1
	CryptoAlgorithm_AES_CBC_192 CryptoAlgorithm = 2
	CryptoAlgorithm_AES_CBC_256 CryptoAlgorithm = 3
)

func (CryptoAlgorithm) EnumDescriptor

func (CryptoAlgorithm) EnumDescriptor() ([]byte, []int)

func (CryptoAlgorithm) String

func (x CryptoAlgorithm) String() string

type IntegAlgorithm

type IntegAlgorithm int32

Cryptographic algorithm for authentication

const (
	IntegAlgorithm_NONE_INTEG  IntegAlgorithm = 0
	IntegAlgorithm_MD5_96      IntegAlgorithm = 1
	IntegAlgorithm_SHA1_96     IntegAlgorithm = 2
	IntegAlgorithm_SHA_256_96  IntegAlgorithm = 3
	IntegAlgorithm_SHA_256_128 IntegAlgorithm = 4
	IntegAlgorithm_SHA_384_192 IntegAlgorithm = 5
	IntegAlgorithm_SHA_512_256 IntegAlgorithm = 6
)

func (IntegAlgorithm) EnumDescriptor

func (IntegAlgorithm) EnumDescriptor() ([]byte, []int)

func (IntegAlgorithm) String

func (x IntegAlgorithm) String() string

type ResyncRequest

type ResyncRequest struct {
	Tunnels              []*TunnelInterfaces_Tunnel     `protobuf:"bytes,1,rep,name=tunnels" json:"tunnels,omitempty"`
	Spds                 []*SecurityPolicyDatabases_SPD `protobuf:"bytes,2,rep,name=spds" json:"spds,omitempty"`
	Sas                  []*SecurityAssociations_SA     `protobuf:"bytes,3,rep,name=sas" json:"sas,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

func (*ResyncRequest) Descriptor

func (*ResyncRequest) Descriptor() ([]byte, []int)

func (*ResyncRequest) GetSas

func (m *ResyncRequest) GetSas() []*SecurityAssociations_SA

func (*ResyncRequest) GetSpds

func (*ResyncRequest) GetTunnels

func (m *ResyncRequest) GetTunnels() []*TunnelInterfaces_Tunnel

func (*ResyncRequest) ProtoMessage

func (*ResyncRequest) ProtoMessage()

func (*ResyncRequest) Reset

func (m *ResyncRequest) Reset()

func (*ResyncRequest) String

func (m *ResyncRequest) String() string

func (*ResyncRequest) XXX_DiscardUnknown added in v1.8.1

func (m *ResyncRequest) XXX_DiscardUnknown()

func (*ResyncRequest) XXX_Marshal added in v1.8.1

func (m *ResyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResyncRequest) XXX_Merge added in v1.8.1

func (dst *ResyncRequest) XXX_Merge(src proto.Message)

func (*ResyncRequest) XXX_Size added in v1.8.1

func (m *ResyncRequest) XXX_Size() int

func (*ResyncRequest) XXX_Unmarshal added in v1.8.1

func (m *ResyncRequest) XXX_Unmarshal(b []byte) error

type SecurityAssociations

type SecurityAssociations struct {
	Sas                  []*SecurityAssociations_SA `protobuf:"bytes,1,rep,name=sas" json:"sas,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Security Association (SA)

func (*SecurityAssociations) Descriptor

func (*SecurityAssociations) Descriptor() ([]byte, []int)

func (*SecurityAssociations) GetSas

func (*SecurityAssociations) ProtoMessage

func (*SecurityAssociations) ProtoMessage()

func (*SecurityAssociations) Reset

func (m *SecurityAssociations) Reset()

func (*SecurityAssociations) String

func (m *SecurityAssociations) String() string

func (*SecurityAssociations) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityAssociations) XXX_DiscardUnknown()

func (*SecurityAssociations) XXX_Marshal added in v1.8.1

func (m *SecurityAssociations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityAssociations) XXX_Merge added in v1.8.1

func (dst *SecurityAssociations) XXX_Merge(src proto.Message)

func (*SecurityAssociations) XXX_Size added in v1.8.1

func (m *SecurityAssociations) XXX_Size() int

func (*SecurityAssociations) XXX_Unmarshal added in v1.8.1

func (m *SecurityAssociations) XXX_Unmarshal(b []byte) error

type SecurityAssociations_SA

type SecurityAssociations_SA struct {
	Name                 string                                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Spi                  uint32                                `protobuf:"varint,2,opt,name=spi,proto3" json:"spi,omitempty"`
	Protocol             SecurityAssociations_SA_IPSecProtocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=ipsec.SecurityAssociations_SA_IPSecProtocol" json:"protocol,omitempty"`
	CryptoAlg            CryptoAlgorithm                       `protobuf:"varint,4,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ipsec.CryptoAlgorithm" json:"crypto_alg,omitempty"`
	CryptoKey            string                                `protobuf:"bytes,5,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
	IntegAlg             IntegAlgorithm                        `protobuf:"varint,6,opt,name=integ_alg,json=integAlg,proto3,enum=ipsec.IntegAlgorithm" json:"integ_alg,omitempty"`
	IntegKey             string                                `protobuf:"bytes,7,opt,name=integ_key,json=integKey,proto3" json:"integ_key,omitempty"`
	UseEsn               bool                                  `protobuf:"varint,8,opt,name=use_esn,json=useEsn,proto3" json:"use_esn,omitempty"`
	UseAntiReplay        bool                                  `protobuf:"varint,9,opt,name=use_anti_replay,json=useAntiReplay,proto3" json:"use_anti_replay,omitempty"`
	TunnelSrcAddr        string                                `protobuf:"bytes,10,opt,name=tunnel_src_addr,json=tunnelSrcAddr,proto3" json:"tunnel_src_addr,omitempty"`
	TunnelDstAddr        string                                `protobuf:"bytes,11,opt,name=tunnel_dst_addr,json=tunnelDstAddr,proto3" json:"tunnel_dst_addr,omitempty"`
	EnableUdpEncap       bool                                  `protobuf:"varint,12,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

func (*SecurityAssociations_SA) Descriptor

func (*SecurityAssociations_SA) Descriptor() ([]byte, []int)

func (*SecurityAssociations_SA) GetCryptoAlg

func (m *SecurityAssociations_SA) GetCryptoAlg() CryptoAlgorithm

func (*SecurityAssociations_SA) GetCryptoKey

func (m *SecurityAssociations_SA) GetCryptoKey() string

func (*SecurityAssociations_SA) GetEnableUdpEncap

func (m *SecurityAssociations_SA) GetEnableUdpEncap() bool

func (*SecurityAssociations_SA) GetIntegAlg

func (m *SecurityAssociations_SA) GetIntegAlg() IntegAlgorithm

func (*SecurityAssociations_SA) GetIntegKey

func (m *SecurityAssociations_SA) GetIntegKey() string

func (*SecurityAssociations_SA) GetName

func (m *SecurityAssociations_SA) GetName() string

func (*SecurityAssociations_SA) GetProtocol

func (*SecurityAssociations_SA) GetSpi

func (m *SecurityAssociations_SA) GetSpi() uint32

func (*SecurityAssociations_SA) GetTunnelDstAddr

func (m *SecurityAssociations_SA) GetTunnelDstAddr() string

func (*SecurityAssociations_SA) GetTunnelSrcAddr

func (m *SecurityAssociations_SA) GetTunnelSrcAddr() string

func (*SecurityAssociations_SA) GetUseAntiReplay

func (m *SecurityAssociations_SA) GetUseAntiReplay() bool

func (*SecurityAssociations_SA) GetUseEsn

func (m *SecurityAssociations_SA) GetUseEsn() bool

func (*SecurityAssociations_SA) ProtoMessage

func (*SecurityAssociations_SA) ProtoMessage()

func (*SecurityAssociations_SA) Reset

func (m *SecurityAssociations_SA) Reset()

func (*SecurityAssociations_SA) String

func (m *SecurityAssociations_SA) String() string

func (*SecurityAssociations_SA) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityAssociations_SA) XXX_DiscardUnknown()

func (*SecurityAssociations_SA) XXX_Marshal added in v1.8.1

func (m *SecurityAssociations_SA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityAssociations_SA) XXX_Merge added in v1.8.1

func (dst *SecurityAssociations_SA) XXX_Merge(src proto.Message)

func (*SecurityAssociations_SA) XXX_Size added in v1.8.1

func (m *SecurityAssociations_SA) XXX_Size() int

func (*SecurityAssociations_SA) XXX_Unmarshal added in v1.8.1

func (m *SecurityAssociations_SA) XXX_Unmarshal(b []byte) error

type SecurityAssociations_SA_IPSecProtocol

type SecurityAssociations_SA_IPSecProtocol int32

IPSec protocol

const (
	SecurityAssociations_SA_AH  SecurityAssociations_SA_IPSecProtocol = 0
	SecurityAssociations_SA_ESP SecurityAssociations_SA_IPSecProtocol = 1
)

func (SecurityAssociations_SA_IPSecProtocol) EnumDescriptor

func (SecurityAssociations_SA_IPSecProtocol) EnumDescriptor() ([]byte, []int)

func (SecurityAssociations_SA_IPSecProtocol) String

type SecurityPolicyDatabases

type SecurityPolicyDatabases struct {
	Spds                 []*SecurityPolicyDatabases_SPD `protobuf:"bytes,1,rep,name=spds" json:"spds,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

Security Policy Database (SPD)

func (*SecurityPolicyDatabases) Descriptor

func (*SecurityPolicyDatabases) Descriptor() ([]byte, []int)

func (*SecurityPolicyDatabases) GetSpds

func (*SecurityPolicyDatabases) ProtoMessage

func (*SecurityPolicyDatabases) ProtoMessage()

func (*SecurityPolicyDatabases) Reset

func (m *SecurityPolicyDatabases) Reset()

func (*SecurityPolicyDatabases) String

func (m *SecurityPolicyDatabases) String() string

func (*SecurityPolicyDatabases) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityPolicyDatabases) XXX_DiscardUnknown()

func (*SecurityPolicyDatabases) XXX_Marshal added in v1.8.1

func (m *SecurityPolicyDatabases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityPolicyDatabases) XXX_Merge added in v1.8.1

func (dst *SecurityPolicyDatabases) XXX_Merge(src proto.Message)

func (*SecurityPolicyDatabases) XXX_Size added in v1.8.1

func (m *SecurityPolicyDatabases) XXX_Size() int

func (*SecurityPolicyDatabases) XXX_Unmarshal added in v1.8.1

func (m *SecurityPolicyDatabases) XXX_Unmarshal(b []byte) error

type SecurityPolicyDatabases_SPD

type SecurityPolicyDatabases_SPD struct {
	Name                 string                                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Interfaces           []*SecurityPolicyDatabases_SPD_Interface   `protobuf:"bytes,2,rep,name=interfaces" json:"interfaces,omitempty"`
	PolicyEntries        []*SecurityPolicyDatabases_SPD_PolicyEntry `protobuf:"bytes,3,rep,name=policy_entries,json=policyEntries" json:"policy_entries,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

func (*SecurityPolicyDatabases_SPD) Descriptor

func (*SecurityPolicyDatabases_SPD) Descriptor() ([]byte, []int)

func (*SecurityPolicyDatabases_SPD) GetInterfaces

func (*SecurityPolicyDatabases_SPD) GetName

func (m *SecurityPolicyDatabases_SPD) GetName() string

func (*SecurityPolicyDatabases_SPD) GetPolicyEntries

func (*SecurityPolicyDatabases_SPD) ProtoMessage

func (*SecurityPolicyDatabases_SPD) ProtoMessage()

func (*SecurityPolicyDatabases_SPD) Reset

func (m *SecurityPolicyDatabases_SPD) Reset()

func (*SecurityPolicyDatabases_SPD) String

func (m *SecurityPolicyDatabases_SPD) String() string

func (*SecurityPolicyDatabases_SPD) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityPolicyDatabases_SPD) XXX_DiscardUnknown()

func (*SecurityPolicyDatabases_SPD) XXX_Marshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityPolicyDatabases_SPD) XXX_Merge added in v1.8.1

func (dst *SecurityPolicyDatabases_SPD) XXX_Merge(src proto.Message)

func (*SecurityPolicyDatabases_SPD) XXX_Size added in v1.8.1

func (m *SecurityPolicyDatabases_SPD) XXX_Size() int

func (*SecurityPolicyDatabases_SPD) XXX_Unmarshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD) XXX_Unmarshal(b []byte) error

type SecurityPolicyDatabases_SPD_Interface

type SecurityPolicyDatabases_SPD_Interface struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Interface

func (*SecurityPolicyDatabases_SPD_Interface) Descriptor

func (*SecurityPolicyDatabases_SPD_Interface) Descriptor() ([]byte, []int)

func (*SecurityPolicyDatabases_SPD_Interface) GetName

func (*SecurityPolicyDatabases_SPD_Interface) ProtoMessage

func (*SecurityPolicyDatabases_SPD_Interface) ProtoMessage()

func (*SecurityPolicyDatabases_SPD_Interface) Reset

func (*SecurityPolicyDatabases_SPD_Interface) String

func (*SecurityPolicyDatabases_SPD_Interface) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_Interface) XXX_DiscardUnknown()

func (*SecurityPolicyDatabases_SPD_Interface) XXX_Marshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityPolicyDatabases_SPD_Interface) XXX_Merge added in v1.8.1

func (*SecurityPolicyDatabases_SPD_Interface) XXX_Size added in v1.8.1

func (*SecurityPolicyDatabases_SPD_Interface) XXX_Unmarshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_Interface) XXX_Unmarshal(b []byte) error

type SecurityPolicyDatabases_SPD_PolicyEntry

type SecurityPolicyDatabases_SPD_PolicyEntry struct {
	Sa                   string                                         `protobuf:"bytes,1,opt,name=sa,proto3" json:"sa,omitempty"`
	Priority             int32                                          `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	IsOutbound           bool                                           `protobuf:"varint,3,opt,name=is_outbound,json=isOutbound,proto3" json:"is_outbound,omitempty"`
	RemoteAddrStart      string                                         `protobuf:"bytes,4,opt,name=remote_addr_start,json=remoteAddrStart,proto3" json:"remote_addr_start,omitempty"`
	RemoteAddrStop       string                                         `protobuf:"bytes,5,opt,name=remote_addr_stop,json=remoteAddrStop,proto3" json:"remote_addr_stop,omitempty"`
	LocalAddrStart       string                                         `protobuf:"bytes,6,opt,name=local_addr_start,json=localAddrStart,proto3" json:"local_addr_start,omitempty"`
	LocalAddrStop        string                                         `protobuf:"bytes,7,opt,name=local_addr_stop,json=localAddrStop,proto3" json:"local_addr_stop,omitempty"`
	Protocol             uint32                                         `protobuf:"varint,8,opt,name=protocol,proto3" json:"protocol,omitempty"`
	RemotePortStart      uint32                                         `protobuf:"varint,9,opt,name=remote_port_start,json=remotePortStart,proto3" json:"remote_port_start,omitempty"`
	RemotePortStop       uint32                                         `protobuf:"varint,10,opt,name=remote_port_stop,json=remotePortStop,proto3" json:"remote_port_stop,omitempty"`
	LocalPortStart       uint32                                         `protobuf:"varint,11,opt,name=local_port_start,json=localPortStart,proto3" json:"local_port_start,omitempty"`
	LocalPortStop        uint32                                         `protobuf:"varint,12,opt,name=local_port_stop,json=localPortStop,proto3" json:"local_port_stop,omitempty"`
	Action               SecurityPolicyDatabases_SPD_PolicyEntry_Action `protobuf:"varint,13,opt,name=action,proto3,enum=ipsec.SecurityPolicyDatabases_SPD_PolicyEntry_Action" json:"action,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

Policy Entry

func (*SecurityPolicyDatabases_SPD_PolicyEntry) Descriptor

func (*SecurityPolicyDatabases_SPD_PolicyEntry) Descriptor() ([]byte, []int)

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetAction

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetIsOutbound

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetIsOutbound() bool

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalAddrStart

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalAddrStart() string

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalAddrStop

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalAddrStop() string

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalPortStart

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalPortStart() uint32

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalPortStop

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetLocalPortStop() uint32

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetPriority

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetProtocol

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetRemoteAddrStart

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetRemoteAddrStart() string

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetRemoteAddrStop

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetRemoteAddrStop() string

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetRemotePortStart

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetRemotePortStart() uint32

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetRemotePortStop

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) GetRemotePortStop() uint32

func (*SecurityPolicyDatabases_SPD_PolicyEntry) GetSa

func (*SecurityPolicyDatabases_SPD_PolicyEntry) ProtoMessage

func (*SecurityPolicyDatabases_SPD_PolicyEntry) Reset

func (*SecurityPolicyDatabases_SPD_PolicyEntry) String

func (*SecurityPolicyDatabases_SPD_PolicyEntry) XXX_DiscardUnknown added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) XXX_DiscardUnknown()

func (*SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Marshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Merge added in v1.8.1

func (*SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Size added in v1.8.1

func (*SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Unmarshal added in v1.8.1

func (m *SecurityPolicyDatabases_SPD_PolicyEntry) XXX_Unmarshal(b []byte) error

type SecurityPolicyDatabases_SPD_PolicyEntry_Action

type SecurityPolicyDatabases_SPD_PolicyEntry_Action int32

Policy action

const (
	SecurityPolicyDatabases_SPD_PolicyEntry_BYPASS  SecurityPolicyDatabases_SPD_PolicyEntry_Action = 0
	SecurityPolicyDatabases_SPD_PolicyEntry_DISCARD SecurityPolicyDatabases_SPD_PolicyEntry_Action = 1
	// RESOLVE = 2; // unused in VPP
	SecurityPolicyDatabases_SPD_PolicyEntry_PROTECT SecurityPolicyDatabases_SPD_PolicyEntry_Action = 3
)

func (SecurityPolicyDatabases_SPD_PolicyEntry_Action) EnumDescriptor

func (SecurityPolicyDatabases_SPD_PolicyEntry_Action) String

type TunnelInterfaces

type TunnelInterfaces struct {
	Tunnels              []*TunnelInterfaces_Tunnel `protobuf:"bytes,1,rep,name=tunnels" json:"tunnels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Tunnel Interfaces

func (*TunnelInterfaces) Descriptor

func (*TunnelInterfaces) Descriptor() ([]byte, []int)

func (*TunnelInterfaces) GetTunnels

func (m *TunnelInterfaces) GetTunnels() []*TunnelInterfaces_Tunnel

func (*TunnelInterfaces) ProtoMessage

func (*TunnelInterfaces) ProtoMessage()

func (*TunnelInterfaces) Reset

func (m *TunnelInterfaces) Reset()

func (*TunnelInterfaces) String

func (m *TunnelInterfaces) String() string

func (*TunnelInterfaces) XXX_DiscardUnknown added in v1.8.1

func (m *TunnelInterfaces) XXX_DiscardUnknown()

func (*TunnelInterfaces) XXX_Marshal added in v1.8.1

func (m *TunnelInterfaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TunnelInterfaces) XXX_Merge added in v1.8.1

func (dst *TunnelInterfaces) XXX_Merge(src proto.Message)

func (*TunnelInterfaces) XXX_Size added in v1.8.1

func (m *TunnelInterfaces) XXX_Size() int

func (*TunnelInterfaces) XXX_Unmarshal added in v1.8.1

func (m *TunnelInterfaces) XXX_Unmarshal(b []byte) error

type TunnelInterfaces_Tunnel

type TunnelInterfaces_Tunnel struct {
	Name            string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Esn             bool            `protobuf:"varint,2,opt,name=esn,proto3" json:"esn,omitempty"`
	AntiReplay      bool            `protobuf:"varint,3,opt,name=anti_replay,json=antiReplay,proto3" json:"anti_replay,omitempty"`
	LocalIp         string          `protobuf:"bytes,4,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"`
	RemoteIp        string          `protobuf:"bytes,5,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
	LocalSpi        uint32          `protobuf:"varint,6,opt,name=local_spi,json=localSpi,proto3" json:"local_spi,omitempty"`
	RemoteSpi       uint32          `protobuf:"varint,7,opt,name=remote_spi,json=remoteSpi,proto3" json:"remote_spi,omitempty"`
	CryptoAlg       CryptoAlgorithm `protobuf:"varint,8,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ipsec.CryptoAlgorithm" json:"crypto_alg,omitempty"`
	LocalCryptoKey  string          `protobuf:"bytes,9,opt,name=local_crypto_key,json=localCryptoKey,proto3" json:"local_crypto_key,omitempty"`
	RemoteCryptoKey string          `protobuf:"bytes,10,opt,name=remote_crypto_key,json=remoteCryptoKey,proto3" json:"remote_crypto_key,omitempty"`
	IntegAlg        IntegAlgorithm  `protobuf:"varint,11,opt,name=integ_alg,json=integAlg,proto3,enum=ipsec.IntegAlgorithm" json:"integ_alg,omitempty"`
	LocalIntegKey   string          `protobuf:"bytes,12,opt,name=local_integ_key,json=localIntegKey,proto3" json:"local_integ_key,omitempty"`
	RemoteIntegKey  string          `protobuf:"bytes,13,opt,name=remote_integ_key,json=remoteIntegKey,proto3" json:"remote_integ_key,omitempty"`
	// Extra fields related to interface
	Enabled              bool     `protobuf:"varint,100,opt,name=enabled,proto3" json:"enabled,omitempty"`
	IpAddresses          []string `protobuf:"bytes,101,rep,name=ip_addresses,json=ipAddresses" json:"ip_addresses,omitempty"`
	Vrf                  uint32   `protobuf:"varint,102,opt,name=vrf,proto3" json:"vrf,omitempty"`
	UnnumberedName       string   `protobuf:"bytes,103,opt,name=unnumbered_name,json=unnumberedName,proto3" json:"unnumbered_name,omitempty"`
	EnableUdpEncap       bool     `protobuf:"varint,104,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TunnelInterfaces_Tunnel) Descriptor

func (*TunnelInterfaces_Tunnel) Descriptor() ([]byte, []int)

func (*TunnelInterfaces_Tunnel) GetAntiReplay

func (m *TunnelInterfaces_Tunnel) GetAntiReplay() bool

func (*TunnelInterfaces_Tunnel) GetCryptoAlg

func (m *TunnelInterfaces_Tunnel) GetCryptoAlg() CryptoAlgorithm

func (*TunnelInterfaces_Tunnel) GetEnableUdpEncap added in v1.8.1

func (m *TunnelInterfaces_Tunnel) GetEnableUdpEncap() bool

func (*TunnelInterfaces_Tunnel) GetEnabled

func (m *TunnelInterfaces_Tunnel) GetEnabled() bool

func (*TunnelInterfaces_Tunnel) GetEsn

func (m *TunnelInterfaces_Tunnel) GetEsn() bool

func (*TunnelInterfaces_Tunnel) GetIntegAlg

func (m *TunnelInterfaces_Tunnel) GetIntegAlg() IntegAlgorithm

func (*TunnelInterfaces_Tunnel) GetIpAddresses

func (m *TunnelInterfaces_Tunnel) GetIpAddresses() []string

func (*TunnelInterfaces_Tunnel) GetLocalCryptoKey

func (m *TunnelInterfaces_Tunnel) GetLocalCryptoKey() string

func (*TunnelInterfaces_Tunnel) GetLocalIntegKey

func (m *TunnelInterfaces_Tunnel) GetLocalIntegKey() string

func (*TunnelInterfaces_Tunnel) GetLocalIp

func (m *TunnelInterfaces_Tunnel) GetLocalIp() string

func (*TunnelInterfaces_Tunnel) GetLocalSpi

func (m *TunnelInterfaces_Tunnel) GetLocalSpi() uint32

func (*TunnelInterfaces_Tunnel) GetName

func (m *TunnelInterfaces_Tunnel) GetName() string

func (*TunnelInterfaces_Tunnel) GetRemoteCryptoKey

func (m *TunnelInterfaces_Tunnel) GetRemoteCryptoKey() string

func (*TunnelInterfaces_Tunnel) GetRemoteIntegKey

func (m *TunnelInterfaces_Tunnel) GetRemoteIntegKey() string

func (*TunnelInterfaces_Tunnel) GetRemoteIp

func (m *TunnelInterfaces_Tunnel) GetRemoteIp() string

func (*TunnelInterfaces_Tunnel) GetRemoteSpi

func (m *TunnelInterfaces_Tunnel) GetRemoteSpi() uint32

func (*TunnelInterfaces_Tunnel) GetUnnumberedName added in v1.8.1

func (m *TunnelInterfaces_Tunnel) GetUnnumberedName() string

func (*TunnelInterfaces_Tunnel) GetVrf

func (m *TunnelInterfaces_Tunnel) GetVrf() uint32

func (*TunnelInterfaces_Tunnel) ProtoMessage

func (*TunnelInterfaces_Tunnel) ProtoMessage()

func (*TunnelInterfaces_Tunnel) Reset

func (m *TunnelInterfaces_Tunnel) Reset()

func (*TunnelInterfaces_Tunnel) String

func (m *TunnelInterfaces_Tunnel) String() string

func (*TunnelInterfaces_Tunnel) XXX_DiscardUnknown added in v1.8.1

func (m *TunnelInterfaces_Tunnel) XXX_DiscardUnknown()

func (*TunnelInterfaces_Tunnel) XXX_Marshal added in v1.8.1

func (m *TunnelInterfaces_Tunnel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TunnelInterfaces_Tunnel) XXX_Merge added in v1.8.1

func (dst *TunnelInterfaces_Tunnel) XXX_Merge(src proto.Message)

func (*TunnelInterfaces_Tunnel) XXX_Size added in v1.8.1

func (m *TunnelInterfaces_Tunnel) XXX_Size() int

func (*TunnelInterfaces_Tunnel) XXX_Unmarshal added in v1.8.1

func (m *TunnelInterfaces_Tunnel) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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