summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgp/cmd/neighbor.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go
index a6ba72b7..fb4b68f5 100644
--- a/gobgp/cmd/neighbor.go
+++ b/gobgp/cmd/neighbor.go
@@ -992,6 +992,11 @@ func modNeighbor(cmdType string, args []string) error {
}
if unnumbered {
peer.Config.NeighborInterface = m["interface"][0]
+ addr, err := config.GetIPv6LinkLocalNeighborAddress(peer.Config.NeighborInterface)
+ if err != nil {
+ return nil, err
+ }
+ peer.State.NeighborAddress = addr
} else {
peer.Config.NeighborAddress = m[""][0]
peer.State.NeighborAddress = m[""][0]