PackeTsar / freeztp

An Open-Source Zero-Touch Provisioning System for Cisco IOS.
GNU General Public License v3.0
214 stars 28 forks source link

dev 1.1.0 // Change log output for merge from external keystore #30

Closed derek-shnosh closed 5 years ago

derek-shnosh commented 6 years ago

Goals

Concerns

derek-shnosh commented 6 years ago

I think I've discovered why the full config is being dumped to the log, maybe you can confirm @PackeTsar.

We just had two of twelve switches only get a partial config. I'm unsure if this was because the switch didn't parse it all or because ZTP didn't send it all, since my current log message is simply log("cfact.request: Returning the merged config to TFTPy.")

If so, I'd like to instead suggest that the merged config files are written to disk somewhere; e.g. /etc'ztp/merged_cfgs.

A write erase and reload resulted in the switch getting the full configuration. For now, I have put the default log message back to assist with troubleshooting if this happens again.

Update: Another switch got a partial config. Checked the log file and saw the full configuration as returned to TFPTy. Like before, this was resolved by a write erase and reload.