ofproto: Add function to set OpenFlow state and update controller.