A method and device for generating a configuration model based on a YANG language

By using a configuration model generation method based on the YANG language, network device configuration models are automatically generated, solving the problems of high R&D costs and long deployment cycles caused by vendor differences in SDN network control systems, and achieving efficient configuration model adaptation.

CN119892649BActive Publication Date: 2025-11-04CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411773096.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-11-04
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

Existing SDN network control systems require the development of multiple network configuration models for different vendors' YANG language models, resulting in high R&D costs and long network product launch cycles.

Method used

By obtaining configuration files from cloud network services, and based on the network element device names and service requirements of different manufacturers, target configuration models are generated using the YANG language, masking device differences, and a programmable network device configuration model system is adopted to automatically generate network device configuration models.

Benefits of technology

It reduces the workload of adapting the cloud network management system to the network element device configuration model, improves R&D efficiency, and shields the configuration differences of different network element devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892649B_ABST
    Figure CN119892649B_ABST
Patent Text Reader

Abstract

The application provides a YANG language-based configuration model generation method and device, comprising: obtaining a configuration file in cloud network service; determining a configuration model corresponding to a 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 different service requirements and the configuration model; a configuration system uses a YANG file as a configuration model analysis basis, can output a standard configuration model unit according to a structured data specification, and can constrain device models and device capabilities of network element device manufacturers. According to a programmable arrangement interface, the configuration model unit is arranged into a configuration model structure body conforming to the cloud network service, the configuration differences of different network element devices are shielded, the workload of the cloud network management and control system in adapting to the network element device configuration model is reduced, and the research and development efficiency of the cloud network management and control system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network technology and security technology, and particularly relates to a configuration model generation method and device based on YANG language. BACKGROUND

[0002] Since the concept of SDN was proposed in the 1990s, after more than ten years of development, SDN has been widely applied in enterprise networks, data centers, cloud computing and the Internet, and various network vendors 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 device configuration protocols mainly include SNMP, NETCONF and Openflow, and mainstream device 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 devices that adapt to SDN on the market, and the YANG language models of different manufacturers are different, which causes the SDN control system to have to establish multiple network configuration models according to the YANG language models of different manufacturers to manage network devices, thereby increasing the research and development cost and prolonging the online cycle of network products.

[0004] The SDN network control system is a client C, and the network device is a server S. Each type of server S has a corresponding configuration model M. The client C interacts with the server S, and needs to build a configuration instance corresponding to the configuration model M on the client C. After the client C transmits the configuration instance into the server S through a network channel, the server S generates a corresponding network configuration according to the configuration instance, and completes the business target of the client C. The client C needs to understand all the configuration models M, so as to build the corresponding configuration instance.

[0005] Specifically, there is a new configuration model M1, and the client C develops a function module that adapts to the configuration model M1 according to network demand business. The function module can only be used for configuration instance generation of the configuration model M1. SUMMARY

[0006] The present application shows a configuration model generation method and device based on YANG language.

[0007] In a first aspect, the present application shows a configuration model generation method based on YANG language, which comprises:

[0008] Obtaining a configuration file in a cloud network business;

[0009] According to the network element device name provided by different manufacturers and the configuration file, determining a configuration model corresponding to the network element device name;

[0010] According to different service requirements and the configuration model, a target configuration model corresponding to the service requirements is determined.

[0011] Optionally, the YANG file at least includes 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 of the target configuration model corresponding to the service requirements according to different service requirements and the configuration model comprises:

[0013] An interface of a configuration system is called to obtain a configuration model structure corresponding to the configuration model name by inputting the configuration model name and a configuration key parameter.

[0014] Optionally, the determining of the configuration model corresponding to the network element device name according to the network element device name provided by different manufacturers and the configuration file comprises:

[0015] The YANG files of network element devices of different manufacturers are translated according to the syntax of the YANG language to obtain a structured configuration model.

[0016] The structured configuration model is displayed on an interface, and the configuration model is programmed according to service requirements.

[0017] Optionally, the translating of the YANG files of network element devices of different manufacturers according to the syntax of the YANG language to obtain a structured configuration model comprises:

[0018] List types in the YANG files of network element devices of different manufacturers are marked, and variable identifiers are replaced, and the replacement is processed according to field types.

