The system will use the id programmed into the MTAC_LORA card. To override the behavior the init script must be modified.
Edit /etc/init.d/lora-network-server
Replace line 132 with either of the following curl lines.
We will consider implementing the second option for future AEP release.
# Remove the replacement out-right
curl -m 5 -s "127.0.0.1/api/loraNetwork/lora/packetForwarderConfig" | jsparser -p /result > /var/run/lora/1/global_conf.json
OR
# Replace only if a placeholder is found with angled brackets in gateway_ID field. Added <.*> between quotes \")[^\"
curl -m 5 -s "127.0.0.1/api/loraNetwork/lora/packetForwarderConfig" | jsparser -p /result | sed "s/\(.*gateway_ID\"\s*\:\s*\"\)<.*>[^\"]*\(.*\)/\1${lora_eui_raw}\2/g" > /var/run/lora/1/global_conf.json