diff options
author | Serguei Bezverkhi <sbezverk@cisco.com> | 2020-05-12 22:05:44 -0400 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-05-13 12:58:51 +0900 |
commit | 833188f52610dcf47c57250788b36625b10a8925 (patch) | |
tree | 2c4f80208c1d40bc0e52a2f379421039fe577f56 | |
parent | 95745b6cf9a5ed229c5494bb0b531215dec38dbe (diff) |
extend attributes proto for Prefix SID support
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
-rw-r--r-- | api/attribute.pb.go | 589 | ||||
-rw-r--r-- | api/attribute.proto | 734 | ||||
-rw-r--r-- | internal/pkg/apiutil/attribute.go | 113 | ||||
-rw-r--r-- | internal/pkg/apiutil/attribute_test.go | 103 | ||||
-rw-r--r-- | pkg/packet/bgp/bgp.go | 107 | ||||
-rw-r--r-- | pkg/packet/bgp/prefix_sid.go | 143 | ||||
-rw-r--r-- | pkg/packet/bgp/prefix_sid_test.go | 34 | ||||
-rw-r--r-- | pkg/server/fsm.go | 20 |
8 files changed, 1260 insertions, 583 deletions
diff --git a/api/attribute.pb.go b/api/attribute.pb.go index fe9d9242..8086432e 100644 --- a/api/attribute.pb.go +++ b/api/attribute.pb.go @@ -100,6 +100,12 @@ It has these top-level messages: LsAttributePrefix LsAttribute UnknownAttribute + SRv6StructureSubSubTLV + SRv6SIDFlags + SRv6TLV + SRv6InformationSubTLV + SRv6L3ServiceTLV + PrefixSID MultiProtocolCapability RouteRefreshCapability CarryingLabelInfoCapability @@ -2912,6 +2918,180 @@ func (m *UnknownAttribute) GetValue() []byte { return nil } +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1 +type SRv6StructureSubSubTLV struct { + LocalBlockLength uint32 `protobuf:"varint,1,opt,name=local_block_length,json=localBlockLength" json:"local_block_length,omitempty"` + LocalNodeLength uint32 `protobuf:"varint,2,opt,name=local_node_length,json=localNodeLength" json:"local_node_length,omitempty"` + FunctionLength uint32 `protobuf:"varint,3,opt,name=function_length,json=functionLength" json:"function_length,omitempty"` + ArgumentLength uint32 `protobuf:"varint,4,opt,name=argument_length,json=argumentLength" json:"argument_length,omitempty"` + TranspositionLength uint32 `protobuf:"varint,5,opt,name=transposition_length,json=transpositionLength" json:"transposition_length,omitempty"` + TranspositionOffset uint32 `protobuf:"varint,6,opt,name=transposition_offset,json=transpositionOffset" json:"transposition_offset,omitempty"` +} + +func (m *SRv6StructureSubSubTLV) Reset() { *m = SRv6StructureSubSubTLV{} } +func (m *SRv6StructureSubSubTLV) String() string { return proto.CompactTextString(m) } +func (*SRv6StructureSubSubTLV) ProtoMessage() {} +func (*SRv6StructureSubSubTLV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{90} } + +func (m *SRv6StructureSubSubTLV) GetLocalBlockLength() uint32 { + if m != nil { + return m.LocalBlockLength + } + return 0 +} + +func (m *SRv6StructureSubSubTLV) GetLocalNodeLength() uint32 { + if m != nil { + return m.LocalNodeLength + } + return 0 +} + +func (m *SRv6StructureSubSubTLV) GetFunctionLength() uint32 { + if m != nil { + return m.FunctionLength + } + return 0 +} + +func (m *SRv6StructureSubSubTLV) GetArgumentLength() uint32 { + if m != nil { + return m.ArgumentLength + } + return 0 +} + +func (m *SRv6StructureSubSubTLV) GetTranspositionLength() uint32 { + if m != nil { + return m.TranspositionLength + } + return 0 +} + +func (m *SRv6StructureSubSubTLV) GetTranspositionOffset() uint32 { + if m != nil { + return m.TranspositionOffset + } + return 0 +} + +type SRv6SIDFlags struct { + // Placeholder for future sid flags + Flag_1 bool `protobuf:"varint,1,opt,name=flag_1,json=flag1" json:"flag_1,omitempty"` +} + +func (m *SRv6SIDFlags) Reset() { *m = SRv6SIDFlags{} } +func (m *SRv6SIDFlags) String() string { return proto.CompactTextString(m) } +func (*SRv6SIDFlags) ProtoMessage() {} +func (*SRv6SIDFlags) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{91} } + +func (m *SRv6SIDFlags) GetFlag_1() bool { + if m != nil { + return m.Flag_1 + } + return false +} + +type SRv6TLV struct { + Tlv []*google_protobuf.Any `protobuf:"bytes,1,rep,name=tlv" json:"tlv,omitempty"` +} + +func (m *SRv6TLV) Reset() { *m = SRv6TLV{} } +func (m *SRv6TLV) String() string { return proto.CompactTextString(m) } +func (*SRv6TLV) ProtoMessage() {} +func (*SRv6TLV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{92} } + +func (m *SRv6TLV) GetTlv() []*google_protobuf.Any { + if m != nil { + return m.Tlv + } + return nil +} + +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1 +type SRv6InformationSubTLV struct { + Sid []byte `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + Flags *SRv6SIDFlags `protobuf:"bytes,2,opt,name=flags" json:"flags,omitempty"` + EndpointBehavior uint32 `protobuf:"varint,3,opt,name=endpoint_behavior,json=endpointBehavior" json:"endpoint_behavior,omitempty"` + // SRv6TLV is one of: + // - SRv6StructureSubSubTLV + SubSubTlvs map[uint32]*SRv6TLV `protobuf:"bytes,4,rep,name=sub_sub_tlvs,json=subSubTlvs" json:"sub_sub_tlvs,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *SRv6InformationSubTLV) Reset() { *m = SRv6InformationSubTLV{} } +func (m *SRv6InformationSubTLV) String() string { return proto.CompactTextString(m) } +func (*SRv6InformationSubTLV) ProtoMessage() {} +func (*SRv6InformationSubTLV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{93} } + +func (m *SRv6InformationSubTLV) GetSid() []byte { + if m != nil { + return m.Sid + } + return nil +} + +func (m *SRv6InformationSubTLV) GetFlags() *SRv6SIDFlags { + if m != nil { + return m.Flags + } + return nil +} + +func (m *SRv6InformationSubTLV) GetEndpointBehavior() uint32 { + if m != nil { + return m.EndpointBehavior + } + return 0 +} + +func (m *SRv6InformationSubTLV) GetSubSubTlvs() map[uint32]*SRv6TLV { + if m != nil { + return m.SubSubTlvs + } + return nil +} + +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2 +type SRv6L3ServiceTLV struct { + // SRv6TLV is one of: + // - SRv6InformationSubTLV + SubTlvs map[uint32]*SRv6TLV `protobuf:"bytes,1,rep,name=sub_tlvs,json=subTlvs" json:"sub_tlvs,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *SRv6L3ServiceTLV) Reset() { *m = SRv6L3ServiceTLV{} } +func (m *SRv6L3ServiceTLV) String() string { return proto.CompactTextString(m) } +func (*SRv6L3ServiceTLV) ProtoMessage() {} +func (*SRv6L3ServiceTLV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{94} } + +func (m *SRv6L3ServiceTLV) GetSubTlvs() map[uint32]*SRv6TLV { + if m != nil { + return m.SubTlvs + } + return nil +} + +// https://tools.ietf.org/html/rfc8669 +type PrefixSID struct { + // tlv is one of: + // - IndexLabelTLV Type 1 (not yet implemented) + // - OriginatorSRGBTLV Type 3 (not yet implemented) + // - SRv6L3ServiceTLV Type 5 + // - SRv6L2ServiceTLV Type 6 (not yet implemented) + Tlvs []*google_protobuf.Any `protobuf:"bytes,1,rep,name=tlvs" json:"tlvs,omitempty"` +} + +func (m *PrefixSID) Reset() { *m = PrefixSID{} } +func (m *PrefixSID) String() string { return proto.CompactTextString(m) } +func (*PrefixSID) ProtoMessage() {} +func (*PrefixSID) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{95} } + +func (m *PrefixSID) GetTlvs() []*google_protobuf.Any { + if m != nil { + return m.Tlvs + } + return nil +} + func init() { proto.RegisterType((*OriginAttribute)(nil), "gobgpapi.OriginAttribute") proto.RegisterType((*AsSegment)(nil), "gobgpapi.AsSegment") @@ -3003,202 +3183,227 @@ func init() { proto.RegisterType((*LsAttributePrefix)(nil), "gobgpapi.LsAttributePrefix") proto.RegisterType((*LsAttribute)(nil), "gobgpapi.LsAttribute") proto.RegisterType((*UnknownAttribute)(nil), "gobgpapi.UnknownAttribute") + proto.RegisterType((*SRv6StructureSubSubTLV)(nil), "gobgpapi.SRv6StructureSubSubTLV") + proto.RegisterType((*SRv6SIDFlags)(nil), "gobgpapi.SRv6SIDFlags") + proto.RegisterType((*SRv6TLV)(nil), "gobgpapi.SRv6TLV") + proto.RegisterType((*SRv6InformationSubTLV)(nil), "gobgpapi.SRv6InformationSubTLV") + proto.RegisterType((*SRv6L3ServiceTLV)(nil), "gobgpapi.SRv6L3ServiceTLV") + proto.RegisterType((*PrefixSID)(nil), "gobgpapi.PrefixSID") proto.RegisterEnum("gobgpapi.LsNLRIType", LsNLRIType_name, LsNLRIType_value) } func init() { proto.RegisterFile("attribute.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 3047 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcd, 0x73, 0x1b, 0xc7, - 0xb1, 0x7f, 0x00, 0x48, 0x0a, 0x68, 0x10, 0x1f, 0x5c, 0x52, 0x2c, 0x90, 0x92, 0x2c, 0xbd, 0x95, - 0x3f, 0xf8, 0x24, 0x8b, 0x7e, 0xa6, 0x68, 0xbc, 0x27, 0xbb, 0xfc, 0x5e, 0x41, 0x24, 0x25, 0x23, - 0x02, 0x29, 0x7a, 0x41, 0xd1, 0xc9, 0x25, 0x9b, 0xc1, 0xee, 0x70, 0x39, 0xe1, 0x62, 0x77, 0x3d, - 0xb3, 0x4b, 0x8a, 0xa7, 0x54, 0xe5, 0x90, 0x2a, 0x57, 0x2a, 0xa9, 0x9c, 0x52, 0xae, 0xf2, 0x25, - 0xa7, 0xfc, 0x09, 0xf9, 0x1f, 0xf2, 0x07, 0xe5, 0x9e, 0x9a, 0xaf, 0xfd, 0x00, 0x41, 0x51, 0xb2, - 0xec, 0x2a, 0xdd, 0xb6, 0x7b, 0x7a, 0x7a, 0x7a, 0x7a, 0x7e, 0xd3, 0xdd, 0xd3, 0x0b, 0x2d, 0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 0x39, 0x51, 0xab, 0x3c, 0xfc, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7b, - 0x1f, 0x28, 0x90, 0xf7, 0x24, 0x00, 0x00, + // 3360 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcd, 0x6f, 0x1b, 0x49, + 0x76, 0x0f, 0x49, 0x59, 0x26, 0x1f, 0x3f, 0xd5, 0x92, 0x05, 0x4a, 0x1e, 0x8f, 0x9d, 0x9e, 0x9d, + 0xb1, 0x62, 0xcf, 0x68, 0x62, 0x59, 0xc3, 0xec, 0xcc, 0x60, 0x13, 0xd0, 0x92, 0xec, 0x65, 0x4c, + 0xc9, 0x9a, 0xa6, 0xac, 0x4d, 0x2e, 0xe9, 0x34, 0xbb, 0x8b, 0xad, 0x8a, 0x9a, 0xdd, 0xbd, 0x55, + 0xd5, 0xb4, 0x75, 0x0a, 0x90, 0x43, 0x80, 0x45, 0x90, 0x20, 0xa7, 0x60, 0x81, 0xbd, 0xe4, 0x92, + 0x00, 0xc9, 0x1f, 0x90, 0xff, 0x21, 0x7f, 0x50, 0xee, 0x41, 0x7d, 0xf5, 0x07, 0x45, 0x49, 0xf6, + 0x78, 0x06, 0xf0, 0xad, 0xeb, 0xd5, 0xab, 0x57, 0xaf, 0x5e, 0xfd, 0xea, 0x7d, 0x35, 0xb4, 0x1d, + 0xc6, 0x08, 0x1e, 0x27, 0x0c, 0x6d, 0xc7, 0x24, 0x62, 0x91, 0x51, 0xf5, 0xa3, 0xb1, 0x1f, 0x3b, + 0x31, 0xde, 0xdc, 0xf0, 0xa3, 0xc8, 0x0f, 0xd0, 0xd7, 0x82, 0x3e, 0x4e, 0x26, 0x5f, 0x3b, 0xe1, + 0x85, 0x64, 0xda, 0xac, 0x0b, 0x26, 0x39, 0x30, 0xff, 0x04, 0xda, 0xaf, 0x08, 0xf6, 0x71, 0xd8, + 0xd7, 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cc, 0xa7, 0x3d, 0xee, 0x08, 0x85, 0x17, 0xb5, + 0x7d, 0x12, 0x25, 0xb1, 0xb8, 0x9c, 0xa6, 0x05, 0x82, 0xf4, 0x82, 0x53, 0x8c, 0x47, 0xb0, 0xe2, + 0xc9, 0x1a, 0xce, 0x66, 0xc8, 0x56, 0x91, 0x41, 0xfe, 0x89, 0x69, 0xab, 0x89, 0x13, 0xa4, 0x42, + 0xc7, 0x3d, 0x00, 0xec, 0xc7, 0x9a, 0xa9, 0x2a, 0x7f, 0x02, 0x60, 0x3f, 0xce, 0x22, 0x8b, 0xc2, + 0x40, 0xad, 0x80, 0x81, 0x4f, 0xa0, 0x36, 0x76, 0x42, 0xef, 0x0d, 0xf6, 0xd8, 0x59, 0x17, 0x44, + 0x5d, 0x92, 0x11, 0x8c, 0x27, 0xb0, 0x46, 0x10, 0x45, 0x64, 0xe6, 0x8c, 0x03, 0x64, 0x67, 0x8c, + 0x75, 0xc1, 0xb8, 0x9a, 0xcd, 0x3d, 0xcb, 0x2f, 0x49, 0x42, 0x39, 0x81, 0xbc, 0xdc, 0x92, 0xc6, + 0x83, 0x0a, 0x5f, 0x92, 0xcd, 0x65, 0x4b, 0xb6, 0xa0, 0xc3, 0x21, 0xe4, 0xfd, 0x9d, 0xe3, 0xa2, + 0xd0, 0xbd, 0xb0, 0x29, 0xf6, 0xba, 0x4d, 0x71, 0x80, 0x16, 0x25, 0x7d, 0x4d, 0x1e, 0x61, 0x59, + 0x43, 0x93, 0xc0, 0xa7, 0xdd, 0x96, 0xf8, 0xb1, 0x23, 0x07, 0xe6, 0x3f, 0x94, 0x60, 0x25, 0x87, + 0x0e, 0xd5, 0x91, 0x7a, 0x02, 0xfc, 0xf8, 0x76, 0x96, 0x9c, 0xd6, 0x8b, 0x6d, 0x29, 0xed, 0x68, + 0xad, 0x2a, 0xf6, 0x63, 0xe9, 0x72, 0x33, 0x23, 0x95, 0x0b, 0x46, 0x32, 0x05, 0xc6, 0x55, 0xeb, + 0x8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0xa8, 0x64, 0xb8, 0xaa, 0x87, 0xd0, + 0xf8, 0x29, 0xf5, 0xfc, 0x06, 0x6a, 0xca, 0xbd, 0x0c, 0xf6, 0xdf, 0x3d, 0x69, 0x7f, 0x44, 0xc5, + 0x0f, 0x1e, 0xd5, 0x73, 0x37, 0x56, 0xa1, 0x3d, 0x1c, 0xd9, 0x7c, 0x68, 0xbf, 0x3e, 0x7a, 0x79, + 0xf4, 0xea, 0x37, 0x47, 0x9d, 0x3f, 0x32, 0x3a, 0xd0, 0xd0, 0xc4, 0xa3, 0x57, 0xfb, 0x07, 0x9d, + 0x52, 0x9e, 0x32, 0x1c, 0x1c, 0xbd, 0xec, 0x94, 0x8d, 0x3b, 0xb0, 0xa2, 0x29, 0xc7, 0xd6, 0xc1, + 0xf3, 0xc1, 0x5f, 0xd9, 0xa7, 0xbb, 0x9d, 0xca, 0x22, 0x72, 0xaf, 0xb3, 0x34, 0x5e, 0x16, 0x8a, + 0x3c, 0xfd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x60, 0xbf, 0x64, 0x89, 0x28, 0x00, 0x00, } diff --git a/api/attribute.proto b/api/attribute.proto index 11f075f1..acbffdf0 100644 --- a/api/attribute.proto +++ b/api/attribute.proto @@ -26,233 +26,214 @@ import "gobgp.proto"; package gobgpapi; -message OriginAttribute { - uint32 origin = 1; -} +message OriginAttribute { uint32 origin = 1; } message AsSegment { - uint32 type = 1; - repeated uint32 numbers = 2; + uint32 type = 1; + repeated uint32 numbers = 2; } -message AsPathAttribute { - repeated AsSegment segments = 1; -} +message AsPathAttribute { repeated AsSegment segments = 1; } -message NextHopAttribute { - string next_hop = 1; -} +message NextHopAttribute { string next_hop = 1; } -message MultiExitDiscAttribute { - uint32 med = 1; -} +message MultiExitDiscAttribute { uint32 med = 1; } -message LocalPrefAttribute { - uint32 local_pref = 1; -} +message LocalPrefAttribute { uint32 local_pref = 1; } -message AtomicAggregateAttribute { -} +message AtomicAggregateAttribute {} message AggregatorAttribute { - uint32 as = 2; - string address = 3; + uint32 as = 2; + string address = 3; } -message CommunitiesAttribute { - repeated uint32 communities = 1; -} +message CommunitiesAttribute { repeated uint32 communities = 1; } -message OriginatorIdAttribute { - string id = 1; -} +message OriginatorIdAttribute { string id = 1; } -message ClusterListAttribute { - repeated string ids = 1; -} +message ClusterListAttribute { repeated string ids = 1; } // IPAddressPrefix represents the NLRI for: // - AFI=1, SAFI=1 // - AFI=2, SAFI=1 message IPAddressPrefix { - uint32 prefix_len = 1; - string prefix = 2; + uint32 prefix_len = 1; + string prefix = 2; } // LabeledIPAddressPrefix represents the NLRI for: // - AFI=1, SAFI=4 // - AFI=2, SAFI=4 message LabeledIPAddressPrefix { - repeated uint32 labels = 1; - uint32 prefix_len = 2; - string prefix = 3; + repeated uint32 labels = 1; + uint32 prefix_len = 2; + string prefix = 3; } // EncapsulationNLRI represents the NLRI for: // - AFI=1, SAFI=7 // - AFI=2, SAFI=7 -message EncapsulationNLRI { - string address = 1; -} +message EncapsulationNLRI { string address = 1; } message RouteDistinguisherTwoOctetAS { - uint32 admin = 1; - uint32 assigned = 2; + uint32 admin = 1; + uint32 assigned = 2; } message RouteDistinguisherIPAddress { - string admin = 1; - uint32 assigned = 2; + string admin = 1; + uint32 assigned = 2; } message RouteDistinguisherFourOctetAS { - uint32 admin = 1; - uint32 assigned = 2; + uint32 admin = 1; + uint32 assigned = 2; } message EthernetSegmentIdentifier { - uint32 type = 1; - bytes value = 2; + uint32 type = 1; + bytes value = 2; } // EVPNEthernetAutoDiscoveryRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=1 message EVPNEthernetAutoDiscoveryRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - EthernetSegmentIdentifier esi = 2; - uint32 ethernet_tag = 3; - uint32 label = 4; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + EthernetSegmentIdentifier esi = 2; + uint32 ethernet_tag = 3; + uint32 label = 4; } // EVPNMACIPAdvertisementRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=2 message EVPNMACIPAdvertisementRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - EthernetSegmentIdentifier esi = 2; - uint32 ethernet_tag = 3; - string mac_address = 4; - string ip_address = 5; - repeated uint32 labels = 6; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + EthernetSegmentIdentifier esi = 2; + uint32 ethernet_tag = 3; + string mac_address = 4; + string ip_address = 5; + repeated uint32 labels = 6; } // EVPNInclusiveMulticastEthernetTagRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=3 message EVPNInclusiveMulticastEthernetTagRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - uint32 ethernet_tag = 2; - string ip_address = 3; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + uint32 ethernet_tag = 2; + string ip_address = 3; } // EVPNEthernetSegmentRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=4 message EVPNEthernetSegmentRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - EthernetSegmentIdentifier esi = 2; - string ip_address = 3; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + EthernetSegmentIdentifier esi = 2; + string ip_address = 3; } // EVPNIPPrefixRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=5 message EVPNIPPrefixRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - EthernetSegmentIdentifier esi = 2; - uint32 ethernet_tag = 3; - string ip_prefix = 4; - uint32 ip_prefix_len = 5; - string gw_address = 6; - uint32 label = 7; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + EthernetSegmentIdentifier esi = 2; + uint32 ethernet_tag = 3; + string ip_prefix = 4; + uint32 ip_prefix_len = 5; + string gw_address = 6; + uint32 label = 7; } // EVPNIPMSIRoute represents the NLRI for: // - AFI=25, SAFI=70, RouteType=9 message EVPNIPMSIRoute { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - uint32 ethernet_tag = 2; - google.protobuf.Any rt = 3; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + uint32 ethernet_tag = 2; + google.protobuf.Any rt = 3; } // LabeledVPNIPAddressPrefix represents the NLRI for: // - AFI=1, SAFI=128 // - AFI=2, SAFI=128 message LabeledVPNIPAddressPrefix { - repeated uint32 labels = 1; - // One of: - // - TwoOctetAsSpecificExtended - // - IPv4AddressSpecificExtended - // - FourOctetAsSpecificExtended - google.protobuf.Any rd = 2; - uint32 prefix_len = 3; - string prefix = 4; + repeated uint32 labels = 1; + // One of: + // - TwoOctetAsSpecificExtended + // - IPv4AddressSpecificExtended + // - FourOctetAsSpecificExtended + google.protobuf.Any rd = 2; + uint32 prefix_len = 3; + string prefix = 4; } // RouteTargetMembershipNLRI represents the NLRI for: // - AFI=1, SAFI=132 message RouteTargetMembershipNLRI { - uint32 as = 1; - // One of: - // - TwoOctetAsSpecificExtended - // - IPv4AddressSpecificExtended - // - FourOctetAsSpecificExtended - google.protobuf.Any rt = 2; + uint32 as = 1; + // One of: + // - TwoOctetAsSpecificExtended + // - IPv4AddressSpecificExtended + // - FourOctetAsSpecificExtended + google.protobuf.Any rt = 2; } message FlowSpecIPPrefix { - uint32 type = 1; - uint32 prefix_len = 2; - string prefix = 3; - // IPv6 only - uint32 offset = 4; + uint32 type = 1; + uint32 prefix_len = 2; + string prefix = 3; + // IPv6 only + uint32 offset = 4; } message FlowSpecMAC { - uint32 type = 1; - string address = 2; + uint32 type = 1; + string address = 2; } message FlowSpecComponentItem { - // Operator for Numeric type, Operand for Bitmask type - uint32 op = 1; - uint64 value = 2; + // Operator for Numeric type, Operand for Bitmask type + uint32 op = 1; + uint64 value = 2; } message FlowSpecComponent { - uint32 type = 1; - repeated FlowSpecComponentItem items = 2; + uint32 type = 1; + repeated FlowSpecComponentItem items = 2; } // FlowSpecNLRI represents the NLRI for: // - AFI=1, SAFI=133 // - AFI=2, SAFI=133 message FlowSpecNLRI { - // One of: - // - FlowSpecIPPrefix - // - FlowSpecMAC - // - FlowSpecComponent - repeated google.protobuf.Any rules = 1; + // One of: + // - FlowSpecIPPrefix + // - FlowSpecMAC + // - FlowSpecComponent + repeated google.protobuf.Any rules = 1; } // VPNFlowSpecNLRI represents the NLRI for: @@ -260,399 +241,414 @@ message FlowSpecNLRI { // - AFI=2, SAFI=134 // - AFI=25, SAFI=134 message VPNFlowSpecNLRI { - // One of: - // - RouteDistinguisherTwoOctetAS - // - RouteDistinguisherIPAddressAS - // - RouteDistinguisherFourOctetAS - google.protobuf.Any rd = 1; - // One of: - // - FlowSpecIPPrefix - // - FlowSpecMAC - // - FlowSpecComponent - repeated google.protobuf.Any rules = 2; + // One of: + // - RouteDistinguisherTwoOctetAS + // - RouteDistinguisherIPAddressAS + // - RouteDistinguisherFourOctetAS + google.protobuf.Any rd = 1; + // One of: + // - FlowSpecIPPrefix + // - FlowSpecMAC + // - FlowSpecComponent + repeated google.protobuf.Any rules = 2; } // OpaqueNLRI represents the NLRI for: // - AFI=16397, SAFI=241 message OpaqueNLRI { - bytes key = 1; - bytes value = 2; + bytes key = 1; + bytes value = 2; } message LsNodeDescriptor { - uint32 asn = 1; - uint32 bgp_ls_id = 2; - uint32 ospf_area_id = 3; - bool pseudonode = 4; - string igp_router_id = 5; + uint32 asn = 1; + uint32 bgp_ls_id = 2; + uint32 ospf_area_id = 3; + bool pseudonode = 4; + string igp_router_id = 5; } message LsLinkDescriptor { - uint32 link_local_id = 1; - uint32 link_remote_id = 2; - string interface_addr_ipv4 = 3; - string neighbor_addr_ipv4 = 4; - string interface_addr_ipv6 = 5; - string neighbor_addr_ipv6 = 6; + uint32 link_local_id = 1; + uint32 link_remote_id = 2; + string interface_addr_ipv4 = 3; + string neighbor_addr_ipv4 = 4; + string interface_addr_ipv6 = 5; + string neighbor_addr_ipv6 = 6; } message LsPrefixDescriptor { - repeated string ip_reachability = 1; - string ospf_route_type = 2; + repeated string ip_reachability = 1; + string ospf_route_type = 2; } -message LsNodeNLRI { - LsNodeDescriptor local_node = 1; -} +message LsNodeNLRI { LsNodeDescriptor local_node = 1; } message LsLinkNLRI { - LsNodeDescriptor local_node = 1; - LsNodeDescriptor remote_node = 2; - LsLinkDescriptor link_descriptor = 3; + LsNodeDescriptor local_node = 1; + LsNodeDescriptor remote_node = 2; + LsLinkDescriptor link_descriptor = 3; } message LsPrefixV4NLRI { - LsNodeDescriptor local_node = 1; - LsPrefixDescriptor prefix_descriptor = 2; + LsNodeDescriptor local_node = 1; + LsPrefixDescriptor prefix_descriptor = 2; } message LsPrefixV6NLRI { - LsNodeDescriptor local_node = 1; - LsPrefixDescriptor prefix_descriptor = 2; + LsNodeDescriptor local_node = 1; + LsPrefixDescriptor prefix_descriptor = 2; } // Based om RFC 7752, Table 1. enum LsNLRIType { - LS_NLRI_UNKNOWN = 0; - LS_NLRI_NODE = 1; - LS_NLRI_LINK = 2; - LS_NLRI_PREFIX_V4 = 3; - LS_NLRI_PREFIX_V6 = 4; + LS_NLRI_UNKNOWN = 0; + LS_NLRI_NODE = 1; + LS_NLRI_LINK = 2; + LS_NLRI_PREFIX_V4 = 3; + LS_NLRI_PREFIX_V6 = 4; } // LsAddrPrefix represents the NLRI for: // - AFI=16388, SAFI=71 message LsAddrPrefix { - LsNLRIType type = 1; - // One of: - // - LsNodeNLRI - // - LsLinkNLRI - // - LsPrefixV4NLRI - // - LsPrefixV6NLRI - google.protobuf.Any nlri = 2; + LsNLRIType type = 1; + // One of: + // - LsNodeNLRI + // - LsLinkNLRI + // - LsPrefixV4NLRI + // - LsPrefixV6NLRI + google.protobuf.Any nlri = 2; } message MpReachNLRIAttribute { - gobgpapi.Family family = 1; - repeated string next_hops = 2; - // Each NLRI must be one of: - // - IPAddressPrefix - // - LabeledIPAddressPrefix - // - EncapsulationNLRI - // - EVPNEthernetAutoDiscoveryRoute - // - EVPNMACIPAdvertisementRoute - // - EVPNInclusiveMulticastEthernetTagRoute - // - EVPNEthernetSegmentRoute - // - EVPNIPPrefixRoute - // - EVPNIPMSIRoute - // - LabeledVPNIPAddressPrefix - // - RouteTargetMembershipNLRI - // - FlowSpecNLRI - // - VPNFlowSpecNLRI - // - OpaqueNLRI - // - LsAddrPrefix - repeated google.protobuf.Any nlris = 3; + gobgpapi.Family family = 1; + repeated string next_hops = 2; + // Each NLRI must be one of: + // - IPAddressPrefix + // - LabeledIPAddressPrefix + // - EncapsulationNLRI + // - EVPNEthernetAutoDiscoveryRoute + // - EVPNMACIPAdvertisementRoute + // - EVPNInclusiveMulticastEthernetTagRoute + // - EVPNEthernetSegmentRoute + // - EVPNIPPrefixRoute + // - EVPNIPMSIRoute + // - LabeledVPNIPAddressPrefix + // - RouteTargetMembershipNLRI + // - FlowSpecNLRI + // - VPNFlowSpecNLRI + // - OpaqueNLRI + // - LsAddrPrefix + repeated google.protobuf.Any nlris = 3; } message MpUnreachNLRIAttribute { - gobgpapi.Family family = 1; - // The same as NLRI field of MpReachNLRIAttribute - repeated google.protobuf.Any nlris = 3; + gobgpapi.Family family = 1; + // The same as NLRI field of MpReachNLRIAttribute + repeated google.protobuf.Any nlris = 3; } message TwoOctetAsSpecificExtended { - bool is_transitive = 1; - uint32 sub_type = 2; - uint32 as = 3; - uint32 local_admin = 4; + bool is_transitive = 1; + uint32 sub_type = 2; + uint32 as = 3; + uint32 local_admin = 4; } message IPv4AddressSpecificExtended { - bool is_transitive = 1; - uint32 sub_type = 2; - string address = 3; - uint32 local_admin = 4; + bool is_transitive = 1; + uint32 sub_type = 2; + string address = 3; + uint32 local_admin = 4; } message FourOctetAsSpecificExtended { - bool is_transitive = 1; - uint32 sub_type = 2; - uint32 as = 3; - uint32 local_admin = 4; + bool is_transitive = 1; + uint32 sub_type = 2; + uint32 as = 3; + uint32 local_admin = 4; } -message ValidationExtended { - uint32 state = 1; -} +message ValidationExtended { uint32 state = 1; } -message ColorExtended { - uint32 color = 1; -} +message ColorExtended { uint32 color = 1; } -message EncapExtended { - uint32 tunnel_type = 1; -} +message EncapExtended { uint32 tunnel_type = 1; } -message DefaultGatewayExtended { -} +message DefaultGatewayExtended {} message OpaqueExtended { - bool is_transitive = 1; - bytes value = 3; + bool is_transitive = 1; + bytes value = 3; } message ESILabelExtended { - bool is_single_active = 1; - uint32 label = 2; + bool is_single_active = 1; + uint32 label = 2; } -message ESImportRouteTarget { - string es_import = 1; -} +message ESImportRouteTarget { string es_import = 1; } message MacMobilityExtended { - bool is_sticky = 1; - uint32 sequence_num = 2; + bool is_sticky = 1; + uint32 sequence_num = 2; } -message RouterMacExtended { - string mac = 1; -} +message RouterMacExtended { string mac = 1; } message TrafficRateExtended { - uint32 as = 1; - float rate = 2; + uint32 as = 1; + float rate = 2; } message TrafficActionExtended { - bool terminal = 1; - bool sample = 2; + bool terminal = 1; + bool sample = 2; } message RedirectTwoOctetAsSpecificExtended { - uint32 as = 1; - uint32 local_admin = 2; + uint32 as = 1; + uint32 local_admin = 2; } message RedirectIPv4AddressSpecificExtended { - string address = 1; - uint32 local_admin = 2; + string address = 1; + uint32 local_admin = 2; } message RedirectFourOctetAsSpecificExtended { - uint32 as = 1; - uint32 local_admin = 2; + uint32 as = 1; + uint32 local_admin = 2; } -message TrafficRemarkExtended { - uint32 dscp = 1; -} +message TrafficRemarkExtended { uint32 dscp = 1; } message UnknownExtended { - uint32 type = 1; - bytes value = 2; + uint32 type = 1; + bytes value = 2; } message ExtendedCommunitiesAttribute { - // Each Community must be one of: - // - TwoOctetAsSpecificExtended - // - IPv4AddressSpecificExtended - // - FourOctetAsSpecificExtended - // - OpaqueExtended - // - ESILabelExtended - // - MacMobilityExtended - // - RouterMacExtended - // - TrafficRateExtended - // - TrafficActionExtended - // - RedirectTwoOctetAsSpecificExtended - // - RedirectIPv4AddressSpecificExtended - // - RedirectFourOctetAsSpecificExtended - // - TrafficRemarkExtended - // - UnknownExtended - repeated google.protobuf.Any communities = 1; -} - -message As4PathAttribute { - repeated AsSegment segments = 1; -} + // Each Community must be one of: + // - TwoOctetAsSpecificExtended + // - IPv4AddressSpecificExtended + // - FourOctetAsSpecificExtended + // - OpaqueExtended + // - ESILabelExtended + // - MacMobilityExtended + // - RouterMacExtended + // - TrafficRateExtended + // - TrafficActionExtended + // - RedirectTwoOctetAsSpecificExtended + // - RedirectIPv4AddressSpecificExtended + // - RedirectFourOctetAsSpecificExtended + // - TrafficRemarkExtended + // - UnknownExtended + repeated google.protobuf.Any communities = 1; +} + +message As4PathAttribute { repeated AsSegment segments = 1; } message As4AggregatorAttribute { - uint32 as = 2; - string address = 3; + uint32 as = 2; + string address = 3; } message PmsiTunnelAttribute { - uint32 flags = 1; - uint32 type = 2; - uint32 label = 3; - bytes id = 4; + uint32 flags = 1; + uint32 type = 2; + uint32 label = 3; + bytes id = 4; } message TunnelEncapSubTLVEncapsulation { - uint32 key = 1; - bytes cookie = 2; + uint32 key = 1; + bytes cookie = 2; } -message TunnelEncapSubTLVProtocol { - uint32 protocol = 1; -} +message TunnelEncapSubTLVProtocol { uint32 protocol = 1; } -message TunnelEncapSubTLVColor { - uint32 color = 1; -} +message TunnelEncapSubTLVColor { uint32 color = 1; } message TunnelEncapSubTLVUnknown { - uint32 type = 1; - bytes value = 2; + uint32 type = 1; + bytes value = 2; } message TunnelEncapTLV { - uint32 type = 1; - // Each TLV must be one of: - // - TunnelEncapSubTLVEncapsulation - // - TunnelEncapSubTLVProtocol - // - TunnelEncapSubTLVColor - // - TunnelEncapSubTLVUnknown - repeated google.protobuf.Any tlvs = 2; + uint32 type = 1; + // Each TLV must be one of: + // - TunnelEncapSubTLVEncapsulation + // - TunnelEncapSubTLVProtocol + // - TunnelEncapSubTLVColor + // - TunnelEncapSubTLVUnknown + repeated google.protobuf.Any tlvs = 2; } -message TunnelEncapAttribute { - repeated TunnelEncapTLV tlvs = 1; -} +message TunnelEncapAttribute { repeated TunnelEncapTLV tlvs = 1; } message IPv6AddressSpecificExtended { - bool is_transitive = 1; - uint32 sub_type = 2; - string address = 3; - uint32 local_admin = 4; + bool is_transitive = 1; + uint32 sub_type = 2; + string address = 3; + uint32 local_admin = 4; } message RedirectIPv6AddressSpecificExtended { - string address = 1; - uint32 local_admin = 2; + string address = 1; + uint32 local_admin = 2; } message IP6ExtendedCommunitiesAttribute { - // Each Community must be one of: - // - IPv6AddressSpecificExtended - // - RedirectIPv6AddressSpecificExtended - repeated google.protobuf.Any communities = 1; + // Each Community must be one of: + // - IPv6AddressSpecificExtended + // - RedirectIPv6AddressSpecificExtended + repeated google.protobuf.Any communities = 1; } -message AigpTLVIGPMetric { - uint64 metric = 1; -} +message AigpTLVIGPMetric { uint64 metric = 1; } message AigpTLVUnknown { - uint32 type = 1; - bytes value = 2; + uint32 type = 1; + bytes value = 2; } message AigpAttribute { - // Each TLV must be one of: - // - AigpTLVIGPMetric - // - AigpTLVUnknown - repeated google.protobuf.Any tlvs = 1; + // Each TLV must be one of: + // - AigpTLVIGPMetric + // - AigpTLVUnknown + repeated google.protobuf.Any tlvs = 1; } message LargeCommunity { - uint32 global_admin = 1; - uint32 local_data1 = 2; - uint32 local_data2 = 3; + uint32 global_admin = 1; + uint32 local_data1 = 2; + uint32 local_data2 = 3; } -message LargeCommunitiesAttribute { - repeated LargeCommunity communities = 1; -} +message LargeCommunitiesAttribute { repeated LargeCommunity communities = 1; } message LsNodeFlags { - bool overload = 1; - bool attached = 2; - bool external = 3; - bool abr = 4; - bool router = 5; - bool v6 = 6; + bool overload = 1; + bool attached = 2; + bool external = 3; + bool abr = 4; + bool router = 5; + bool v6 = 6; } message LsIGPFlags { - bool down = 1; - bool no_unicast = 2; - bool local_address = 3; - bool propagate_nssa = 4; + bool down = 1; + bool no_unicast = 2; + bool local_address = 3; + bool propagate_nssa = 4; } message LsSrRange { - uint32 begin = 1; - uint32 end = 2; + uint32 begin = 1; + uint32 end = 2; } message LsSrCapabilities { - bool ipv4_supported = 1; - bool ipv6_supported = 2; - repeated LsSrRange ranges = 3; + bool ipv4_supported = 1; + bool ipv6_supported = 2; + repeated LsSrRange ranges = 3; } -message LsSrLocalBlock { - repeated LsSrRange ranges = 1; -} +message LsSrLocalBlock { repeated LsSrRange ranges = 1; } message LsAttributeNode { - string name = 1; - LsNodeFlags flags = 2; - string local_router_id = 3; - string local_router_id_v6 = 4; - bytes isis_area = 5; - bytes opaque = 6; + string name = 1; + LsNodeFlags flags = 2; + string local_router_id = 3; + string local_router_id_v6 = 4; + bytes isis_area = 5; + bytes opaque = 6; - LsSrCapabilities sr_capabilities = 7; - bytes sr_algorithms = 8; - LsSrLocalBlock sr_local_block = 9; + LsSrCapabilities sr_capabilities = 7; + bytes sr_algorithms = 8; + LsSrLocalBlock sr_local_block = 9; } message LsAttributeLink { - string name = 1; - string local_router_id = 2; - string local_router_id_v6 = 3; - string remote_router_id = 4; - string remote_router_id_v6 = 5; - uint32 admin_group = 6; - uint32 default_te_metric = 7; - uint32 igp_metric = 8; - bytes opaque = 9; + string name = 1; + string local_router_id = 2; + string local_router_id_v6 = 3; + string remote_router_id = 4; + string remote_router_id_v6 = 5; + uint32 admin_group = 6; + uint32 default_te_metric = 7; + uint32 igp_metric = 8; + bytes opaque = 9; - float bandwidth = 10; - float reservable_bandwidth = 11; - repeated float unreserved_bandwidth = 12; + float bandwidth = 10; + float reservable_bandwidth = 11; + repeated float unreserved_bandwidth = 12; - uint32 sr_adjacency_sid = 13; - repeated uint32 srlgs = 14; + uint32 sr_adjacency_sid = 13; + repeated uint32 srlgs = 14; } message LsAttributePrefix { - LsIGPFlags igp_flags = 1; - bytes opaque = 2; + LsIGPFlags igp_flags = 1; + bytes opaque = 2; - uint32 sr_prefix_sid = 3; + uint32 sr_prefix_sid = 3; } message LsAttribute { - LsAttributeNode node = 1; - LsAttributeLink link = 2; - LsAttributePrefix prefix = 3; + LsAttributeNode node = 1; + LsAttributeLink link = 2; + LsAttributePrefix prefix = 3; } message UnknownAttribute { - uint32 flags = 1; - uint32 type = 2; - bytes value = 3; -} + uint32 flags = 1; + uint32 type = 2; + bytes value = 3; +} + +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1 +message SRv6StructureSubSubTLV { + uint32 local_block_length = 1; + uint32 local_node_length = 2; + uint32 function_length = 3; + uint32 argument_length = 4; + uint32 transposition_length = 5; + uint32 transposition_offset = 6; +} + +message SRv6SIDFlags { + // Placeholder for future sid flags + bool flag_1 = 1; +} + +message SRv6TLV { repeated google.protobuf.Any tlv = 1; } + +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1 +message SRv6InformationSubTLV { + bytes sid = 1; + SRv6SIDFlags flags = 2; + uint32 endpoint_behavior = 3; + // SRv6TLV is one of: + // - SRv6StructureSubSubTLV + map<uint32, SRv6TLV> sub_sub_tlvs = 4; +} + +// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2 +message SRv6L3ServiceTLV { + // SRv6TLV is one of: + // - SRv6InformationSubTLV + map<uint32, SRv6TLV> sub_tlvs = 1; +} + +// https://tools.ietf.org/html/rfc8669 +message PrefixSID { + // tlv is one of: + // - IndexLabelTLV Type 1 (not yet implemented) + // - OriginatorSRGBTLV Type 3 (not yet implemented) + // - SRv6L3ServiceTLV Type 5 + // - SRv6L2ServiceTLV Type 6 (not yet implemented) + repeated google.protobuf.Any tlvs = 1; +}
\ No newline at end of file diff --git a/internal/pkg/apiutil/attribute.go b/internal/pkg/apiutil/attribute.go index 1610a181..8422f3f3 100644 --- a/internal/pkg/apiutil/attribute.go +++ b/internal/pkg/apiutil/attribute.go @@ -75,6 +75,8 @@ func UnmarshalAttribute(an *any.Any) (bgp.PathAttributeInterface, error) { } } return bgp.NewPathAttributeClusterList(a.Ids), nil + case *api.PrefixSID: + return bgp.NewPathAttributePrefixSID(a) } return nil, errors.New("unexpected object") } @@ -149,6 +151,114 @@ func NewClusterListAttributeFromNative(a *bgp.PathAttributeClusterList) *api.Clu } } +func NewPrefixSIDAttributeFromNative(a *bgp.PathAttributePrefixSID) *api.PrefixSID { + psid := &api.PrefixSID{} + psid.Tlvs = MarshalSRv6TLVs(a.TLVs) + + return psid +} + +func MarshalSRv6TLVs(tlvs []bgp.PrefixSIDTLVInterface) []*any.Any { + mtlvs := make([]*any.Any, len(tlvs)) + for i, tlv := range tlvs { + var r proto.Message + switch t := tlv.(type) { + case *bgp.SRv6L3ServiceAttribute: + o := &api.SRv6L3ServiceTLV{} + o.SubTlvs = MarshalSRv6SubTLVs(t.SubTLVs) + r = o + default: + log.WithFields(log.Fields{ + "Topic": "protobuf", + "SRv6": t, + }).Warn("invalid prefix sid tlv type to marshal") + return nil + } + a, _ := ptypes.MarshalAny(r) + mtlvs[i] = a + } + + return mtlvs +} + +func MarshalSRv6SubTLVs(tlvs []bgp.PrefixSIDTLVInterface) map[uint32]*api.SRv6TLV { + mtlvs := make(map[uint32]*api.SRv6TLV) + var key uint32 + for _, tlv := range tlvs { + var r proto.Message + switch t := tlv.(type) { + case *bgp.SRv6InformationSubTLV: + o := &api.SRv6InformationSubTLV{ + EndpointBehavior: uint32(t.EndpointBehavior), + // TODO Once flags are used in RFC, add processing. + Flags: &api.SRv6SIDFlags{}, + } + o.Sid = make([]byte, len(t.SID)) + copy(o.Sid, t.SID) + o.SubSubTlvs = MarshalSRv6SubSubTLVs(t.SubSubTLVs) + // SRv6 Information Sub TLV is type 1 Sub TLV + key = 1 + r = o + default: + log.WithFields(log.Fields{ + "Topic": "protobuf", + "SRv6": t, + }).Warn("invalid prefix sid sub tlv type to marshal") + return nil + } + a, _ := ptypes.MarshalAny(r) + tlvs, ok := mtlvs[key] + if !ok { + tlvs = &api.SRv6TLV{ + Tlv: make([]*any.Any, 0), + } + mtlvs[key] = tlvs + } + tlvs.Tlv = append(tlvs.Tlv, a) + } + + return mtlvs +} + +func MarshalSRv6SubSubTLVs(tlvs []bgp.PrefixSIDTLVInterface) map[uint32]*api.SRv6TLV { + mtlvs := make(map[uint32]*api.SRv6TLV) + var key uint32 + for _, tlv := range tlvs { + var r proto.Message + switch t := tlv.(type) { + case *bgp.SRv6SIDStructureSubSubTLV: + o := &api.SRv6StructureSubSubTLV{ + LocalBlockLength: uint32(t.LocalBlockLength), + LocalNodeLength: uint32(t.LocatorNodeLength), + FunctionLength: uint32(t.FunctionLength), + ArgumentLength: uint32(t.ArgumentLength), + TranspositionLength: uint32(t.TranspositionLength), + TranspositionOffset: uint32(t.TranspositionOffset), + } + // SRv6 SID Structure Sub Sub TLV is type 1 Sub Sub TLV + key = 1 + r = o + default: + log.WithFields(log.Fields{ + "Topic": "protobuf", + "SRv6": t, + }).Warn("invalid prefix sid sub sub tlv type to marshal") + return nil + } + a, _ := ptypes.MarshalAny(r) + tlvs, ok := mtlvs[key] + if !ok { + tlvs = &api.SRv6TLV{ + Tlv: make([]*any.Any, 0), + } + mtlvs[key] = tlvs + } + tlvs.Tlv = append(tlvs.Tlv, a) + } + + return mtlvs +} + func MarshalRD(rd bgp.RouteDistinguisherInterface) *any.Any { var r proto.Message switch v := rd.(type) { @@ -1537,7 +1647,8 @@ func unmarshalAttribute(an *any.Any) (bgp.PathAttributeInterface, error) { communities = append(communities, bgp.NewLargeCommunity(c.GlobalAdmin, c.LocalData1, c.LocalData2)) } return bgp.NewPathAttributeLargeCommunities(communities), nil - + case *api.PrefixSID: + return bgp.NewPathAttributePrefixSID(a) case *api.UnknownAttribute: return bgp.NewPathAttributeUnknown(bgp.BGPAttrFlag(a.Flags), bgp.BGPAttrType(a.Type), a.Value), nil } diff --git a/internal/pkg/apiutil/attribute_test.go b/internal/pkg/apiutil/attribute_test.go index 8b3cd1c2..a3eff1a7 100644 --- a/internal/pkg/apiutil/attribute_test.go +++ b/internal/pkg/apiutil/attribute_test.go @@ -16,6 +16,7 @@ package apiutil import ( + "bytes" "net" "testing" @@ -1579,3 +1580,105 @@ func Test_UnknownAttribute(t *testing.T) { assert.Equal(input.Type, output.Type) assert.Equal(input.Value, output.Value) } + +func TestFullCyclePrefixSID(t *testing.T) { + tests := []struct { + name string + input []byte + }{ + { + name: "srv6 prefix sid", + input: []byte{0xc0, 0x28, 0x25, 0x05, 0x00, 0x22, 0x00, 0x01, 0x00, 0x1e, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x01, 0x00, 0x06, 0x28, 0x18, 0x10, 0x00, 0x10, 0x40}, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + attribute := bgp.PathAttributePrefixSID{} + if err := attribute.DecodeFromBytes(tt.input); err != nil { + t.Fatalf("test failed with error: %+v", err) + } + // Converting from Native to API + apiPrefixSID := NewPrefixSIDAttributeFromNative(&attribute) + // Converting back from API to Native + recoveredPrefixSID, err := bgp.NewPathAttributePrefixSID(apiPrefixSID) + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + recovered, err := recoveredPrefixSID.Serialize() + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + if !bytes.Equal(tt.input, recovered) { + t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) + } + }) + } +} + +func TestFullCycleSRv6SIDStructureSubSubTLV(t *testing.T) { + tests := []struct { + name string + input []byte + }{ + { + name: "srv6 prefix sid", + input: []byte{0x01, 0x00, 0x06, 0x28, 0x18, 0x10, 0x00, 0x10, 0x40}, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + sstlv := bgp.SRv6SIDStructureSubSubTLV{} + if err := sstlv.DecodeFromBytes(tt.input); err != nil { + t.Fatalf("test failed with error: %+v", err) + } + // Converting from Native to API + apiPrefixSID := MarshalSRv6SubSubTLVs([]bgp.PrefixSIDTLVInterface{&sstlv}) + // Converting back from API to Native + _, recoveredPrefixSID, err := bgp.UnmarshalSubSubTLVs(apiPrefixSID) + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + recovered, err := recoveredPrefixSID[0].Serialize() + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + if !bytes.Equal(tt.input, recovered) { + t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) + } + }) + } +} + +func TestFullCycleSRv6InformationSubTLV(t *testing.T) { + tests := []struct { + name string + input []byte + }{ + { + name: "srv6 prefix sid informationw sub tlv", + input: []byte{0x01, 0x00, 0x1e, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x01, 0x00, 0x06, 0x28, 0x18, 0x10, 0x00, 0x10, 0x40}, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + stlv := bgp.SRv6InformationSubTLV{} + if err := stlv.DecodeFromBytes(tt.input); err != nil { + t.Fatalf("test failed with error: %+v", err) + } + // Converting from Native to API + apiPrefixSID := MarshalSRv6SubTLVs([]bgp.PrefixSIDTLVInterface{&stlv}) + // Converting back from API to Native + _, recoveredPrefixSID, err := bgp.UnmarshalSubTLVs(apiPrefixSID) + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + recovered, err := recoveredPrefixSID[0].Serialize() + if err != nil { + t.Fatalf("test failed with error: %+v", err) + } + if !bytes.Equal(tt.input, recovered) { + t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) + } + }) + } +} diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index 84604312..f72a3706 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -31,7 +31,8 @@ import ( ) type MarshallingOption struct { - AddPath map[RouteFamily]BGPAddPathMode + AddPath map[RouteFamily]BGPAddPathMode + Attributes map[BGPAttrType]bool } func IsAddPathEnabled(decode bool, f RouteFamily, options []*MarshallingOption) bool { @@ -49,6 +50,18 @@ func IsAddPathEnabled(decode bool, f RouteFamily, options []*MarshallingOption) } return false } +func IsAttributePresent(attr BGPAttrType, options []*MarshallingOption) bool { + for _, opt := range options { + if opt == nil { + continue + } + if o := opt.Attributes; o != nil { + _, ok := o[attr] + return ok + } + } + return false +} const ( AFI_IP = 1 @@ -1588,9 +1601,17 @@ type MPLSLabelStack struct { Labels []uint32 } -func (l *MPLSLabelStack) DecodeFromBytes(data []byte) error { +func (l *MPLSLabelStack) DecodeFromBytes(data []byte, options ...*MarshallingOption) error { labels := []uint32{} foundBottom := false + bottomExpected := true + if IsAttributePresent(BGP_ATTR_TYPE_PREFIX_SID, options) { + // If Update carries Prefix SID attribute then there is no a label stack, + // but just 3 bytes which are used to carry the lower portion of Prefix SID. + // There is no bottom stack indication in this case. Once 3 bytes are stored + // breaking out of the loop. + bottomExpected = false + } for len(data) >= 3 { label := uint32(data[0])<<16 | uint32(data[1])<<8 | uint32(data[2]) if label == WITHDRAW_LABEL || label == ZERO_LABEL { @@ -1599,6 +1620,11 @@ func (l *MPLSLabelStack) DecodeFromBytes(data []byte) error { } data = data[3:] labels = append(labels, label>>4) + if !bottomExpected { + // Faking found bottom. + foundBottom = true + break + } if label&1 == 1 { foundBottom = true break @@ -1613,7 +1639,7 @@ func (l *MPLSLabelStack) DecodeFromBytes(data []byte) error { return nil } -func (l *MPLSLabelStack) Serialize() ([]byte, error) { +func (l *MPLSLabelStack) Serialize(options ...*MarshallingOption) ([]byte, error) { buf := make([]byte, len(l.Labels)*3) for i, label := range l.Labels { if label == WITHDRAW_LABEL { @@ -1624,6 +1650,13 @@ func (l *MPLSLabelStack) Serialize() ([]byte, error) { buf[i*3+1] = byte((label >> 8) & 0xff) buf[i*3+2] = byte(label & 0xff) } + if IsAttributePresent(BGP_ATTR_TYPE_PREFIX_SID, options) { + // If Update carries Prefix SID attribute then there is no a label stack, + // but just 3 bytes which are used to carry the lower portion of Prefix SID. + // No need BoS bit set + return buf, nil + } + buf[len(buf)-1] |= 1 return buf, nil } @@ -1721,7 +1754,7 @@ func (l *LabeledVPNIPAddrPrefix) DecodeFromBytes(data []byte, options ...*Marsha } l.Length = uint8(data[0]) data = data[1:] - l.Labels.DecodeFromBytes(data) + l.Labels.DecodeFromBytes(data, options...) if int(l.Length)-8*(l.Labels.Len()) < 0 { l.Labels.Labels = []uint32{} } @@ -1746,7 +1779,7 @@ func (l *LabeledVPNIPAddrPrefix) Serialize(options ...*MarshallingOption) ([]byt } } buf = append(buf, l.Length) - lbuf, err := l.Labels.Serialize() + lbuf, err := l.Labels.Serialize(options...) if err != nil { return nil, err } @@ -8480,6 +8513,7 @@ var PathAttrFlags map[BGPAttrType]BGPAttrFlag = map[BGPAttrType]BGPAttrFlag{ BGP_ATTR_TYPE_AIGP: BGP_ATTR_FLAG_OPTIONAL, BGP_ATTR_TYPE_LARGE_COMMUNITY: BGP_ATTR_FLAG_TRANSITIVE | BGP_ATTR_FLAG_OPTIONAL, BGP_ATTR_TYPE_LS: BGP_ATTR_FLAG_OPTIONAL, + BGP_ATTR_TYPE_PREFIX_SID: BGP_ATTR_FLAG_TRANSITIVE | BGP_ATTR_FLAG_OPTIONAL, } // getPathAttrFlags returns BGP Path Attribute flags value from its type and @@ -9515,6 +9549,7 @@ type PathAttributeMpReachNLRI struct { } func (p *PathAttributeMpReachNLRI) DecodeFromBytes(data []byte, options ...*MarshallingOption) error { + value, err := p.PathAttribute.DecodeFromBytes(data, options...) if err != nil { return err @@ -12325,6 +12360,56 @@ func NewPathAttributeUnknown(flags BGPAttrFlag, typ BGPAttrType, value []byte) * } } +// BGPUpdateAttributes defines a map with a key as bgp attribute type +// and value as bool. Value set to true indicates that the attribute specified by the key +// exists in the bgp update. +type BGPUpdateAttributes struct { + Attribute map[BGPAttrType]bool +} + +func GetBGPUpdateAttributes(data []byte) map[BGPAttrType]bool { + m := make(map[BGPAttrType]bool) + for p := 0; p < len(data); { + flag := data[p] + p++ + if p < len(data) { + t := data[p] + m[BGPAttrType(t)] = true + } else { + break + } + p++ + var l uint16 + // Checking for Extened + if flag&0x10 == 0x10 { + if p+2 <= len(data) { + l = binary.BigEndian.Uint16(data[p : p+2]) + } else { + break + } + p += 2 + } else { + if p < len(data) { + l = uint16(data[p]) + p++ + } else { + break + } + } + p += int(l) + } + return m +} + +func GetBGPUpdateAttributesFromMsg(msg *BGPUpdate) map[BGPAttrType]bool { + m := make(map[BGPAttrType]bool) + for _, p := range msg.PathAttributes { + m[p.GetType()] = true + } + + return m +} + func GetPathAttribute(data []byte) (PathAttributeInterface, error) { if len(data) < 2 { eCode := uint8(BGP_ERROR_UPDATE_MESSAGE_ERROR) @@ -12440,6 +12525,11 @@ func (msg *BGPUpdate) DecodeFromBytes(data []byte, options ...*MarshallingOption if len(data) < int(msg.TotalPathAttributeLen) { return NewMessageError(eCode, eSubCode, nil, "path total attribute length exceeds message length") } + attributes := GetBGPUpdateAttributes(data) + o := MarshallingOption{ + Attributes: attributes, + } + options = append(options, &o) msg.PathAttributes = []PathAttributeInterface{} for pathlen := msg.TotalPathAttributeLen; pathlen > 0; { @@ -12457,7 +12547,6 @@ func (msg *BGPUpdate) DecodeFromBytes(data []byte, options ...*MarshallingOption if err != nil { return err } - err = p.DecodeFromBytes(data, options...) if err != nil { e = err.(*MessageError) @@ -12519,6 +12608,11 @@ func (msg *BGPUpdate) Serialize(options ...*MarshallingOption) ([]byte, error) { msg.WithdrawnRoutesLen = uint16(len(wbuf) - 2) binary.BigEndian.PutUint16(wbuf, msg.WithdrawnRoutesLen) + attributes := GetBGPUpdateAttributesFromMsg(msg) + o := MarshallingOption{ + Attributes: attributes, + } + options = append(options, &o) pbuf := make([]byte, 2) for _, p := range msg.PathAttributes { onepbuf, err := p.Serialize(options...) @@ -12538,6 +12632,7 @@ func (msg *BGPUpdate) Serialize(options ...*MarshallingOption) ([]byte, error) { } buf = append(buf, nbuf...) } + return buf, nil } diff --git a/pkg/packet/bgp/prefix_sid.go b/pkg/packet/bgp/prefix_sid.go index 7dd90082..a7983bcd 100644 --- a/pkg/packet/bgp/prefix_sid.go +++ b/pkg/packet/bgp/prefix_sid.go @@ -5,6 +5,10 @@ import ( "encoding/binary" "encoding/json" "fmt" + "net" + + "github.com/golang/protobuf/ptypes" + api "github.com/osrg/gobgp/api" ) const ( @@ -14,9 +18,8 @@ const ( type TLVType uint8 type TLV struct { - Type TLVType - Length uint16 - Reserved uint8 + Type TLVType + Length uint16 } func (s *TLV) Len() int { @@ -391,7 +394,7 @@ func (s *SRv6InformationSubTLV) MarshalJSON() ([]byte, error) { func (s *SRv6InformationSubTLV) String() string { var buf bytes.Buffer - buf.WriteString(fmt.Sprintf("SID: %s ", string(s.SID))) + buf.WriteString(fmt.Sprintf("SID: %s ", net.IP(s.SID).To16().String())) buf.WriteString(fmt.Sprintf("Flag: %d ", s.Flags)) buf.WriteString(fmt.Sprintf("Endpoint Behavior: %d ", s.EndpointBehavior)) for _, tlv := range s.SubSubTLVs { @@ -540,3 +543,135 @@ func (s *SRv6SIDStructureSubSubTLV) String() string { s.TranspositionOffset, ) } + +func NewPathAttributePrefixSID(psid *api.PrefixSID) (*PathAttributePrefixSID, error) { + t := BGP_ATTR_TYPE_PREFIX_SID + s := &PathAttributePrefixSID{ + PathAttribute: PathAttribute{ + Flags: PathAttrFlags[t], + Type: t, + }, + TLVs: make([]PrefixSIDTLVInterface, 0), + } + for _, raw := range psid.Tlvs { + var tlv ptypes.DynamicAny + if err := ptypes.UnmarshalAny(raw, &tlv); err != nil { + return nil, err + } + switch v := tlv.Message.(type) { + case *api.SRv6L3ServiceTLV: + tlvLength, tlvs, err := UnmarshalSubTLVs(v.SubTlvs) + if err != nil { + return nil, err + } + o := &SRv6L3ServiceAttribute{ + TLV: TLV{ + Type: TLVType(5), + Length: tlvLength, + }, + } + s.PathAttribute.Length += tlvLength + // Storing Sub TLVs in a Service TLV + o.SubTLVs = append(o.SubTLVs, tlvs...) + // Adding Service TLV to Path Attribute TLV slice. + s.TLVs = append(s.TLVs, o) + default: + return nil, fmt.Errorf("unknown or not implemented Prefix SID type: %+v", v) + } + } + // Final Path Attribute Length is 3 bytes of the header and 1 byte Reserved1 + s.PathAttribute.Length += (3 + 1) + return s, nil +} + +func UnmarshalSubTLVs(stlvs map[uint32]*api.SRv6TLV) (uint16, []PrefixSIDTLVInterface, error) { + p := make([]PrefixSIDTLVInterface, 0, len(stlvs)) + l := uint16(0) + // v.SubTlvs is a map by sub tlv type and the value is a slice of sub tlvs of the specific type + for t, tlv := range stlvs { + switch t { + case 1: + // Sub TLV Type 1 is SRv6 Informational Sub TLV + for _, stlvRaw := range tlv.Tlv { + // Instantiating Information Sub TLV + info := &SRv6InformationSubTLV{ + SubTLV: SubTLV{ + Type: SubTLVType(1), + }, + SubSubTLVs: make([]PrefixSIDTLVInterface, 0), + } + var raw ptypes.DynamicAny + if err := ptypes.UnmarshalAny(stlvRaw, &raw); err != nil { + return 0, nil, err + } + infoProto := raw.Message.(*api.SRv6InformationSubTLV) + info.SID = make([]byte, len(infoProto.Sid)) + copy(info.SID, infoProto.Sid) + // TODO Once RFC is published add processing of flags + info.Flags = 0 + info.EndpointBehavior = uint16(infoProto.EndpointBehavior) + var sstlvslength uint16 + var sstlvs []PrefixSIDTLVInterface + if len(infoProto.SubSubTlvs) != 0 { + // Processing Sub Sub TLVs + var err error + sstlvslength, sstlvs, err = UnmarshalSubSubTLVs(infoProto.SubSubTlvs) + if err != nil { + return 0, nil, err + } + info.SubSubTLVs = append(info.SubSubTLVs, sstlvs...) + } + // SRv6 Information Sub TLV length consists 1 byte Resrved2, 16 bytes SID, 1 byte flags, 2 bytes Endpoint Behavior + // 1 byte Reserved3 and length of Sub Sub TLVs + info.SubTLV.Length = 1 + 16 + 1 + 2 + 1 + sstlvslength + // For total Srv6 Information Sub TLV length, adding 3 bytes of the Sub TLV header + l += info.SubTLV.Length + 4 + p = append(p, info) + } + default: + return 0, nil, fmt.Errorf("unknown or not implemented Prefix SID Sub TLV type: %d", t) + } + } + + return l, p, nil +} + +func UnmarshalSubSubTLVs(stlvs map[uint32]*api.SRv6TLV) (uint16, []PrefixSIDTLVInterface, error) { + p := make([]PrefixSIDTLVInterface, 0) + l := uint16(0) + // v.SubTlvs is a map by sub tlv type and the value is a slice of sub tlvs of the specific type + for t, tlv := range stlvs { + switch t { + case 1: + // Sub Sub TLV Type 1 is SRv6 Structure Sub Sub TLV + for _, stlvRaw := range tlv.Tlv { + // Instantiating Information Sub TLV + structure := &SRv6SIDStructureSubSubTLV{ + SubSubTLV: SubSubTLV{ + Type: SubSubTLVType(1), + Length: 6, + }, + } + var raw ptypes.DynamicAny + if err := ptypes.UnmarshalAny(stlvRaw, &raw); err != nil { + return 0, nil, err + } + structureProto := raw.Message.(*api.SRv6StructureSubSubTLV) + structure.LocalBlockLength = uint8(structureProto.LocalBlockLength) + structure.LocatorNodeLength = uint8(structureProto.LocalNodeLength) + structure.FunctionLength = uint8(structureProto.FunctionLength) + structure.ArgumentLength = uint8(structureProto.ArgumentLength) + structure.TranspositionLength = uint8(structureProto.TranspositionLength) + structure.TranspositionOffset = uint8(structureProto.TranspositionOffset) + + // SRv6 Structure Sub Sub TLV length consists of header 3 bytes, 6 bytes of value + l += (3 + 6) + p = append(p, structure) + } + default: + return 0, nil, fmt.Errorf("unknown or not implemented Prefix SID Sub TLV type: %d", t) + } + } + + return l, p, nil +} diff --git a/pkg/packet/bgp/prefix_sid_test.go b/pkg/packet/bgp/prefix_sid_test.go index 2df8a3a3..a286228c 100644 --- a/pkg/packet/bgp/prefix_sid_test.go +++ b/pkg/packet/bgp/prefix_sid_test.go @@ -3,6 +3,9 @@ package bgp import ( "bytes" "testing" + + "github.com/golang/protobuf/ptypes/any" + api "github.com/osrg/gobgp/api" ) func TestRoundTripSubSubTLV(t *testing.T) { @@ -88,3 +91,34 @@ func TestRoundTripPrefixSID(t *testing.T) { }) } } + +func TestNewPathAttributePrefixSID(t *testing.T) { + tests := []struct { + name string + input *api.PrefixSID + }{ + { + name: "path attribute srv6 prefix sid", + input: &api.PrefixSID{ + Tlvs: []*any.Any{ + { + TypeUrl: "type.googleapis.com/gobgpapi.SRv6L3ServiceTLV", + Value: []byte{10, 157, 1, 8, 1, 18, 152, 1, 10, 149, 1, 10, 50, 116, 121, 112, 101, 46, 103, 111, 111, 103, 108, 101, 97, 112, 105, 115, 46, 99, 111, 109, 47, 103, 111, 98, 103, 112, 97, 112, 105, 46, 83, 82, 118, 54, 73, 110, 102, 111, 114, 109, 97, 116, 105, 111, 110, 83, 117, 98, 84, 76, 86, 18, 95, 10, 16, 32, 1, 0, 0, 0, 5, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 24, 17, 34, 71, 8, 1, 18, 67, 10, 65, 10, 51, 116, 121, 112, 101, 46, 103, 111, 111, 103, 108, 101, 97, 112, 105, 115, 46, 99, 111, 109, 47, 103, 111, 98, 103, 112, 97, 112, 105, 46, 83, 82, 118, 54, 83, 116, 114, 117, 99, 116, 117, 114, 101, 83, 117, 98, 83, 117, 98, 84, 76, 86, 18, 10, 8, 40, 16, 24, 24, 16, 40, 16, 48, 64}, + }, + }, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + p, err := NewPathAttributePrefixSID(tt.input) + if err != nil { + t.Fatalf("failed with error: %+v", err) + } + t.Logf("resulting prefix sid: %s", p.String()) + b, _ := p.Serialize() + t.Logf("serialized prefix sid: %s", string(b)) + + }) + } +} diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index b5bcd2d8..b274c210 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -757,19 +757,17 @@ func capabilitiesFromConfig(pConf *config.Neighbor) []bgp.ParameterCapabilityInt } } - // unnumbered BGP - if pConf.Config.NeighborInterface != "" { - tuples := []*bgp.CapExtendedNexthopTuple{} - families, _ := config.AfiSafis(pConf.AfiSafis).ToRfList() - for _, family := range families { - if family == bgp.RF_IPv6_UC { - continue - } - tuple := bgp.NewCapExtendedNexthopTuple(family, bgp.AFI_IP6) - tuples = append(tuples, tuple) + // Extended Nexthop Capability (Code 5) + tuples := []*bgp.CapExtendedNexthopTuple{} + families, _ := config.AfiSafis(pConf.AfiSafis).ToRfList() + for _, family := range families { + if family == bgp.RF_IPv6_UC { + continue } - caps = append(caps, bgp.NewCapExtendedNexthop(tuples)) + tuple := bgp.NewCapExtendedNexthopTuple(family, bgp.AFI_IP6) + tuples = append(tuples, tuple) } + caps = append(caps, bgp.NewCapExtendedNexthop(tuples)) // ADD-PATH Capability if c := capAddPathFromConfig(pConf); c != nil { |