[0019] Characters are replaced with s, and integers are replaced with d to obtain the structured configuration model.

[0020] Optionally, the determining of the target configuration model corresponding to the service requirements according to different service requirements and the configuration model comprises:

[0021] The structured configuration model is combined and split to obtain a combined and split configuration model.

[0022] Variables of the structured configuration model are extracted and assigned values.

[0023] A configuration model production interface containing fixed network function elements is generated according to the combined and split configuration model and the extracted variables.

[0024] In a second aspect, the application shows a generating device of a configuration model based on YANG language, the device comprises:

[0025] an acquiring module, configured to acquire a configuration file in a cloud network service;

[0026] a determining module, configured to determine a configuration model corresponding to a network element device name according to the network element device name provided by different manufacturers and the configuration file;

[0027] a generating module, configured to determine a target configuration model corresponding to a service requirement according to the service requirement and the configuration model.

[0028] Optionally, the configuration file is a YANG file, and the YANG file at least comprises 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 configured to:

[0030] invoke an interface of a configuration system, and obtain a configuration model structure corresponding to a configuration model name by inputting the configuration model name and configuration key parameters.

[0031] Optionally, the generating module is configured to:

[0032] translate YANG files of network element devices of different manufacturers according to a syntax of YANG language, and obtain a structured configuration model;

[0033] display the structured configuration model on an interface, and program the configuration model according to a service requirement.

[0034] Optionally, the generating module is configured to:

[0035] mark a list type in the YANG files of the network element devices of different manufacturers, and replace a variable with an identifier, wherein the replacement is performed according to a field type;

[0036] replace a character type with s and an integer type with d, and obtain the structured configuration model.

[0037] Optionally, the generating module is configured to:

[0038] combine and split the structured configuration model, and obtain a combined and split configuration model;

[0039] extract and assign a variable of the structured configuration model;

[0040] generate a configuration model production interface containing a fixed network function element according to the combined and split configuration model and the extracted variable.

[0041] In a third aspect, the present application shows an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method according to any one of the preceding aspects.

[0042] In a fourth aspect, the present application shows a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of the preceding aspects.

[0043] In a fifth aspect, the present application shows 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 perform the method according to any one of the preceding aspects.

[0044] The technical scheme provided by the present application can include the following beneficial effects: the embodiments of the present application provide a configuration model generation method and device based on YANG language, comprising: obtaining a configuration file in a cloud network service; determining a configuration model corresponding to a network element device name according to the network element device name provided by different manufacturers and the configuration file; determining a target configuration model corresponding to a service requirement according to different service requirements and the configuration model; the configuration system uses a YANG file as a configuration model analysis basis, and can output a standard configuration model unit according to a structured data specification, and can constrain device models and device capabilities of network element device manufacturers. Then, according to a programmable arrangement interface, the configuration model unit is arranged into a configuration model structure body conforming to the cloud network service, the configuration differences of different network element devices are shielded, the workload of the cloud network management and control system in adapting to the configuration model of the network element device is reduced, and the research and development efficiency of the cloud network management and control system is improved. BRIEF DESCRIPTION OF DRAWINGS

[0045] Figure 1 is a step flow chart of a configuration model generation method based on YANG language of the present application.

[0046] Figure 2 is a configuration system architecture diagram of the present application.

[0047] Figure 3 is a step flow chart of another configuration model generation method based on YANG language of the present application.

[0048] Figure 4 is a structure block diagram of a configuration model generation device based on YANG language of the present application.

[0049] Figure 5 is a block diagram of an electronic device of the present application.

[0050] Figure 6is a block diagram of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0052] Glossary:

[0053] YANG (Yet Another Next Generation): a data modeling language. YANG model defines the hierarchical structure of data, which can be used for operations based on network configuration management protocols (such as NETCONF / RESTCONF), including configuration, state data, remote procedure call and notification.

