diff options
Diffstat (limited to 'pkg/server/fsm.go')
-rw-r--r-- | pkg/server/fsm.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go index b024cf3e..abd94ed9 100644 --- a/pkg/server/fsm.go +++ b/pkg/server/fsm.go @@ -21,6 +21,7 @@ import ( "io" "math/rand" "net" + "os" "strconv" "sync" "syscall" @@ -714,8 +715,11 @@ func capAddPathFromConfig(pConf *config.Neighbor) bgp.ParameterCapabilityInterfa } func capabilitiesFromConfig(pConf *config.Neighbor) []bgp.ParameterCapabilityInterface { + fqdn, _ := os.Hostname() caps := make([]bgp.ParameterCapabilityInterface, 0, 4) caps = append(caps, bgp.NewCapRouteRefresh()) + caps = append(caps, bgp.NewCapFQDN(fqdn, "")) + for _, af := range pConf.AfiSafis { caps = append(caps, bgp.NewCapMultiProtocol(af.State.Family)) } |