Unable to set ePMP static IP via template

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”}
  }
}

I believe your variable replacement strings need to be inside double-quotes.

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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.