then, string dpid "0000000000000001" not in mac_to_port, return 404.
if dpid not in simple_switch.mac_to_port:
return Response(status=404)
if i reset bridge datapath-id with command ovs-vsctl set bridge br0 other-config:datapath-id=<random string>, then got random number from event message.
When I learned Ryu Rest, I found that the datapath ID is set to int at registration time
so mac_to_port = {1: {}} however, when updating mac_to_port with api, i got dpid is a string, and decorator validates string the dpid.
then, string dpid "0000000000000001" not in mac_to_port, return 404.
if i reset bridge datapath-id with command
ovs-vsctl set bridge br0 other-config:datapath-id=<random string>
, then got random number from event message.