Documentation ¶
Index ¶
- Constants
- func NewNat64VppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, ...) vppcalls.Nat64VppAPI
- type Nat64VppHandler
- func (h *Nat64VppHandler) AddNat64AddressPool(vrf uint32, firstIP, lastIP string) error
- func (h *Nat64VppHandler) AddNat64IPv6Prefix(vrf uint32, prefix string) error
- func (h *Nat64VppHandler) AddNat64StaticBIB(bib *nat64.Nat64StaticBIB) error
- func (h *Nat64VppHandler) DelNat64AddressPool(vrf uint32, firstIP, lastIP string) error
- func (h *Nat64VppHandler) DelNat64IPv6Prefix(vrf uint32, prefix string) error
- func (h *Nat64VppHandler) DelNat64StaticBIB(bib *nat64.Nat64StaticBIB) error
- func (h *Nat64VppHandler) DisableNat64Interface(iface string, natIfaceType nat64.Nat64Interface_Type) error
- func (h *Nat64VppHandler) EnableNat64Interface(iface string, natIfaceType nat64.Nat64Interface_Type) error
- func (h *Nat64VppHandler) Nat64AddressPoolsDump(correlateWith []*nat.Nat64AddressPool) (pools []*nat.Nat64AddressPool, err error)
- func (h *Nat64VppHandler) Nat64IPv6PrefixDump() (prefixes []*nat.Nat64IPv6Prefix, err error)
- func (h *Nat64VppHandler) Nat64InterfacesDump() (interfaces []*nat.Nat64Interface, err error)
- func (h *Nat64VppHandler) Nat64StaticBIBsDump() (bibs []*nat.Nat64StaticBIB, err error)
Constants ¶
const ( ICMP uint8 = 1 TCP uint8 = 6 UDP uint8 = 17 )
Num protocol representation
Variables ¶
This section is empty.
Functions ¶
func NewNat64VppHandler ¶
func NewNat64VppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger, ) vppcalls.Nat64VppAPI
NewNat64VppHandler creates new instance of NAT64 vppcalls handler.
Types ¶
type Nat64VppHandler ¶
type Nat64VppHandler struct {
// contains filtered or unexported fields
}
Nat64VppHandler is accessor for NAT64-related vppcalls methods.
func (*Nat64VppHandler) AddNat64AddressPool ¶
func (h *Nat64VppHandler) AddNat64AddressPool(vrf uint32, firstIP, lastIP string) error
AddNat64AddressPool adds new IPV4 address pool into the NAT64 pools.
func (*Nat64VppHandler) AddNat64IPv6Prefix ¶
func (h *Nat64VppHandler) AddNat64IPv6Prefix(vrf uint32, prefix string) error
AddNat64IPv6Prefix adds IPv6 prefix for NAT64 (used to embed IPv4 address).
func (*Nat64VppHandler) AddNat64StaticBIB ¶
func (h *Nat64VppHandler) AddNat64StaticBIB(bib *nat64.Nat64StaticBIB) error
AddNat64StaticBIB creates new NAT64 static binding.
func (*Nat64VppHandler) DelNat64AddressPool ¶
func (h *Nat64VppHandler) DelNat64AddressPool(vrf uint32, firstIP, lastIP string) error
DelNat64AddressPool removes existing IPv4 address pool from the NAT64 pools.
func (*Nat64VppHandler) DelNat64IPv6Prefix ¶
func (h *Nat64VppHandler) DelNat64IPv6Prefix(vrf uint32, prefix string) error
DelNat64IPv6Prefix removes existing IPv6 prefix previously configured for NAT64.
func (*Nat64VppHandler) DelNat64StaticBIB ¶
func (h *Nat64VppHandler) DelNat64StaticBIB(bib *nat64.Nat64StaticBIB) error
DelNat64StaticBIB removes existing NAT64 static binding.
func (*Nat64VppHandler) DisableNat64Interface ¶
func (h *Nat64VppHandler) DisableNat64Interface(iface string, natIfaceType nat64.Nat64Interface_Type) error
DisableNat64Interface disables NAT64 for provided interface.
func (*Nat64VppHandler) EnableNat64Interface ¶
func (h *Nat64VppHandler) EnableNat64Interface(iface string, natIfaceType nat64.Nat64Interface_Type) error
EnableNat64Interface enables NAT64 for provided interface.
func (*Nat64VppHandler) Nat64AddressPoolsDump ¶
func (h *Nat64VppHandler) Nat64AddressPoolsDump(correlateWith []*nat.Nat64AddressPool) (pools []*nat.Nat64AddressPool, err error)
Nat64AddressPoolsDump dumps all configured NAT64 address pools. Note that VPP returns configured addresses one-by-one, loosing information about address pools configured with multiple addresses through IP ranges. Provide expected configuration to group addresses from the same range.
func (*Nat64VppHandler) Nat64IPv6PrefixDump ¶
func (h *Nat64VppHandler) Nat64IPv6PrefixDump() (prefixes []*nat.Nat64IPv6Prefix, err error)
Nat64IPv6PrefixDump dumps all IPv6 prefixes configured for NAT64.
func (*Nat64VppHandler) Nat64InterfacesDump ¶
func (h *Nat64VppHandler) Nat64InterfacesDump() (interfaces []*nat.Nat64Interface, err error)
Nat64InterfacesDump dumps NAT64 config of all NAT64-enabled interfaces.
func (*Nat64VppHandler) Nat64StaticBIBsDump ¶
func (h *Nat64VppHandler) Nat64StaticBIBsDump() (bibs []*nat.Nat64StaticBIB, err error)
Nat64StaticBIBsDump dumps NAT64 static bindings.