File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package network
2
2
3
3
import (
4
4
"context"
5
+ "errors"
5
6
"fmt"
6
7
"net"
7
8
"os"
@@ -13,6 +14,7 @@ import (
13
14
incus "github.com/lxc/incus/v6/client"
14
15
internalInstance "github.com/lxc/incus/v6/internal/instance"
15
16
"github.com/lxc/incus/v6/internal/iprange"
17
+ "github.com/lxc/incus/v6/internal/server/bgp"
16
18
"github.com/lxc/incus/v6/internal/server/cluster"
17
19
"github.com/lxc/incus/v6/internal/server/cluster/request"
18
20
"github.com/lxc/incus/v6/internal/server/db"
@@ -699,7 +701,7 @@ func (n *common) bgpClearPeers(config map[string]string) error {
699
701
// Remove the peer.
700
702
fields := strings .Split (peer , "," )
701
703
err := n .state .BGP .RemovePeer (net .ParseIP (fields [0 ]))
702
- if err != nil {
704
+ if err != nil && ! errors . Is ( err , bgp . ErrPeerNotFound ) {
703
705
return err
704
706
}
705
707
}
You can’t perform that action at this time.
0 commit comments