Class: Clusterfuck::BGPCluster
- Defined in:
- lib/clusterfuck/cluster.rb
Instance Attribute Summary
Attributes inherited from Cluster
Instance Method Summary collapse
Methods inherited from Cluster
[], all, #connect, create, #find_by_name, #initialize, #ip_in_same_subnet, #nodes
Constructor Details
This class inherits a constructor from Clusterfuck::Cluster
Instance Method Details
#bgp_neighbors(node) ⇒ Object
59 60 61 62 63 |
# File 'lib/clusterfuck/cluster.rb', line 59 def bgp_neighbors(node) @graph[node].select { |neighbor| neighbor.is_a?(BGPPeer) } end |