Class: OSPFv2::NeighborState::Attempt

Inherits:
State show all
Defined in:
lib/neighbor_sm/attempt_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



30
31
32
33
34
# File 'lib/neighbor_sm/attempt_state.rb', line 30

def recv_hello(neighbor, hello, *args)
  super
  #TODO: check hello dead and hello interval and netmask ?
  two_way_received(neighbor) if hello.has_neighbor?(neighbor.router_id)
end

#two_way_received(neighbor) ⇒ Object



36
37
38
# File 'lib/neighbor_sm/attempt_state.rb', line 36

def two_way_received(neighbor)
  new_state neighbor, ExStart.new(neighbor), 'two_way_received'
end