PMP Template not applying

I am trying to apply the following template but the settings are not applying to the SM device, What am I doing wrong?

{
“smNetworkConfig”: {
“bridgeTableRestrict”: 1
},

"networkConfig": {
	"BridgeTableSize": 4
},

“smVlanConfig”: {
“allowVIDAccess”: 1
},

“vlanConfig”: {
“dynamicLearning”: 0
},

"configFileParameters": {
	"rebootIfRequired": true,
	"setToDefaults": false
	}

“cfgFileString”: “Canopy configuration file”,
“cfgFileVersion”: “1.0”

}

Try using the below template. The configuration settings need to be placed within the top level “userParameters” object.

{
"userParameters": {
	"smNetworkConfig": {
		"bridgeTableRestrict": 1
	},
	"networkConfig": {
		"BridgeTableSize": 4
	},
	"smVlanConfig": {
		"allowVIDAccess": 1
	},
	"vlanConfig": {
		"dynamicLearning": 0
	}
},
"configFileParameters": {
	"rebootIfRequired": true,
	"setToDefaults": false
},
"cfgFileString": "Canopy configuration file",
"cfgFileVersion": "1.0"
}

You don’t need to include “configFileParameters” when pushing templates using cnMaestro, those settings are for directly importing configuration on devices. cnMaestro will tell the device to automatically reboot if required.

Thank you, that is what I was missing.

1 Like

https://jsonlint.com/ is where its at. I run everything through there because im a dolt and it saves a ton of headache making sure format is correct

1 Like

jsonlint.com is what I use and the “pro” version linked there has a nice diff tool.

There’s others that have visualizers that display the JSON as form you can edit for those not as comfortable editing JSON directly. I found the below site for that but I’m sure posters here have other great suggestions.