src/main/ruby/org/o3project/odenos/component/driver/of_driver/openflow_controller.rb
#
# Handler for GET "port_maps" Request
#
Handler for GET "port_maps" Request
Handler for GET " port_maps " Request
def on_get_port_maps
            phy_port_key = '[dpid, port_no] -> Port'
            port_key = '[Node.node_id, Port.port_id] -> [dpid, port_no]'
            {
              phy_port_key => MessagePack.unpack(@op2od_port.to_msgpack),
              port_key => MessagePack.unpack(@od2op_port.to_msgpack)
            }
          end
def on_get_port_maps phy_port_key = '[dpid, port_no] -> Port' port_key = '[Node.node_id, Port.port_id] -> [dpid, port_no]' { phy_port_key => MessagePack . unpack ( @op2od_port . to_msgpack ) , port_key => MessagePack . unpack ( @od2op_port . to_msgpack ) } end
Handler for GET "port_maps" Request
Handler for GET " port_maps " Request
# return deep copied map