Module: MessageFilter::Handlers

Defined in:
lib/message_filter/handlers.rb

Overview

Openflow Handers

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



9
10
11
12
# File 'lib/message_filter/handlers.rb', line 9

def self.included(klass)
  klass.send :include, Filter
  klass.send :extend, Filter
end

Instance Method Details

#features_reply(dpid, features_reply) ⇒ Object



54
55
56
57
# File 'lib/message_filter/handlers.rb', line 54

def features_reply(dpid, features_reply)
  debug 'features_reply'
  exec_filter(current_method, [dpid, features_reply])
end

#flow_removed(dpid, flow_removed) ⇒ Object



39
40
41
42
# File 'lib/message_filter/handlers.rb', line 39

def flow_removed(dpid, flow_removed)
  debug 'flow_removed'
  exec_filter(current_method, [dpid, flow_removed])
end

#list_switches_reply(dpids) ⇒ Object



29
30
31
32
# File 'lib/message_filter/handlers.rb', line 29

def list_switches_reply(dpids)
  debug 'list_switches_reply'
  exec_filter(current_method, [dpids])
end

#openflow_error(dpid, openflow_error) ⇒ Object



49
50
51
52
# File 'lib/message_filter/handlers.rb', line 49

def openflow_error(dpid, openflow_error)
  debug 'openflow_error'
  exec_filter(current_method, [dpid, openflow_error])
end

#packet_in(dpid, packet_in) ⇒ Object



34
35
36
37
# File 'lib/message_filter/handlers.rb', line 34

def packet_in(dpid, packet_in)
  debug 'packet_in'
  exec_filter(current_method, [dpid, packet_in])
end

#port_status(dpid, port_status) ⇒ Object



44
45
46
47
# File 'lib/message_filter/handlers.rb', line 44

def port_status(dpid, port_status)
  debug 'port_status'
  exec_filter(current_method, [dpid, port_status])
end

#queue_get_config_reply(dpid, queue_get_config_reply) ⇒ Object



64
65
66
67
# File 'lib/message_filter/handlers.rb', line 64

def queue_get_config_reply(dpid, queue_get_config_reply)
  debug 'queue_get_config_reply'
  exec_filter(current_method, [dpid, queue_get_config_reply])
end

#startObject



14
15
16
17
# File 'lib/message_filter/handlers.rb', line 14

def start
  debug 'start'
  exec_filter(current_method, [])
end

#stats_reply(dpid, stats_reply) ⇒ Object



59
60
61
62
# File 'lib/message_filter/handlers.rb', line 59

def stats_reply(dpid, stats_reply)
  debug 'stats_reply'
  exec_filter(current_method, [dpid, stats_reply])
end

#switch_disconnect(dpid) ⇒ Object



24
25
26
27
# File 'lib/message_filter/handlers.rb', line 24

def switch_disconnect(dpid)
  debug 'switch_disconnect'
  exec_filter(current_method, [dpid])
end

#switch_ready(dpid) ⇒ Object



19
20
21
22
# File 'lib/message_filter/handlers.rb', line 19

def switch_ready(dpid)
  debug 'switch_ready'
  exec_filter(current_method, [dpid])
end

#vendor(dpid, vendor) ⇒ Object



69
70
71
72
# File 'lib/message_filter/handlers.rb', line 69

def vendor(dpid, vendor)
  debug 'vendor'
  exec_filter(current_method, [dpid, vendor])
end