Skip to content
Snippets Groups Projects
neighbor.go 819 B
Newer Older
  • Learn to ignore specific revisions
  • Daniel Czerwonk's avatar
    Daniel Czerwonk committed
    import bnet "github.com/bio-routing/bio-rd/net"
    
    
    // Neighbor represents the attributes identifying a neighbor relationsship
    type Neighbor struct {
    	// Addres is the IPv4 address of the neighbor as integer representation
    
    Daniel Czerwonk's avatar
    Daniel Czerwonk committed
    	Address bnet.IP
    
    	// Local address is the local address of the BGP TCP connection
    
    Daniel Czerwonk's avatar
    Daniel Czerwonk committed
    	LocalAddress bnet.IP
    
    takt's avatar
    takt committed
    	// Type is the type / protocol used for routing inforation communitation
    
    
    	// IBGP returns if local ASN is equal to remote ASN
    	IBGP bool
    
    
    	// Local ASN of session
    	LocalASN uint32
    
    
    	// Peer is a route server client
    	RouteServerClient bool
    
    
    	// Peer is a route reflector client
    	RouteReflectorClient bool
    
    	// Our route reflection clusterID
    	ClusterID uint32
    
    
    	// CapAddPathRX indicates if the peer supports receiving multiple BGP paths
    	CapAddPathRX bool