Skip to content
Snippets Groups Projects
Select Git revision
  • 674799764de1df86b79618accc0098357585ba6b
  • master default protected
  • renovate/configure
  • 2-create-ospf-example
  • feature/isis
  • migrate-to-github-actions
  • aspath/convenience
  • hashroute/public
  • cmd/rismirror
  • riscli/vrf
  • fix/bmp_down
  • ris/logging
  • fix/ris_race
  • fix/bmp_metrics
  • please-go-vet
  • fix/lock_copy
  • fix/dedup_mem
  • add-get-routers-rpc
  • feature/bgp_md5
  • is-is/srv
  • feature/ris/lpm_any
  • v0.0.3-pre4
  • v0.0.3-pre3
  • v0.0.3-pre2
  • v0.0.3-pre1
  • v0.0.2-pre9
  • v0.0.2-pre8
  • v0.0.2-pre7
  • v0.0.2-pre6
  • v0.0.2-pre5
  • v0.0.2-pre4
  • v0.0.2-pre3
  • v0.0.2-pre2
  • v0.0.2-pre1
  • v0.0.1-pre10
  • v0.0.1-pre9
  • v0.0.1-pre7
  • v0.0.1-pre8
  • v0.0.1-pre6
  • v0.0.1-pre4
  • v0.0.1-pre5
41 results

peer.go

Blame
  • user avatar
    Daniel Czerwonk authored
    67479976
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    peer.go 1.08 KiB
    package config
    
    import (
    	"time"
    
    	bnet "github.com/bio-routing/bio-rd/net"
    	"github.com/bio-routing/bio-rd/routingtable"
    	"github.com/bio-routing/bio-rd/routingtable/filter"
    	"github.com/bio-routing/bio-rd/routingtable/locRIB"
    )
    
    // Peer defines the configuration for a BGP session
    type Peer struct {
    	AdminEnabled            bool
    	ReconnectInterval       time.Duration
    	KeepAlive               time.Duration
    	HoldTime                time.Duration
    	LocalAddress            bnet.IP
    	PeerAddress             bnet.IP
    	LocalAS                 uint32
    	PeerAS                  uint32
    	Passive                 bool
    	RouterID                uint32
    	RouteServerClient       bool
    	RouteReflectorClient    bool
    	RouteReflectorClusterID uint32
    	IPv4                    *AddressFamilyConfig
    	IPv6                    *AddressFamilyConfig
    }
    
    // AddressFamilyConfig represents all configuration parameters specific for an address family
    type AddressFamilyConfig struct {
    	RIB          *locRIB.LocRIB
    	ImportFilter *filter.Filter
    	ExportFilter *filter.Filter
    	AddPathSend  routingtable.ClientOptions
    	AddPathRecv  bool
    }