Class: OSPFv2::NeighborState::Init

Inherits:
State show all
Defined in:
lib/neighbor_sm/init_state.rb

Instance Method Summary collapse

Methods inherited from State

#adj_ok?, #bad_ls_req, #change_state, #inactivity_timer, #kill_nbr, #method_missing, #one_way_received, #seq_number_mismatch

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OSPFv2::NeighborState::State

Instance Method Details

#recv_hello(neighbor, hello, *args) ⇒ Object



29
30
31
32
# File 'lib/neighbor_sm/init_state.rb', line 29

def recv_hello(neighbor, hello, *args)
  super
  two_way_received(neighbor) if hello.has_neighbor?(neighbor.router_id)
end

#two_way_received(neighbor, *args) ⇒ Object



34
35
36
# File 'lib/neighbor_sm/init_state.rb', line 34

def two_way_received(neighbor, *args)
  change_state(neighbor, ExStart.new(neighbor), 'two_way_received' )
end