1. A method, comprising the computer-implemented steps of: receiving a request to re-generate a previously issued network device configuration command that has one or more parameters, each of which is associated with a value; in response to receiving the request: determining, for the network device configuration command, a pattern that represents a storage location for the network device configuration command; retrieving, based on the pattern, both: a template representing a syntax for the network device configuration command, and one or more objects containing values for all the one or more parameters; creating a re-generated configuration command, equivalent to the previously issued network device configuration command, by substituting the values of the one or more objects into the template; wherein the method is performed by one or more network devices.