Documentation ¶
Overview ¶
Package lisp_types contains generated bindings for API file lisp_types.api.
Contents:
2 enums 5 structs 1 union
Index ¶
- Variables
- type Eid
- type EidAddressUnion
- func (u *EidAddressUnion) GetMac() (a ethernet_types.MacAddress)
- func (u *EidAddressUnion) GetNsh() (a Nsh)
- func (u *EidAddressUnion) GetPrefix() (a ip_types.Prefix)
- func (u *EidAddressUnion) SetMac(a ethernet_types.MacAddress)
- func (u *EidAddressUnion) SetNsh(a Nsh)
- func (u *EidAddressUnion) SetPrefix(a ip_types.Prefix)
- type EidType
- type HmacKey
- type HmacKeyID
- type LocalLocator
- type Nsh
- type RemoteLocator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EidType_name = map[uint8]string{ 0: "EID_TYPE_API_PREFIX", 1: "EID_TYPE_API_MAC", 2: "EID_TYPE_API_NSH", } EidType_value = map[string]uint8{ "EID_TYPE_API_PREFIX": 0, "EID_TYPE_API_MAC": 1, "EID_TYPE_API_NSH": 2, } )
View Source
var ( HmacKeyID_name = map[uint8]string{ 0: "KEY_ID_API_HMAC_NO_KEY", 1: "KEY_ID_API_HMAC_SHA_1_96", 2: "KEY_ID_API_HMAC_SHA_256_128", } HmacKeyID_value = map[string]uint8{ "KEY_ID_API_HMAC_NO_KEY": 0, "KEY_ID_API_HMAC_SHA_1_96": 1, "KEY_ID_API_HMAC_SHA_256_128": 2, } )
Functions ¶
This section is empty.
Types ¶
type Eid ¶
type Eid struct { Type EidType `binapi:"eid_type,name=type" json:"type,omitempty"` Address EidAddressUnion `binapi:"eid_address,name=address" json:"address,omitempty"` }
Eid defines type 'eid'.
type EidAddressUnion ¶
type EidAddressUnion struct { // EidAddressUnion can be one of: // - Prefix *ip_types.Prefix // - Mac *ethernet_types.MacAddress // - Nsh *Nsh XXX_UnionData [18]byte }
EidAddressUnion defines union 'eid_address'.
func EidAddressUnionMac ¶
func EidAddressUnionMac(a ethernet_types.MacAddress) (u EidAddressUnion)
func EidAddressUnionNsh ¶
func EidAddressUnionNsh(a Nsh) (u EidAddressUnion)
func EidAddressUnionPrefix ¶
func EidAddressUnionPrefix(a ip_types.Prefix) (u EidAddressUnion)
func (*EidAddressUnion) GetMac ¶
func (u *EidAddressUnion) GetMac() (a ethernet_types.MacAddress)
func (*EidAddressUnion) GetNsh ¶
func (u *EidAddressUnion) GetNsh() (a Nsh)
func (*EidAddressUnion) GetPrefix ¶
func (u *EidAddressUnion) GetPrefix() (a ip_types.Prefix)
func (*EidAddressUnion) SetMac ¶
func (u *EidAddressUnion) SetMac(a ethernet_types.MacAddress)
func (*EidAddressUnion) SetNsh ¶
func (u *EidAddressUnion) SetNsh(a Nsh)
func (*EidAddressUnion) SetPrefix ¶
func (u *EidAddressUnion) SetPrefix(a ip_types.Prefix)
type HmacKey ¶
type HmacKey struct { ID HmacKeyID `binapi:"hmac_key_id,name=id" json:"id,omitempty"` Key []byte `binapi:"u8[64],name=key" json:"key,omitempty"` }
HmacKey defines type 'hmac_key'.
type LocalLocator ¶
type LocalLocator struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"` }
LocalLocator defines type 'local_locator'.
type Nsh ¶
type Nsh struct { Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"` Si uint8 `binapi:"u8,name=si" json:"si,omitempty"` }
Nsh defines type 'nsh'.
type RemoteLocator ¶
type RemoteLocator struct { Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"` Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"` IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"` }
RemoteLocator defines type 'remote_locator'.
Click to show internal directories.
Click to hide internal directories.