Configuration model generation method and device based on YANG language
By generating a configuration model based on YANG language, the problems of increased R&D costs and extended launch cycles due to differences in YANG language models of different manufacturers in the existing technology are solved, and the automatic adaptation of configuration models and the improvement of R&D efficiency are achieved.
Patent Information
- Application Number
- CN202411773096.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-04
AI Technical Summary
The existing SDN network control system needs to establish a variety of network configuration models based on the YANG language model of different manufacturers, resulting in increased R&D work costs and extended online cycles.
By obtaining the configuration files in the cloud network business, determine the configuration model corresponding to the network element device name and configuration files provided by different manufacturers, and determine the target configuration model corresponding to the business needs based on different business needs and configuration models. Using YANG file as the basis for configuration model analysis, the configuration model unit is orchestrated into a configuration model structure that conforms to cloud network services through a programmable orchestration interface.
Block the configuration differences of different network element equipment, reduce the workload of cloud network management and control systems to adapt to network element equipment configuration models, and improve the research and development efficiency of cloud network management and control systems.
Smart Images

Figure CN119892649A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of network technology and security technology, and in particular to a configuration model generation method and device based on the YANG language. Background Art
[0002] Since the SDN concept was proposed in the 1990s, after more than a decade of development, SDN has been widely used in enterprise networks, data centers, cloud computing, and the Internet, and various network suppliers have launched their own SDN network control products. In all SDN network control systems, interaction with network devices has always been the most core link.
[0003] Existing network equipment configuration protocols mainly include SNMP, NETCONF and Openflow. Mainstream equipment manufacturers use NETCONF as the network configuration protocol and use the YANG language model to provide a standard configuration interface to implement network configuration delivery. There are many types of network equipment adapted to SDN on the market, and the YANG language models of different manufacturers are different. As a result, the SDN control system has to establish multiple network configuration models based on the YANG language models of different manufacturers to manage network equipment, thereby increasing the cost of R&D work and extending the launch cycle of network products.
[0004] The SDN network control system acts as the client C, and the network device acts as the server S. Each server S has a corresponding configuration model M. The client C interacts with the server S, and a configuration instance corresponding to the configuration model M needs to be built on the client C. After the client C transmits the configuration instance to the server S through the network channel, the server S generates the corresponding network configuration according to the configuration instance to complete the business goal of the client C. The client C needs to understand all the configuration models M in order to build the corresponding configuration instance.
[0005] Specifically, there is a new configuration model M1. The client C develops a function module that adapts the configuration model M1 according to network demand services. The function module can only be used to generate configuration instances of the configuration model M1. Summary of the invention
[0006] The present application shows a configuration model generation method and device based on the YANG language.
[0007] In a first aspect, the present application provides a configuration model generation method based on the YANG language, the method comprising:
[0008] Get the configuration files in the cloud network service;
[0009] Determine a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers;
[0010] According to different business requirements and the configuration model, a target configuration model corresponding to the business requirement is determined.
[0011] Optionally, the YANG file includes at least a YANG version number, a namespace, a module name, import information and dependency information, a revision time, and data structure definition information.
[0012] Optionally, the determining, according to different business requirements and the configuration model, a target configuration model corresponding to the business requirement includes:
[0013] The interface of the configuration system is called, and the configuration model name and configuration key parameters are passed in to obtain the configuration model structure corresponding to the configuration model name.
[0014] Optionally, determining a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers includes:
[0015] According to the syntax of the YANG language, the YANG files of network elements of different manufacturers are translated to obtain a structured configuration model;
[0016] The structured configuration model is displayed on the interface, and the configuration model is programmed according to business needs.
[0017] Optionally, the translating YANG files of network element devices of different manufacturers according to the grammar of the YANG language to obtain a structured configuration model includes:
[0018] Mark the list types in the YANG files of network elements of different manufacturers, replace the identifiers of variables, and process them according to the field type during replacement;
[0019] Use s to replace the character type and use d to replace the integer type to obtain the structured configuration model.
[0020] Optionally, the determining, according to different business requirements and the configuration model, a target configuration model corresponding to the business requirement includes:
[0021] Combining and splitting the structured configuration model to obtain a combined and split configuration model;
[0022] Extracting and assigning values to variables of the structured configuration model;
[0023] A configuration model production interface including fixed network function elements is generated according to the combined decomposed configuration model and the extracted variables.
[0024] In a second aspect, the present application shows a device for generating a configuration model based on the YANG language, the device comprising:
[0025] The acquisition module is used to obtain the configuration files in the cloud network service;
[0026] A determination module, used to determine a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers;
[0027] The generation module is used to determine the target configuration model corresponding to the business requirements according to different business requirements and the configuration model.
[0028] Optionally, the configuration file is a YANG file including at least a YANG version number, a namespace, a module name, import information and dependency information, a revision time, and data structure definition information.
[0029] Optionally, the generating module is used to:
[0030] The interface of the configuration system is called, and the configuration model name and configuration key parameters are passed in to obtain the configuration model structure corresponding to the configuration model name.
[0031] Optionally, the generating module is used to:
[0032] According to the syntax of the YANG language, the YANG files of network elements of different manufacturers are translated to obtain a structured configuration model;
[0033] The structured configuration model is displayed on the interface, and the configuration model is programmed according to business needs.
[0034] Optionally, the generating module is used to:
[0035] Mark the list types in the YANG files of network elements of different manufacturers, replace the identifiers of variables, and process them according to the field type during replacement;
[0036] Use s to replace the character type and use d to replace the integer type to obtain the structured configuration model.
[0037] Optionally, the generating module is used to:
[0038] Combining and splitting the structured configuration model to obtain a combined and split configuration model;
[0039] Extracting and assigning values to variables of the structured configuration model;
[0040] A configuration model production interface including fixed network function elements is generated according to the combined decomposed configuration model and the extracted variables.
[0041] In a third aspect, the present application shows an electronic device, which includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in any of the above aspects.
[0042] In a fourth aspect, the present application illustrates a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a method as described in any of the above aspects.
[0043] In a fifth aspect, the present application illustrates a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in any of the above aspects.
[0044] The technical solution provided by the present application may include the following beneficial effects: The embodiment of the present application provides a configuration model generation method and device based on the YANG language, including: obtaining a configuration file in a cloud network service; determining a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers; determining a target configuration model corresponding to the business requirement according to different business requirements and the configuration model, the configuration system uses the YANG file as the basis for configuration model parsing, and can output a standard configuration model unit according to the structured data specification, which can constrain the device model and device capabilities of the network element device manufacturer. Then, based on the programmable orchestration interface, the configuration model unit is orchestrated into a configuration model structure that conforms to the cloud network service, shielding the configuration differences of different network element devices, reducing the workload of the cloud network control system for adapting the network element device configuration model, and improving the R&D efficiency of the cloud network control system. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flowchart of the steps of a configuration model generation method based on the YANG language of this application.
[0046] Figure 2 This is a configuration system architecture diagram of this application.
[0047] Figure 3 This is a flowchart of the steps of another configuration model generation method based on the YANG language of the present application.
[0048] Figure 4 This is a structural block diagram of a configuration model generation device based on the YANG language of the present application.
[0049] Figure 5 It is a block diagram of an electronic device of the present application.
[0050] Figure 6It is a block diagram of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Glossary:
[0053] YANG (Yet Another Next Generation): is a data modeling language. The YANG model defines a hierarchical structure of data that can be used for operations based on network configuration management protocols (such as NETCONF / RESTCONF), including configuration, status data, remote procedure calls, and notifications.
[0054] SDN (Software Defined Network) is a network architecture that separates the control layer and data layer of the network, making the control and management of the network more flexible and can be implemented through software instead of hardware.
[0055] NETCONF (Network Configuration Protocol) is a network configuration and management protocol based on Extensible Markup Language XML (Extensible Markup Language). It uses a simple RPC (Remote Procedure Call) mechanism to achieve communication between clients and servers.
[0056] SNMP (Simple Network Management Protocol) is an application layer protocol for network device management. It allows network administrators to monitor, configure and control devices in the network to ensure the normal operation and performance optimization of the network.
[0057] OpenFlow is a network communication protocol used for communication between controllers and forwarders in SDN architecture. It belongs to the data link layer and can control the forwarding plane of switches or routers on the Internet, thereby changing the network path taken by network data packets.
[0058] YANG file: A file written in YANG language syntax that is used to define the configuration data of network devices, such as interfaces, routes, access control lists (ACLs), etc. YANG files describe the configuration data structure of network devices, as well as data types and operations. By using YANG files, the configuration of network devices can be made more structured and manageable.
[0059] Embodiment 1:
[0060] Reference Figure 1 , shows a flowchart of a configuration model generation method based on the YANG language of the present application, which can be applied to electronic devices, wherein the method can specifically include the following steps:
[0061] S101, obtaining a configuration file in a cloud network service;
[0062] The configuration file is a YANG file, which at least includes the YANG version number, namespace, module name, import information and dependency information, revision time, and data structure definition information.
[0063] S102, determining a configuration model corresponding to the network element device name according to the network element device names and configuration files provided by different manufacturers;
[0064] According to different business requirements and configuration models, determine the target configuration model corresponding to the business requirements, including: calling the interface of the configuration system, and obtaining the configuration model structure corresponding to the configuration model name by passing in the configuration model name and configuration key parameters.
[0065] According to the network element device names and configuration files provided by different manufacturers, the configuration model corresponding to the network element device name is determined, including: according to the syntax of the YANG language, the YANG files of network element devices of different manufacturers are translated to obtain a structured configuration model; the structured configuration model is displayed on the interface, and the configuration model is programmed according to business needs.
[0066] According to the syntax of the YANG language, the YANG files of network elements of different manufacturers are translated to obtain a structured configuration model, including: marking the list types in the YANG files of network elements of different manufacturers, replacing the variables with identifiers, and processing them according to the field type during replacement; using s to replace the character type and using d to replace the integer type to obtain a structured configuration model.
[0067] S103: According to different business requirements and configuration models, determine a target configuration model corresponding to the business requirements.
[0068] Specifically, the SDN network controller system will be decoupled from the configuration model adaptation of the network device. The configuration model adaptation is handled by the programmable network device configuration model system based on the YANG language, which automatically generates the network device configuration model according to the YANG language model of the network device.
[0069] According to different business requirements and configuration models, determine the target configuration model corresponding to the business requirements, including: combining and splitting the structured configuration model to obtain the combined and split configuration model; extracting and assigning values to the variables of the structured configuration model; generating a configuration model production interface containing fixed network function elements based on the combined and split configuration model and the extracted variables.
[0070] like Figure 2 As shown in the figure, the programmable network device configuration model system based on the YANG language (hereinafter referred to as the "configuration system") mainly consists of three parts: YANG model translation, configuration model programming, and business system access.
[0071] YANG model translation: According to the syntax of the YANG language, the YANG files of the specified vendor's network element devices are translated and a structured configuration model is output. In the configuration model, the list type is marked and the variable identifier is replaced. When replacing, it is processed according to the field type: character type is replaced by s, and integer type is replaced by d. The YANG model translation method is the main invention point.
[0072] like Figure 3 As shown, configuration model programming: the configuration system provides visual programming capabilities, displays the structured configuration model translated from the YANG file on the interface, and programs the configuration model according to business needs. The programming method includes: combining and splitting the configuration model (needs to comply with the model definition); extracting and assigning variables of the configuration model; generating a configuration model production interface containing fixed network function elements with the combined and split configuration model and the extracted variables. The configuration model programming method is the main invention point.
[0073] Business system access: In the SDN network control system, the network configuration model production interface generated in the configuration system is called, and the required network configuration model corresponding to the specified YANG model is generated by filling in key parameters. Then, the network communication protocol provided by the network device is used to issue the network configuration, thereby realizing network services.
[0074] Through the above three processes, the SDN network controller system will be decoupled from the configuration model adaptation of the network device. The configuration model adaptation is the responsibility of the programmable network device configuration model system based on the YANG language, which automatically generates the network device configuration model according to the YANG language model of the network device.
[0075] This application obtains configuration files in cloud network services; determines the configuration model corresponding to the network element device name based on the network element device name and configuration files provided by different manufacturers; determines the target configuration model corresponding to the business requirements based on different business requirements and configuration models. The configuration system uses YANG files as the basis for configuration model parsing. According to structured data specifications, standard configuration model units can be output, which can constrain the device models and device capabilities of network element device manufacturers. Then, based on the programmable orchestration interface, the configuration model units are orchestrated into a configuration model structure that conforms to the cloud network service, shielding the configuration differences of different network element devices, reducing the workload of the cloud network management and control system for adapting the network element device configuration model, and improving the R&D efficiency of the cloud network management and control system.
[0076] Another embodiment of the present application further supplements the configuration model generation method based on the YANG language provided in the above embodiment. For details, please see Embodiment 2-3.
[0077] Embodiment 2:
[0078] According to the configuration model generation method based on YANG language described in Example 1, in some specific embodiments, the cloud network management and control system expands services and adapts to network element devices of new manufacturers, as follows:
[0079] Necessary condition: The vendor's network element devices support configuration definition using the YANG model.
[0080] The cloud network management and control system does not need to adapt the new configuration model of the new vendor's network element equipment at the code level. It only needs the following steps to automatically adapt the new vendor's network element equipment: sort out the common configuration model according to the cloud network business. For example: static routing configuration requires configuration parameters such as destination address, mask, forwarding domain, outbound interface, next hop, priority, etc.
[0081] Upload the YANG file matching the network element device provided by the manufacturer to the configuration system, and wait for the configuration system to parse the YANG file to generate the corresponding configuration model.
[0082] Through the visualization function of the configuration system, the configuration models corresponding to the configuration functions required by the business are screened out, variables are set in the key parameters for configuration parameter assignment, the current configuration model is named as the unique identifier of this configuration model, and the configuration model is associated with the model of the corresponding network element device.
[0083] Alternatively, under the premise that corresponding configuration functions have corresponding configuration models, the configuration models are differentiated by the models of network element devices, and the same configuration functions of the corresponding models are classified into the same configuration model.
[0084] The cloud network management and control system calls the configuration system's interface and obtains the corresponding configuration model structure (configuration data) by passing in the configuration model name and configuration key parameters.
[0085] The cloud network management and control system sends configuration data to the network elements through the configuration interface provided by the network element devices to realize cloud network business functions.
[0086] Embodiment 3:
[0087] According to the configuration model generation method based on YANG language described in Example 1, in some specific embodiments, the network element device configuration reconciliation function application is as follows:
[0088] The configuration system can obtain not only the configuration model but also the configuration data model by parsing the YANG file, which is used to read the configuration information of the network element device.
[0089] The configuration system creates a configuration reading model, specifies the configuration type or configuration reading range, generates a configuration reading interface, takes the configuration reading model and network element type as parameters, and returns the structure of the corresponding configuration reading model.
[0090] The cloud network management and control system calls the interface of the configuration system and uses the structure returned by the interface to obtain the network element configuration data through the configuration reading interface provided by the network element device.
[0091] In summary, the configuration model generation method based on the YANG language provided in this application has the following beneficial effects:
[0092] 1. The configuration system uses YANG files as the basis for configuration model parsing. According to structured data specifications, standard configuration model units can be output, which can constrain the device models and device capabilities of network element equipment manufacturers.
[0093] 2. Based on the programmable orchestration interface, the configuration model units are orchestrated into a configuration model structure that conforms to the cloud network business, shielding the configuration differences of different network element devices, reducing the workload of the cloud network management and control system for adapting the network element device configuration model, and improving the R&D efficiency of the cloud network management and control system.
[0094] 3. Based on the ability to combine programmable configuration models, it can provide assistance in the functional development that requires structured configuration of network element equipment, thereby improving R&D work efficiency.
[0095] The embodiment of the present application provides a configuration model generation method based on the YANG language, including: obtaining configuration files in cloud network services; determining the configuration model corresponding to the network element device name according to the network element device name and configuration files provided by different manufacturers; determining the target configuration model corresponding to the business requirements according to different business requirements and configuration models. The configuration system uses the YANG file as the basis for configuration model parsing, and can output standard configuration model units according to structured data specifications, which can constrain the device models and device capabilities of network element device manufacturers. Then, based on the programmable orchestration interface, the configuration model unit is orchestrated into a configuration model structure that conforms to the cloud network service, shielding the configuration differences of different network element devices, reducing the workload of the cloud network management and control system for adapting the network element device configuration model, and improving the R&D efficiency of the cloud network management and control system.
[0096] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0097] Embodiment 4:
[0098] like Figure 4 , which is a schematic diagram of the structure of a configuration model generation device based on the YANG language provided in an embodiment of the present application. The configuration model generation device based on the YANG language includes an acquisition module 401, a determination module 402 and a generation module 403, wherein:
[0099] The acquisition module 401 is used to obtain the configuration file in the cloud network service;
[0100] The determination module 402 is used to determine the configuration model corresponding to the network element device name according to the network element device names and configuration files provided by different manufacturers;
[0101] The generation module 403 is used to determine the target configuration model corresponding to the business requirements according to different business requirements and configuration models.
[0102] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0103] The embodiment of the present application provides a configuration model generation device based on the YANG language, including: obtaining configuration files in cloud network services; determining the configuration model corresponding to the network element device name according to the network element device name and configuration files provided by different manufacturers; determining the target configuration model corresponding to the business requirements according to different business requirements and configuration models. The configuration system uses the YANG file as the basis for configuration model parsing, and can output standard configuration model units according to structured data specifications, which can constrain the device models and device capabilities of network element device manufacturers. Then, based on the programmable orchestration interface, the configuration model unit is orchestrated into a configuration model structure that conforms to the cloud network service, shielding the configuration differences of different network element devices, reducing the workload of the cloud network management and control system for adapting the network element device configuration model, and improving the research and development efficiency of the cloud network management and control system. Another embodiment of the present application further supplements the configuration model generation device based on the YANG language provided in the above embodiment.
[0104] In some embodiments of the present application, the configuration file is a YANG file, which includes at least a YANG version number, a namespace, a module name, import information and dependency information, a revision time, and data structure definition information.
[0105] Among them, the generation module is used to call the interface of the configuration system, and obtain the configuration model structure corresponding to the configuration model name by passing in the configuration model name and configuration key parameters. Secondly, the generation module is also used to translate the YANG files of network element devices of different manufacturers according to the syntax of the YANG language to obtain a structured configuration model; display the structured configuration model on the interface, and program the configuration model according to business needs; thirdly, the generation module is also used to mark the list types in the YANG files of network element devices of different manufacturers, replace the identifiers of the variables, and process them according to the field type when replacing; use s to replace the character type and d to replace the integer type to obtain a structured configuration model. Finally, the generation module is also used to combine and split the structured configuration model to obtain the combined and split configuration model; extract and assign variables of the structured configuration model; generate a configuration model production interface containing fixed network function elements based on the combined and split configuration model and the extracted variables.
[0106] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0107] Embodiment 5:
[0108] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0109] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0110] Figure 5 800 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0111] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0112] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0113] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0114] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0115] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0116] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0117] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0118] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0119] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0120] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0121] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0122] Embodiment 6:
[0123] Figure 619 is a block diagram of a computer-readable storage medium 1900 shown in the present application. For example, the computer-readable storage medium 1900 may be provided as a server.
[0124] Reference Figure 6 , the computer-readable storage medium 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0125] The computer readable storage medium 1900 may also include a power supply component 1926 configured to perform power management of the computer readable storage medium 1900, a wired or wireless network interface 1950 configured to connect the computer readable storage medium 1900 to a network, and an input / output (I / O) interface 1958. The computer readable storage medium 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0128] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0129] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0130] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0131] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0134] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A configuration model generation method based on YANG language, characterized in that: The method comprises: Get the configuration files in the cloud network service; Determine a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers; According to different business requirements and the configuration model, a target configuration model corresponding to the business requirement is determined.
2. The configuration model generation method based on YANG language according to claim 1, characterized in that: The configuration file is a YANG file, which includes at least a YANG version number, a namespace, a module name, import information and dependency information, a revision time, and data structure definition information.
3. The configuration model generation method based on YANG language according to claim 1, characterized in that: The determining, according to different business requirements and the configuration model, a target configuration model corresponding to the business requirements includes: The interface of the configuration system is called, and the configuration model name and configuration key parameters are passed in to obtain the configuration model structure corresponding to the configuration model name.
4. The configuration model generation method based on YANG language according to claim 1, characterized in that: The determining, according to the network element device names and the configuration files provided by different manufacturers, a configuration model corresponding to the network element device name includes: According to the syntax of the YANG language, the YANG files of network elements of different manufacturers are translated to obtain a structured configuration model; The structured configuration model is displayed on the interface, and the configuration model is programmed according to business needs.
5. The configuration model generation method based on YANG language according to claim 4, characterized in that: According to the grammar of the YANG language, the YANG files of network element devices of different manufacturers are translated to obtain a structured configuration model, including: Mark the list types in the YANG files of network elements of different manufacturers, replace the identifiers of variables, and process them according to the field type during replacement; Use s to replace the character type and use d to replace the integer type to obtain the structured configuration model.
6. The configuration model generation method based on YANG language according to claim 5, characterized in that: The determining, according to different business requirements and the configuration model, a target configuration model corresponding to the business requirements includes: Combining and splitting the structured configuration model to obtain a combined and split configuration model; Extracting and assigning values to variables of the structured configuration model; A configuration model production interface including fixed network function elements is generated according to the combined decomposed configuration model and the extracted variables.
7. A configuration model generation device based on YANG language, characterized in that: The device comprises: The acquisition module is used to obtain the configuration files in the cloud network service; A determination module, used to determine a configuration model corresponding to the network element device name according to the network element device name and the configuration file provided by different manufacturers; The generation module is used to determine the target configuration model corresponding to the business requirements according to different business requirements and the configuration model.
8. The configuration model generation device based on YANG language according to claim 7, characterized in that: The configuration file is a YANG file, which at least includes a destination address, a mask, a forwarding domain, an outbound interface, a next hop and a priority.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Network equipment configuration management method and device, computing equipment and storage medium
CN111416736A
Atomic energy storage and rendering method and system for manufacturer YANG file, electronic equipment and storage medium
CN115951822A
Method and system for group aware distributed configuration transactions management across network devices
US20240223453A1
Cited By
Intention-driven network management method and system based on large language model
CN120768781A
TSN network configuration automatic generation method and system based on reflection Agent
CN121441738A