summaryrefslogtreecommitdiffhomepage
path: root/config/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/serve.go')
-rw-r--r--config/serve.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/config/serve.go b/config/serve.go
index 73e2c7bb..45c70ea9 100644
--- a/config/serve.go
+++ b/config/serve.go
@@ -75,24 +75,6 @@ func ReadConfigfileServe(path, format string, configCh chan *BgpConfigSet) {
}
}
-func inSlice(n Neighbor, b []Neighbor) int {
- for i, nb := range b {
- if nb.State.NeighborAddress == n.State.NeighborAddress {
- return i
- }
- }
- return -1
-}
-
-func existPeerGroup(n string, b []PeerGroup) int {
- for i, nb := range b {
- if nb.Config.PeerGroupName == n {
- return i
- }
- }
- return -1
-}
-
func ConfigSetToRoutingPolicy(c *BgpConfigSet) *RoutingPolicy {
return &RoutingPolicy{
DefinedSets: c.DefinedSets,