Documentation ¶
Overview ¶
Package nat66 contains generated bindings for API file nat66.api.
Contents: - 10 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type Nat66AddDelInterface
- func (*Nat66AddDelInterface) GetCrcString() string
- func (*Nat66AddDelInterface) GetMessageName() string
- func (*Nat66AddDelInterface) GetMessageType() api.MessageType
- func (m *Nat66AddDelInterface) Marshal(b []byte) ([]byte, error)
- func (m *Nat66AddDelInterface) Reset()
- func (m *Nat66AddDelInterface) Size() (size int)
- func (m *Nat66AddDelInterface) Unmarshal(b []byte) error
- type Nat66AddDelInterfaceReply
- func (*Nat66AddDelInterfaceReply) GetCrcString() string
- func (*Nat66AddDelInterfaceReply) GetMessageName() string
- func (*Nat66AddDelInterfaceReply) GetMessageType() api.MessageType
- func (m *Nat66AddDelInterfaceReply) Marshal(b []byte) ([]byte, error)
- func (m *Nat66AddDelInterfaceReply) Reset()
- func (m *Nat66AddDelInterfaceReply) Size() (size int)
- func (m *Nat66AddDelInterfaceReply) Unmarshal(b []byte) error
- type Nat66AddDelStaticMapping
- func (*Nat66AddDelStaticMapping) GetCrcString() string
- func (*Nat66AddDelStaticMapping) GetMessageName() string
- func (*Nat66AddDelStaticMapping) GetMessageType() api.MessageType
- func (m *Nat66AddDelStaticMapping) Marshal(b []byte) ([]byte, error)
- func (m *Nat66AddDelStaticMapping) Reset()
- func (m *Nat66AddDelStaticMapping) Size() (size int)
- func (m *Nat66AddDelStaticMapping) Unmarshal(b []byte) error
- type Nat66AddDelStaticMappingReply
- func (*Nat66AddDelStaticMappingReply) GetCrcString() string
- func (*Nat66AddDelStaticMappingReply) GetMessageName() string
- func (*Nat66AddDelStaticMappingReply) GetMessageType() api.MessageType
- func (m *Nat66AddDelStaticMappingReply) Marshal(b []byte) ([]byte, error)
- func (m *Nat66AddDelStaticMappingReply) Reset()
- func (m *Nat66AddDelStaticMappingReply) Size() (size int)
- func (m *Nat66AddDelStaticMappingReply) Unmarshal(b []byte) error
- type Nat66InterfaceDetails
- func (*Nat66InterfaceDetails) GetCrcString() string
- func (*Nat66InterfaceDetails) GetMessageName() string
- func (*Nat66InterfaceDetails) GetMessageType() api.MessageType
- func (m *Nat66InterfaceDetails) Marshal(b []byte) ([]byte, error)
- func (m *Nat66InterfaceDetails) Reset()
- func (m *Nat66InterfaceDetails) Size() (size int)
- func (m *Nat66InterfaceDetails) Unmarshal(b []byte) error
- type Nat66InterfaceDump
- func (*Nat66InterfaceDump) GetCrcString() string
- func (*Nat66InterfaceDump) GetMessageName() string
- func (*Nat66InterfaceDump) GetMessageType() api.MessageType
- func (m *Nat66InterfaceDump) Marshal(b []byte) ([]byte, error)
- func (m *Nat66InterfaceDump) Reset()
- func (m *Nat66InterfaceDump) Size() (size int)
- func (m *Nat66InterfaceDump) Unmarshal(b []byte) error
- type Nat66PluginEnableDisable
- func (*Nat66PluginEnableDisable) GetCrcString() string
- func (*Nat66PluginEnableDisable) GetMessageName() string
- func (*Nat66PluginEnableDisable) GetMessageType() api.MessageType
- func (m *Nat66PluginEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *Nat66PluginEnableDisable) Reset()
- func (m *Nat66PluginEnableDisable) Size() (size int)
- func (m *Nat66PluginEnableDisable) Unmarshal(b []byte) error
- type Nat66PluginEnableDisableReply
- func (*Nat66PluginEnableDisableReply) GetCrcString() string
- func (*Nat66PluginEnableDisableReply) GetMessageName() string
- func (*Nat66PluginEnableDisableReply) GetMessageType() api.MessageType
- func (m *Nat66PluginEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *Nat66PluginEnableDisableReply) Reset()
- func (m *Nat66PluginEnableDisableReply) Size() (size int)
- func (m *Nat66PluginEnableDisableReply) Unmarshal(b []byte) error
- type Nat66StaticMappingDetails
- func (*Nat66StaticMappingDetails) GetCrcString() string
- func (*Nat66StaticMappingDetails) GetMessageName() string
- func (*Nat66StaticMappingDetails) GetMessageType() api.MessageType
- func (m *Nat66StaticMappingDetails) Marshal(b []byte) ([]byte, error)
- func (m *Nat66StaticMappingDetails) Reset()
- func (m *Nat66StaticMappingDetails) Size() (size int)
- func (m *Nat66StaticMappingDetails) Unmarshal(b []byte) error
- type Nat66StaticMappingDump
- func (*Nat66StaticMappingDump) GetCrcString() string
- func (*Nat66StaticMappingDump) GetMessageName() string
- func (*Nat66StaticMappingDump) GetMessageType() api.MessageType
- func (m *Nat66StaticMappingDump) Marshal(b []byte) ([]byte, error)
- func (m *Nat66StaticMappingDump) Reset()
- func (m *Nat66StaticMappingDump) Size() (size int)
- func (m *Nat66StaticMappingDump) Unmarshal(b []byte) error
- type RPCService
- type RPCService_Nat66InterfaceDumpClient
- type RPCService_Nat66StaticMappingDumpClient
Constants ¶
const ( APIFile = "nat66" APIVersion = "1.0.0" VersionCrc = 0xa6343f71 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type Nat66AddDelInterface ¶
type Nat66AddDelInterface struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Enable/disable NAT66 feature on the interface
- is_add - true if add, false if delete
- flags - flag NAT_IS_INSIDE if interface is inside or interface is outside,
- sw_if_index - software index of the interface
Nat66AddDelInterface defines message 'nat66_add_del_interface'.
func (*Nat66AddDelInterface) GetCrcString ¶
func (*Nat66AddDelInterface) GetCrcString() string
func (*Nat66AddDelInterface) GetMessageName ¶
func (*Nat66AddDelInterface) GetMessageName() string
func (*Nat66AddDelInterface) GetMessageType ¶
func (*Nat66AddDelInterface) GetMessageType() api.MessageType
func (*Nat66AddDelInterface) Marshal ¶
func (m *Nat66AddDelInterface) Marshal(b []byte) ([]byte, error)
func (*Nat66AddDelInterface) Reset ¶
func (m *Nat66AddDelInterface) Reset()
func (*Nat66AddDelInterface) Size ¶
func (m *Nat66AddDelInterface) Size() (size int)
func (*Nat66AddDelInterface) Unmarshal ¶
func (m *Nat66AddDelInterface) Unmarshal(b []byte) error
type Nat66AddDelInterfaceReply ¶
type Nat66AddDelInterfaceReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
Nat66AddDelInterfaceReply defines message 'nat66_add_del_interface_reply'.
func (*Nat66AddDelInterfaceReply) GetCrcString ¶
func (*Nat66AddDelInterfaceReply) GetCrcString() string
func (*Nat66AddDelInterfaceReply) GetMessageName ¶
func (*Nat66AddDelInterfaceReply) GetMessageName() string
func (*Nat66AddDelInterfaceReply) GetMessageType ¶
func (*Nat66AddDelInterfaceReply) GetMessageType() api.MessageType
func (*Nat66AddDelInterfaceReply) Marshal ¶
func (m *Nat66AddDelInterfaceReply) Marshal(b []byte) ([]byte, error)
func (*Nat66AddDelInterfaceReply) Reset ¶
func (m *Nat66AddDelInterfaceReply) Reset()
func (*Nat66AddDelInterfaceReply) Size ¶
func (m *Nat66AddDelInterfaceReply) Size() (size int)
func (*Nat66AddDelInterfaceReply) Unmarshal ¶
func (m *Nat66AddDelInterfaceReply) Unmarshal(b []byte) error
type Nat66AddDelStaticMapping ¶
type Nat66AddDelStaticMapping struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` LocalIPAddress ip_types.IP6Address `binapi:"ip6_address,name=local_ip_address" json:"local_ip_address,omitempty"` ExternalIPAddress ip_types.IP6Address `binapi:"ip6_address,name=external_ip_address" json:"external_ip_address,omitempty"` VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` }
Add/delete 1:1 NAT66
- is_add - true if add, false if delete
- local_ip_address - local IPv6 address
- external_ip_address - external IPv6 address
- vrf_id - VRF id of tenant
Nat66AddDelStaticMapping defines message 'nat66_add_del_static_mapping'.
func (*Nat66AddDelStaticMapping) GetCrcString ¶
func (*Nat66AddDelStaticMapping) GetCrcString() string
func (*Nat66AddDelStaticMapping) GetMessageName ¶
func (*Nat66AddDelStaticMapping) GetMessageName() string
func (*Nat66AddDelStaticMapping) GetMessageType ¶
func (*Nat66AddDelStaticMapping) GetMessageType() api.MessageType
func (*Nat66AddDelStaticMapping) Marshal ¶
func (m *Nat66AddDelStaticMapping) Marshal(b []byte) ([]byte, error)
func (*Nat66AddDelStaticMapping) Reset ¶
func (m *Nat66AddDelStaticMapping) Reset()
func (*Nat66AddDelStaticMapping) Size ¶
func (m *Nat66AddDelStaticMapping) Size() (size int)
func (*Nat66AddDelStaticMapping) Unmarshal ¶
func (m *Nat66AddDelStaticMapping) Unmarshal(b []byte) error
type Nat66AddDelStaticMappingReply ¶
type Nat66AddDelStaticMappingReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
Nat66AddDelStaticMappingReply defines message 'nat66_add_del_static_mapping_reply'.
func (*Nat66AddDelStaticMappingReply) GetCrcString ¶
func (*Nat66AddDelStaticMappingReply) GetCrcString() string
func (*Nat66AddDelStaticMappingReply) GetMessageName ¶
func (*Nat66AddDelStaticMappingReply) GetMessageName() string
func (*Nat66AddDelStaticMappingReply) GetMessageType ¶
func (*Nat66AddDelStaticMappingReply) GetMessageType() api.MessageType
func (*Nat66AddDelStaticMappingReply) Marshal ¶
func (m *Nat66AddDelStaticMappingReply) Marshal(b []byte) ([]byte, error)
func (*Nat66AddDelStaticMappingReply) Reset ¶
func (m *Nat66AddDelStaticMappingReply) Reset()
func (*Nat66AddDelStaticMappingReply) Size ¶
func (m *Nat66AddDelStaticMappingReply) Size() (size int)
func (*Nat66AddDelStaticMappingReply) Unmarshal ¶
func (m *Nat66AddDelStaticMappingReply) Unmarshal(b []byte) error
type Nat66InterfaceDetails ¶
type Nat66InterfaceDetails struct { Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
NAT66 interface details response
- flags - flag NAT_IS_INSIDE if interface is inside or interface is outside,
- sw_if_index - software index of the interface
Nat66InterfaceDetails defines message 'nat66_interface_details'.
func (*Nat66InterfaceDetails) GetCrcString ¶
func (*Nat66InterfaceDetails) GetCrcString() string
func (*Nat66InterfaceDetails) GetMessageName ¶
func (*Nat66InterfaceDetails) GetMessageName() string
func (*Nat66InterfaceDetails) GetMessageType ¶
func (*Nat66InterfaceDetails) GetMessageType() api.MessageType
func (*Nat66InterfaceDetails) Marshal ¶
func (m *Nat66InterfaceDetails) Marshal(b []byte) ([]byte, error)
func (*Nat66InterfaceDetails) Reset ¶
func (m *Nat66InterfaceDetails) Reset()
func (*Nat66InterfaceDetails) Size ¶
func (m *Nat66InterfaceDetails) Size() (size int)
func (*Nat66InterfaceDetails) Unmarshal ¶
func (m *Nat66InterfaceDetails) Unmarshal(b []byte) error
type Nat66InterfaceDump ¶
type Nat66InterfaceDump struct{}
Dump interfaces with NAT66 feature Nat66InterfaceDump defines message 'nat66_interface_dump'.
func (*Nat66InterfaceDump) GetCrcString ¶
func (*Nat66InterfaceDump) GetCrcString() string
func (*Nat66InterfaceDump) GetMessageName ¶
func (*Nat66InterfaceDump) GetMessageName() string
func (*Nat66InterfaceDump) GetMessageType ¶
func (*Nat66InterfaceDump) GetMessageType() api.MessageType
func (*Nat66InterfaceDump) Reset ¶
func (m *Nat66InterfaceDump) Reset()
func (*Nat66InterfaceDump) Size ¶
func (m *Nat66InterfaceDump) Size() (size int)
func (*Nat66InterfaceDump) Unmarshal ¶
func (m *Nat66InterfaceDump) Unmarshal(b []byte) error
type Nat66PluginEnableDisable ¶
type Nat66PluginEnableDisable struct { OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"` Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` }
Enable/disable NAT66 plugin
- outside_vrf - outside vrf id
- enable - true if enable, false if disable
Nat66PluginEnableDisable defines message 'nat66_plugin_enable_disable'.
func (*Nat66PluginEnableDisable) GetCrcString ¶
func (*Nat66PluginEnableDisable) GetCrcString() string
func (*Nat66PluginEnableDisable) GetMessageName ¶
func (*Nat66PluginEnableDisable) GetMessageName() string
func (*Nat66PluginEnableDisable) GetMessageType ¶
func (*Nat66PluginEnableDisable) GetMessageType() api.MessageType
func (*Nat66PluginEnableDisable) Marshal ¶
func (m *Nat66PluginEnableDisable) Marshal(b []byte) ([]byte, error)
func (*Nat66PluginEnableDisable) Reset ¶
func (m *Nat66PluginEnableDisable) Reset()
func (*Nat66PluginEnableDisable) Size ¶
func (m *Nat66PluginEnableDisable) Size() (size int)
func (*Nat66PluginEnableDisable) Unmarshal ¶
func (m *Nat66PluginEnableDisable) Unmarshal(b []byte) error
type Nat66PluginEnableDisableReply ¶
type Nat66PluginEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
Nat66PluginEnableDisableReply defines message 'nat66_plugin_enable_disable_reply'.
func (*Nat66PluginEnableDisableReply) GetCrcString ¶
func (*Nat66PluginEnableDisableReply) GetCrcString() string
func (*Nat66PluginEnableDisableReply) GetMessageName ¶
func (*Nat66PluginEnableDisableReply) GetMessageName() string
func (*Nat66PluginEnableDisableReply) GetMessageType ¶
func (*Nat66PluginEnableDisableReply) GetMessageType() api.MessageType
func (*Nat66PluginEnableDisableReply) Marshal ¶
func (m *Nat66PluginEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*Nat66PluginEnableDisableReply) Reset ¶
func (m *Nat66PluginEnableDisableReply) Reset()
func (*Nat66PluginEnableDisableReply) Size ¶
func (m *Nat66PluginEnableDisableReply) Size() (size int)
func (*Nat66PluginEnableDisableReply) Unmarshal ¶
func (m *Nat66PluginEnableDisableReply) Unmarshal(b []byte) error
type Nat66StaticMappingDetails ¶
type Nat66StaticMappingDetails struct { LocalIPAddress ip_types.IP6Address `binapi:"ip6_address,name=local_ip_address" json:"local_ip_address,omitempty"` ExternalIPAddress ip_types.IP6Address `binapi:"ip6_address,name=external_ip_address" json:"external_ip_address,omitempty"` VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` TotalBytes uint64 `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"` TotalPkts uint64 `binapi:"u64,name=total_pkts" json:"total_pkts,omitempty"` }
NAT66 static mapping details response
- local_ip_address - local IPv6 address
- external_ip_address - external IPv6 address
- vrf_id - VRF id of tenant
- total_bytes - count of bytes sent through static mapping
- total_pkts - count of pakets sent through static mapping
Nat66StaticMappingDetails defines message 'nat66_static_mapping_details'.
func (*Nat66StaticMappingDetails) GetCrcString ¶
func (*Nat66StaticMappingDetails) GetCrcString() string
func (*Nat66StaticMappingDetails) GetMessageName ¶
func (*Nat66StaticMappingDetails) GetMessageName() string
func (*Nat66StaticMappingDetails) GetMessageType ¶
func (*Nat66StaticMappingDetails) GetMessageType() api.MessageType
func (*Nat66StaticMappingDetails) Marshal ¶
func (m *Nat66StaticMappingDetails) Marshal(b []byte) ([]byte, error)
func (*Nat66StaticMappingDetails) Reset ¶
func (m *Nat66StaticMappingDetails) Reset()
func (*Nat66StaticMappingDetails) Size ¶
func (m *Nat66StaticMappingDetails) Size() (size int)
func (*Nat66StaticMappingDetails) Unmarshal ¶
func (m *Nat66StaticMappingDetails) Unmarshal(b []byte) error
type Nat66StaticMappingDump ¶
type Nat66StaticMappingDump struct{}
Dump NAT66 static mappings Nat66StaticMappingDump defines message 'nat66_static_mapping_dump'.
func (*Nat66StaticMappingDump) GetCrcString ¶
func (*Nat66StaticMappingDump) GetCrcString() string
func (*Nat66StaticMappingDump) GetMessageName ¶
func (*Nat66StaticMappingDump) GetMessageName() string
func (*Nat66StaticMappingDump) GetMessageType ¶
func (*Nat66StaticMappingDump) GetMessageType() api.MessageType
func (*Nat66StaticMappingDump) Marshal ¶
func (m *Nat66StaticMappingDump) Marshal(b []byte) ([]byte, error)
func (*Nat66StaticMappingDump) Reset ¶
func (m *Nat66StaticMappingDump) Reset()
func (*Nat66StaticMappingDump) Size ¶
func (m *Nat66StaticMappingDump) Size() (size int)
func (*Nat66StaticMappingDump) Unmarshal ¶
func (m *Nat66StaticMappingDump) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { Nat66AddDelInterface(ctx context.Context, in *Nat66AddDelInterface) (*Nat66AddDelInterfaceReply, error) Nat66AddDelStaticMapping(ctx context.Context, in *Nat66AddDelStaticMapping) (*Nat66AddDelStaticMappingReply, error) Nat66InterfaceDump(ctx context.Context, in *Nat66InterfaceDump) (RPCService_Nat66InterfaceDumpClient, error) Nat66PluginEnableDisable(ctx context.Context, in *Nat66PluginEnableDisable) (*Nat66PluginEnableDisableReply, error) Nat66StaticMappingDump(ctx context.Context, in *Nat66StaticMappingDump) (RPCService_Nat66StaticMappingDumpClient, error) }
RPCService defines RPC service nat66.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_Nat66InterfaceDumpClient ¶
type RPCService_Nat66InterfaceDumpClient interface { Recv() (*Nat66InterfaceDetails, error) api.Stream }
type RPCService_Nat66StaticMappingDumpClient ¶
type RPCService_Nat66StaticMappingDumpClient interface { Recv() (*Nat66StaticMappingDetails, error) api.Stream }