Documentation ¶
Index ¶
- func MarshalPrefixSID(psid *prefixsid.PSid) []*any.Any
- func MarshalRD(rd bgp.RouteDistinguisherInterface) *any.Any
- func MarshalRDFromString(rd string) (*any.Any, error)
- func MarshalRT(rt bgp.ExtendedCommunityInterface) *any.Any
- func MarshalRTFromString(rt string) (*any.Any, error)
- func MarshalRTs(rts []bgp.ExtendedCommunityInterface) []*any.Any
- func MarshalSRv6SubSubTLVs(stlvs map[uint8][]srv6.SubSubTLV) map[uint32]*api.SRv6TLV
- func MarshalSRv6SubTLVs(tlvs map[uint8][]srv6.SubTLV) map[uint32]*api.SRv6TLV
- func RDValidator(rd string) error
- func RTValidator(rt string) error
- func UnmarshalPrefixSID(svcs []*any.Any) (*prefixsid.PSid, error)
- func UnmarshalRD(rd *any.Any) (bgp.RouteDistinguisherInterface, error)
- func UnmarshalRT(rts []*any.Any) ([]bgp.ExtendedCommunityInterface, error)
- func UnmarshalSRv6SubSubTLVs(stlvs map[uint32]*api.SRv6TLV) (map[uint8][]srv6.SubSubTLV, error)
- func UnmarshalSRv6SubTLVs(stlvs map[uint32]*api.SRv6TLV) (map[uint8][]srv6.SubTLV, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPrefixSID ¶
MarshalPrefixSID marshals Prefix SID object into a slice of protobuf's anytype
func MarshalRD ¶
func MarshalRD(rd bgp.RouteDistinguisherInterface) *any.Any
MarshalRD marshals Route Distinguisher into Proto Any format
func MarshalRDFromString ¶
MarshalRDFromString marshals Route Distinguisher into Protobuf Any.any format
func MarshalRT ¶
func MarshalRT(rt bgp.ExtendedCommunityInterface) *any.Any
MarshalRT marshals Route Target into Proto Any format
func MarshalRTFromString ¶
MarshalRTFromString marshals Route Target into Protobuf Any.any format
func MarshalRTs ¶
func MarshalRTs(rts []bgp.ExtendedCommunityInterface) []*any.Any
MarshalRTs marshals slice of Route Targets into Proto Any format
func MarshalSRv6SubSubTLVs ¶
MarshalSRv6SubSubTLVs marshals SRv6 SubSubTLV map into a native protobuf map of TLVs
func MarshalSRv6SubTLVs ¶
MarshalSRv6SubTLVs marshals SRv6 SubTLV map into a native protobuf map of TLVs
func RDValidator ¶
RDValidator validates Route Distinguisher stored in string
func RTValidator ¶
RTValidator validates Route Target stored in string
func UnmarshalPrefixSID ¶
UnmarshalPrefixSID unmarshals a slice of protobuf's anytype in Prefix SID object
func UnmarshalRD ¶
func UnmarshalRD(rd *any.Any) (bgp.RouteDistinguisherInterface, error)
UnmarshalRD unmarshals Route Distinguisher from Proto message
func UnmarshalRT ¶
func UnmarshalRT(rts []*any.Any) ([]bgp.ExtendedCommunityInterface, error)
UnmarshalRT unmarshals Route Target extended community from Proto message
func UnmarshalSRv6SubSubTLVs ¶
UnmarshalSRv6SubSubTLVs unmarshals a native protobuf map of TLVs into SRv6 SubSubTLV map
Types ¶
This section is empty.