Patent ID: 7949734

Claim:
A method of re-generating configuration commands of a network device using an object-based approach, comprising the computer-implemented steps of: creating and storing one or more command-path patterns and one or more command templates representing one or more configuration commands for a network device, wherein one or more of the one or more configuration commands define one or more parameters; receiving a particular configuration command and one or more particular parameters; wherein each particular parameter of the one or more particular parameters is associated with a particular value; creating one or more objects respectively representing the one or more particular parameters based on parsing the particular configuration command; wherein a particular object of the one or more objects contains a value associated with a particular parameter of the one or more particular parameters; receiving a request to re-generate the particular configuration command; in response to receiving the request to re-generate the particular configuration command: retrieving a template and a pattern associated with the particular configuration command; based on the pattern, retrieving all objects containing values for all the one or more particular parameters; and creating a re-generated configuration command by substituting the values of the retrieved objects into the template; wherein the re-generated configuration command comprises the text of the particular configuration command; wherein the method is performed by one or more network devices.