[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 rather than hardware.

[0055] NETCONF (Network Configuration Protocol) is a network configuration and management protocol based on XML (Extensible Markup Language) implementation, which uses a simple RPC (Remote Procedure Call) mechanism to realize communication between client and server.

[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 normal operation and performance optimization of the network.

[0057] OpenFlow is a network communication protocol applied to the communication between the controller and the forwarder in the SDN architecture. It belongs to the data link layer and can control the forwarding plane of the network switch or router, thereby changing the network path of the network packet.

[0058] YANG file: a file written in YANG language syntax for defining configuration data of network devices, such as interfaces, routes, access control lists (ACLs), etc. The YANG file describes the configuration data structure of the network device, as well as data types and operations. By using the YANG file, the configuration of the network device can be made more structured and manageable.

[0059] Embodiment 1

[0060] Referring to Figure 1 , a step flowchart of a configuration model generation method based on the YANG language is shown, which can be applied in electronic equipment, 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 a YANG version number, a namespace, a module name, import information and dependency information, a revision time, and data structure definition information.

[0063] S102, determining a configuration model corresponding to a network element device name according to the network element device name and the configuration file provided by different manufacturers;

[0064] According to different service requirements and configuration models, a target configuration model corresponding to the service requirements is determined, including: calling the interface of the configuration system, and obtaining the configuration model structure corresponding to the configuration model name by inputting the configuration model name and the configuration key parameter.

[0065] Among them, according to the network element device name and the configuration file 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 file of the network element device of different manufacturers is translated to obtain a structured configuration model; the structured configuration model is displayed on the interface, and the configuration model is programmed according to the business needs.

[0066] According to the syntax of the YANG language, the YANG file of the network element device of different manufacturers is translated to obtain a structured configuration model, including: marking the list type in the YANG file of the network element device of different manufacturers, and replacing the variable identifier; when replacing, the field type is processed; the character type is replaced by s, and the integer type is replaced by d to obtain a structured configuration model.

[0067] S103, determining a target configuration model corresponding to a service requirement according to different service requirements and configuration models.

[0068] Specifically, the SDN network controller system decouples the configuration model adaptation of the network device, the configuration model adaptation is responsible for the programmable network device configuration model system based on YANG language, and the network device configuration model is automatically generated according to the YANG language model of the network device.

[0069] According to different service requirements and configuration models, a target configuration model corresponding to the service requirement is determined, including: combination and splitting of the structured configuration model to obtain a combined and split configuration model; extracting and assigning variables of the structured configuration model; generating a configuration model production interface containing fixed network function elements according to the combined and split configuration model and the extracted variables.

[0070] As shown in Figure 2 The programmable network device configuration model system based on YANG language (hereinafter referred to as "configuration system") mainly has three parts: YANG model translation, configuration model programming, and service system access.

[0071] YANG model translation: According to the syntax of YANG language, the YANG file of the specified manufacturer network element device is translated, and the structured configuration model is output. In the configuration model, the list type is marked, and the variable is identifier replaced. When replacing, the field type is processed: the character type is replaced with s, and the integer type is replaced with d. The YANG model translation method is the main invention point.

[0072] As shown in Figure 3 Configuration model programming: The configuration system provides visual programming capabilities, displays the structured configuration model after the YANG file translation on the interface, and programs the configuration model according to the business needs. The programming method includes: combination and splitting of the configuration model (which needs to meet 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] Service system access: In the SDN network control system, the network configuration model production interface generated in the configuration system is called, the required network configuration model corresponding to the specified YANG model is generated by filling in the key parameters, and then the network communication protocol provided by the network device is used to issue the network configuration, thereby realizing the network service.

[0074] Through the above three processes, the SDN network controller system decouples the configuration model adaptation of the network device, the configuration model adaptation is responsible for the programmable network device configuration model system based on YANG language, and the network device configuration model is automatically generated according to the YANG language model of the network device.

[0075] The application obtains a configuration file in cloud network service; determines a configuration model corresponding to a network element device name according to the network element device name and the configuration file provided by different manufacturers; determines a target configuration model corresponding to service requirements according to different service requirements and the configuration model, and configures the system to use a YANG file as a configuration model analysis basis, can output a standard configuration model unit according to a structured data specification, and can constrain device models and device capabilities of network element device manufacturers. Then, according to a programmable arrangement interface, the configuration model unit is arranged into a configuration model structure body conforming to the cloud network service, the configuration differences of different network element devices are shielded, the workload of the cloud network management and control system in adapting the configuration model of the network element device is reduced, and the research and development efficiency of the cloud network management and control system is improved.

[0076] Another embodiment of the application further supplements the YANG language-based configuration model generation method provided in the above embodiments, and specific details are shown in Embodiment 2-3.

[0077] Embodiment 2:

[0078] According to the YANG language-based configuration model generation method in Embodiment 1, in some specific embodiments, the cloud network management and control system expands services and adapts to network element devices of new manufacturers, and the specific process is as follows:

[0079] Necessary condition: The network element device of the manufacturer supports using a YANG model to define configuration.

[0080] The cloud network management and control system does not need to adapt to the new configuration model of the network element device of the new manufacturer at the code level, and only needs to perform the following steps to automatically adapt to the network element device of the new manufacturer: According to the cloud network service, a general configuration model is sorted out. For example, the static route configuration needs to have the configuration parameters of destination address, mask, belonging forwarding domain, out interface, next hop, priority, and the like.

[0081] The YANG file matched by the network element device provided by the manufacturer is uploaded to the configuration system, and the configuration system is waited to parse the YANG file to generate a corresponding configuration model.

[0082] Through the visual function of the configuration system, the configuration model corresponding to the configuration function required by the service is filtered out, variables are set in the key parameters for configuration parameter assignment, the current configuration model is named, which is used as the unique identifier of the configuration model, and the configuration model is associated with the model of the corresponding network element device.

[0083] Or, under the premise that the corresponding configuration function has a corresponding configuration model, the configuration model is distinguished according to the model of the network element device, and the same configuration function of the corresponding model is classified into the same configuration model.

[0084] The cloud network management and control system calls the interface of the configuration system, and by inputting a configuration model name and configuration key parameters, a corresponding configuration model structure (configuration data) can be obtained.

[0085] The cloud network management and control system sends configuration data to a network element through a configuration interface provided by the network element, to realize cloud network service functions.

[0086] Embodiment 3

[0087] According to the configuration model generation method based on the YANG language in Embodiment 1, in some specific embodiments, the network element device configuration account function application is applied, and the specific implementation is as follows.

[0088] The configuration system can obtain a configuration data model by parsing a YANG file, to read configuration information of the network element device.

[0089] The configuration system creates a configuration reading model, specifies a configuration type or a configuration reading range, generates a configuration reading interface, and takes the configuration reading model and the network element type as parameters, to return a structure corresponding to the 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 network element configuration data through a configuration reading interface provided by the network element device.

[0091] In summary, the configuration model generation method based on the YANG language has the following beneficial effects.

[0092] 1. The configuration system uses a YANG file as a configuration model parsing basis, and can output a standard configuration model unit according to a structured data specification, to constrain device models and device capabilities of network element device manufacturers.

[0093] 2. The configuration model unit is arranged into a configuration model structure body conforming to cloud network services according to a programmable arrangement interface, to shield configuration differences of different network element devices, reduce the configuration model adaptation workload of the cloud network management and control system to the network element device, and improve the research and development efficiency of the cloud network management and control system.

[0094] 3. Based on the programmable configuration model combination capability, the network element device configuration can provide help for the development of structured functions, to improve the research and development efficiency.

[0095] The embodiment of the application provides a configuration model generation method based on a YANG language, including: obtaining a configuration file in cloud network service; determining a configuration model corresponding to a 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 a service requirement according to the service requirement and the configuration model; a configuration system uses a YANG file as a configuration model analysis basis, can output a standard configuration model unit according to a structured data specification, and can constrain device models and device capabilities of network element device manufacturers. Then, according to a programmable arrangement interface, the configuration model unit is arranged into a configuration model structure body conforming to the cloud network service, configuration differences of different network element devices are shielded, the workload of a cloud network management and control system in adapting to a network element device configuration model is reduced, and the research and development efficiency of the cloud network management and control system is improved.

[0096] It should be noted that each implementable manner in the embodiment can be implemented alone or in any combination manner without conflict.

[0097] Embodiment 4:

[0098] As shown in the structure schematic diagram of the configuration model generation device based on the YANG language provided by the embodiment of the application. Figure 4 The configuration model generation device based on the YANG language includes an obtaining module 401, a determining module 402 and a generating module 403, wherein:

[0099] The obtaining module 401 is used for obtaining a configuration file in cloud network service.

[0100] The determining module 402 is used for determining a configuration model corresponding to a network element device name according to the network element device name and the configuration file provided by different manufacturers.

[0101] The generating module 403 is used for determining a target configuration model corresponding to a service requirement according to the service requirement and the configuration model.

[0102] Regarding the device in the embodiment, the specific manners in which each module performs operations have been described in detail in the embodiment related to the method, and will not be described in detail here.

[0103] The embodiment of the application provides a configuration model generation device based on a YANG language, which comprises: obtaining a configuration file in a cloud network service; determining a configuration model corresponding to a 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 a service requirement according to the service requirement and the configuration model; using a YANG file as a configuration model analysis basis for a configuration system, and outputting a standard configuration model unit according to a structured data specification, so that the device model and the device capability of a network element device manufacturer can be constrained. According to a programmable arrangement interface, the configuration model unit is arranged into a configuration model structure body conforming to the cloud network service, the configuration differences of different network element devices are shielded, the workload of a cloud network management and control system in adapting to a network element device configuration model is reduced, and the research and development efficiency of the cloud network management and control system is improved. The embodiment of the application further supplements the configuration model generation device based on the YANG language provided in the above embodiment.

[0104] In some embodiments of the application, the configuration file is a YANG file, and the YANG file at least comprises a YANG version number, a namespace, a module name, import information and dependency information, a revision time and data structure definition information.

[0105] The generation module is configured to call an interface of a configuration system, and obtain a configuration model structure body corresponding to a configuration model name by inputting the configuration model name and a configuration key parameter. In addition, the generation module is further configured to translate YANG files of network element devices of different manufacturers according to the syntax of the YANG language, and obtain a structured configuration model; display the structured configuration model on an interface, and program the configuration model according to a service requirement; in addition, the generation module is further configured to mark a list type in the YANG files of the network element devices of different manufacturers, and replace a variable identifier; when replacing, the variable identifier is processed according to a field type; use s to replace a character type, and use d to replace an integer type, so as to obtain the structured configuration model. Finally, the generation module is further configured to combine and split the structured configuration model, and obtain a combined and split configuration model; extract and assign a variable of the structured configuration model; and generate a configuration model production interface containing a fixed network function element according to the combined and split configuration model and the extracted variable.

[0106] For the device embodiment, the description is relatively simple because the device embodiment is basically similar to the method embodiment, and relevant parts refer to the part of the description of the method embodiment.

[0107] Embodiment 5:

[0108] The embodiment of the present application further provides an electronic device, comprising: a processor, a memory, a computer program stored in the memory and executable in the processor, the computer program is executed by the processor to realize each process of the method embodiment and achieve the same technical effects, to avoid repetition, here will not be repeated.

[0109] The embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program is executed by the processor to realize each process of the method embodiment and achieve the same technical effects, to avoid repetition, here will not be repeated. The computer readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

[0110] Figure 5 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 can 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] Referring to Figure 5 , the electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply 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 displaying, making phone calls, data communications, camera operations and recording operations. The processing component 802 can 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 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate 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 the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile memory, 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 disc, or optical disc.

[0114] The power supply component 806 supplies power for various components of the electronic device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0115] The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. The front and rear cameras can receive external multimedia data when the electronic device 800 is in an operation mode, such as a photographing mode or a video mode. Each of the front and rear cameras can 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 an audio signal. For example, the audio component 810 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting an audio signal.

