| With the development of the Internet,Network devices such as routers,switches and other network devices are becoming more and more widely used.Network management personnel usually encountered a lot of duplication of work in the configuration of the deployment process.As today the use of automatic operation and maintenance tools has become very extensive,the automation of network equipment management is also essential.On the network equipment,the very mature configuration is to configure through the command line or according to the SNMP protocol or Netconf protocol.But these methods have to be manually configured.Therefore,in the case of large scale management,automatic management is an urgent need.Among many operation and maintenance management tools,the arrival of big data era and cloud computing to accelerate the development of the advantages is particularly prominent,while Chef provides WebUI and API REST interface,and now the popular technology,so this topic using Chef tools to achieve automatic allocation of network equipment.In this paper,the network management platform uses Linux kernel,but it has many functional modules for the characteristics of network equipment.In the network equipment includes many modules,this topic selects VLAN,LAGG,Interface three modules to achieve automatic configuration management.Chef provides a number of platform resource types that can be directly used,such as file,service,packet management,etc.,but there are no resource types associated with these three modules on the network device.So this implement need to use the interface provided by the Chef tool to realize the custom resource type related to these three modules.Chef tool is developed by Ruby.In the process of using Chef,Ruby is needed everywhere.In this paper,the necessity of realizing the automatic management of network equipment will be analyzed,and then the related technology will be introduced,later is the analysis the requirements of this topic,and then the design of the whole structure.At last,this paper will discusses the process of building the chef environment,the realization of the custom resource type,and the verification process. |