I’m trying to use a configuration template to change some ePMP APs from DHCP to static IP addresses. I get failed, Specified template is not valid JSON. I don’t see any issues with the JSON.
{
“device_props”: {
"networkBridgeDNSIPAddrPrimary": "8.8.8.8",
"networkBridgeDNSIPAddrSecondary": "1.1.1.1",
“networkBridgeIPAddr”: ${MIP=“10.220.9.2”},
“networkBridgeGatewayIP”: ${MGW=“10.220.9.1”},
“networkBridgeIPAddressMode”: “1”,
“networkBridgeNetmask”: ${MMASK=“255.255.255.0”}
}
}
Simon_King
(Simon King)
September 30, 2025, 6:13pm
2
I believe your variable replacement strings need to be inside double-quotes.
I’d like to add some things I’ve found out while trying out template variables where the documentation is not 100% clear. When building a JSON template config file, like those from PMP 450, the ${…} notation needs to be completely inside double quotes (") if the value the config expects is a string, and without any quotes if the value it expects is a number or boolean. Examples below.
An IP address is a string, so you would write it like this:
“networkBridgeIPAddr”: “${IP_ADDRESS=10.1.2.3}”
O…
Also, you seem to have a mix of proper double-quotes and non-ASCII opening/closing quotes.
Try something like this instead:
{
"device_props": {
"networkBridgeDNSIPAddrPrimary": "8.8.8.8",
"networkBridgeDNSIPAddrSecondary": "1.1.1.1",
"networkBridgeIPAddr": "${MIP=10.220.9.2}",
"networkBridgeGatewayIP": "${MGW=10.220.9.1}",
"networkBridgeIPAddressMode": "1",
"networkBridgeNetmask": "${MMASK=255.255.255.0}"
}
}
2 Likes
That worked. Thank you very much Simon!
1 Like
system
(system)
Closed
October 7, 2025, 8:32pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.