[0117] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0118] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device 800. For example, the sensor component 814 can detect an open / closed position of the device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change in position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, orientation or acceleration / deceleration / g-force and temperature of the electronic device 800. The sensor component 814 can include an optical sensor for detecting ambient light, a proximity sensor for detecting nearby objects without any physical touch, a CMOS or CCD image sensor for use in imaging applications, or an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor in some embodiments.

[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 cellular network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In an example embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 can further include 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) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.

[0120] In an example embodiment, the electronic device 800 can be implemented using 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, micro-controllers, microprocessors, or other electronic elements to perform the above-described methods.

[0121] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to implement the above-described methods. 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 disc, and an optical data storage device, etc.

[0122] Embodiment 6:

[0123] Figure 6is a block diagram of a computer-readable storage medium 1900 shown in the present application. For example, the computer-readable storage medium 1900 can be provided as a server.

[0124] Referring to 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 executable by the processing component 1922, such as an application program. The application program stored in the memory 1932 can include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to perform the above-mentioned method.

[0125] The computer-readable storage medium 1900 can 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 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0126] It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.

[0127] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present application.

[0128] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection of the present application.

[0129] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0130] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which 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 merely illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0132] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. Part or all of the units can be selected to achieve the purpose of the embodiment of the present application according to actual needs.

