Class: OSPFv2::NeighborState::Down

Inherits:
State show all
Defined in:
lib/neighbor_sm/down_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, #two_way_received

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, rcv_hello, *args) ⇒ Object



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

def recv_hello(neighbor, rcv_hello, *args)
  super
  new_state neighbor, Init.new, 'recv_hello'
end

#start(neighbor) ⇒ Object



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

def start(neighbor)
  neighbor.instance_eval {
    new_state Attempt.new, 'start'
  }
end