Based upon the process documentation "…/docs/getting-started/migrating/migrating-from-v2/ " I tried to migrate an OTAA test device.
The V2 ttn-lw-migrate tool succesfully generated a JSON file which failed in the V3 “import end device” process.
The result of this import :
{
“code”: 3,
“message”: “error:pkg/networkserver:field_mask (invalid field mask)”,
“details”: [
{
“@type”: “type.googleapis.com/ttn.lorawan.v3.ErrorDetails”,
“namespace”: “pkg/networkserver”,
“name”: “field_mask”,
“message_format”: “invalid field mask”,
“correlation_id”: “16fbb93b94fd49efab19e36ed5815f6f”,
“cause”: {
“namespace”: “pkg/ttnpb”,
“name”: “prohibited_field”,
“message_format”: “field {field} is prohibited”,
“attributes”: {
“field”: “session.keys.nwk_s_enc_key.key”
},
“code”: 2
},
“code”: 3
}
],
“request_details”: {
“url”: “/ns/applications/showcase/devices/leonardo005”,
“method”: “put”,
“stack_component”: “ns”
}
}
My apologies, I wasn’t aware of such a thing, I’ve been using the CLI tools as I had lots of scripts for v2 and I’m in the process of reworking the essential ones for v3, having reworked the v3 quick reference (http://descartes.co.uk/TTSv3CLI.html) so I can see all the options.
If you can, please submit a GitHub issue on this. I’ll have a look at the migration tool over the next few days.