[0133] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0134] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc.

[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 can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for generating a configuration model based on a YANG language, characterized by, The method comprises: obtaining a configuration file in cloud network service; determining a configuration model corresponding to a network element device name provided by different manufacturers according to the network element device name and the configuration file; determining a target configuration model corresponding to different service requirements according to the configuration model and the service requirements; the determining of the configuration model corresponding to the network element device name provided by different manufacturers according to the network element device name and the configuration file comprises: translating YANG files of network element devices of different manufacturers according to the syntax of YANG language to obtain a structured configuration model; displaying the structured configuration model on an interface and programming the configuration model according to service requirements; the translating of the YANG files of network element devices of different manufacturers according to the syntax of YANG language to obtain the structured configuration model comprises: labeling list types in the YANG files of network element devices of different manufacturers and replacing variables with identifiers, and the replacement is performed according to field types; using s to replace character types and using d to replace integer types to obtain the structured configuration model; the determining of the target configuration model corresponding to the service requirements according to the configuration model and the service requirements comprises: 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; and generating a configuration model production interface containing fixed network function elements according to the combined and split configuration model and the extracted variables.

2. The method of claim 1, wherein the YANG language-based configuration model is generated by using a YANG language-based configuration model generation tool. The configuration file is a YANG file, and the YANG file at least comprises a YANG version number, a namespace, a module name, import information and dependency information, a revision time and data structure definition information. 3.The YANG language based configuration model generating method according to claim 1, characterized in that, the determining of the target configuration model corresponding to the service requirements according to the configuration model and the service requirements comprises: calling an interface of a configuration system to obtain a configuration model structure corresponding to a configuration model name and configuration key parameters.

4. A YANG language-based configuration model generation apparatus characterized by comprising: The device comprises: an obtaining module configured to obtain a configuration file in cloud network service; a determining module configured to determine a configuration model corresponding to a network element device name provided by different manufacturers according to the network element device name and the configuration file; a generating module configured to determine a target configuration model corresponding to different service requirements according to the configuration model and the service requirements; the determining of the configuration model corresponding to the network element device name provided by different manufacturers according to the network element device name and the configuration file comprises: translating YANG files of network element devices of different manufacturers according to the syntax of YANG language to obtain a structured configuration model; displaying the structured configuration model on an interface and programming the configuration model according to service requirements; the translating of the YANG files of network element devices of different manufacturers according to the syntax of YANG language to obtain the structured configuration model comprises: labeling list types in the YANG files of network element devices of different manufacturers and replacing variables with identifiers, and the replacement is performed according to field types; using s instead of character type and d instead of integer type, to obtain the structured configuration model; determining a target configuration model corresponding to the service requirement according to the different service requirements and the configuration model, comprising: performing combination and splitting on the structured configuration model to obtain a combination and splitting configuration model; extracting and assigning variables of the structured configuration model; generating a configuration model production interface containing fixed network function elements according to the combination and splitting configuration model and the extracted variables.

5. The YANG language based configuration model generating apparatus according to claim 4, characterized by, The configuration file is a YANG file, and the YANG file at least includes a destination address, a mask, a forwarding domain to which the YANG file belongs, an outgoing interface, a next hop and a priority.

6. An electronic device, comprising: comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the method according to any one of claims 1 to 3.

7. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executable by the processor to implement the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Network equipment configuration management method and device, computing equipment and storage medium

    CN111416736A

  • Method and system for group aware distributed configuration transactions management across network devices

    US20240223453A1