摘要:
A method includes receiving user input associated with configuration of a configurable device. The method also includes retrieving a template associated with the configurable device. The method further includes generating one or more configuration commands for the configurable device using the template and the user input. In addition, the method includes storing the commands and/or outputting the commands. The method could also include retrieving one or more rules associated with the configuration of the configurable device. The one or more rules could define at least one allowable configuration of the configurable device. Also, the user input could include one or more selections associated with one or more configuration options by a user, and the one or more rules could define the one or more configuration options available for selection by the user. The configurable device could represent a switch, a router, or other command-line configurable device.