diff options
Diffstat (limited to 'pkg/server')
-rw-r--r-- | pkg/server/fsm.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |