From 2dbb18f93f2d1ff2ad1d7b9c042a6c97a23a5cb5 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 4 Jul 2020 22:05:23 +0900 Subject: server: don't send empty ExtendedNexthop capability Signed-off-by: FUJITA Tomonori --- pkg/server/fsm.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index b274c210..932e0d76 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -767,7 +767,9 @@ func capabilitiesFromConfig(pConf *config.Neighbor) []bgp.ParameterCapabilityInt tuple := bgp.NewCapExtendedNexthopTuple(family, bgp.AFI_IP6) tuples = append(tuples, tuple) } - caps = append(caps, bgp.NewCapExtendedNexthop(tuples)) + if len(tuples) != 0 { + caps = append(caps, bgp.NewCapExtendedNexthop(tuples)) + } // ADD-PATH Capability if c := capAddPathFromConfig(pConf); c != nil { -- cgit v1.2.3