src/main/ruby/org/o3project/odenos/component/driver/of_driver/openflow_controller.rb
#
# Handler for GET "link_maps" Request
#
Handler for GET "link_maps" Request
Handler for GET " link_maps " Request
def on_get_link_maps
            link4tuple_key = '[src_dpid, src_port_no, dst_dpid, dst_port_no] -> Link'
            link_key = 'Link.link_id -> [src_dpid, src_port_no, dst_dpid, dst_port_no]'
            {
              link4tuple_key => MessagePack.unpack(@op2od_link.to_msgpack),
              link_key => MessagePack.unpack(@od2op_link.to_msgpack)
            }
          end
def on_get_link_maps link4tuple_key = '[src_dpid, src_port_no, dst_dpid, dst_port_no] -> Link' link_key = 'Link.link_id -> [src_dpid, src_port_no, dst_dpid, dst_port_no]' { link4tuple_key => MessagePack . unpack ( @op2od_link . to_msgpack ) , link_key => MessagePack . unpack ( @od2op_link . to_msgpack ) } end
Handler for GET "link_maps" Request
Handler for GET " link_maps " Request
# return deep copied map