Automatic discovery of manual configuration changes

By receiving resource provisioning code and configuration trees in SDN, generating candidate sets and integrating manual intent, it solves the manual configuration intent identification problem, improves network configuration automation, and reduces errors and administrator intervention.

CN113826358BActive Publication Date: 2024-10-29CISCO TECHNOLOGY INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202080035897.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-10-29
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

In software-defined networking (SDN), the difficulty of identifying and understanding the intent of manual configuration makes the network configuration change process expensive and error-prone, especially when the administrator is not present.

Method used

Generate a constraint set by receiving the resource supply code, generate a candidate set based on the configuration tree, and determine the candidate set that meets the constraints as a manual intent, integrate it into the automatic configuration system, and automatically identify and implement effective configurations.

Benefits of technology

It realizes the recognition and management of manual configuration changes by the automated system, reduces the occurrence of errors, improves the automation of network configuration, and reduces the need for manual intervention by administrators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113826358B_ABST
    Figure CN113826358B_ABST
Patent Text Reader

Abstract

A technique for automatic analysis and classification of network configurations is provided. Resource provisioning code for provisioning resources in a network is received, and a constraint set is generated based on the resource provisioning code, wherein the constraint set defines a valid network configuration. A configuration tree of the network is received, and a candidate set is generated for the network based at least in part on the configuration tree. Upon determining that a first candidate in the candidate set does not fail any constraint in the constraint set, the first candidate is recorded as a manual intent. The manual intent is integrated into an automatic configuration system for the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments presented in this disclosure relate generally to software defined networks. More specifically, embodiments disclosed herein relate to automatic discovery of manually configured intent in network configurations. Background Art

[0002] A typical computer network is subject to frequent configuration changes in daily use. These changes can include adding or removing physical or virtual devices (e.g., gateways, routers, switches, etc.), modifying interfaces, etc. In many existing networks, especially in software-defined networks (SDNs), this process is performed manually using resource provisioners. For example, an administrator can provide input to a provisioner, which performs the actual configuration changes required to meet the user's intent. In some systems, the network uses intent-based configuration, where the administrator specifies the desired outcome (e.g., "what" the network should do) and the provisioner implements the intent (e.g., determines "how" the outcome is achieved). Network configuration is also becoming increasingly automated, and resource provisioners that require manual interaction are being replaced by automated systems. In order to function as intended, these automated systems must be able to recognize and understand the intent and configuration of manually configured ones that exist in the network. Typically, this requires users to manually specify previous configuration changes. This process is expensive, requires a significant time investment, and is prone to errors, especially when the network administrator may no longer remember the changes (or may no longer be available). BRIEF DESCRIPTION OF THE DRAWINGS

[0003] Thus, a more particular description of the present disclosure, having been briefly summarized above in order to understand in detail the manner in which the above-described features of the present disclosure can be understood, can be understood by reference to embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the drawings illustrate typical embodiments and are therefore not to be considered limiting; other equally effective embodiments are also contemplated.

[0004] Figure 1 Illustrated is a workflow for identifying manually configured intent that can be ingested into an automated resource provisioning system.

[0005] Figure 2 A workflow is illustrated showing the operation of an automatic configuration analysis application in identifying manual changes in a network configuration according to one embodiment disclosed herein.

[0006] Figure 3 An example service provider, provider pattern, and configuration tree are illustrated according to one embodiment disclosed herein.

[0007] Figure 4 is a block diagram illustrating a configuration analysis device configured to automatically identify manual intent in a network according to one embodiment disclosed herein.

[0008] Figure 5 is a flow chart illustrating a method of analyzing service provisioning programs and patterns to generate constraints on network configurations for valid configurations according to one embodiment disclosed herein.

[0009] Figure 6 is a flow chart illustrating a method of automatically identifying manually configured intent in a network configuration according to one embodiment disclosed herein.

[0010] Figure 7 is a flow chart illustrating a method of automatically identifying manual intent and ingesting the manual intent into an automatic configuration system according to one embodiment disclosed herein.

[0011] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation. DETAILED DESCRIPTION

[0012] Overview

[0013] Aspects of the invention are set out in the independent claims and preferred features are set out in the dependent claims. Features of one aspect may apply to each aspect alone or in combination with other aspects.

[0014] According to one embodiment presented in the present disclosure, a method is provided. The method includes receiving a resource provisioning code for provisioning resources in a network, and generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration. The method also includes receiving a configuration tree of the network, and generating a candidate set for the network based at least in part on the configuration tree. In addition, when it is determined through the operation of one or more computer processors that a first candidate in the candidate set does not fail any constraint in the constraint set, the method includes recording the first candidate as a first manual intent. Finally, the method includes integrating the first manual intent into an automatic configuration system of the network.

[0015] According to a second embodiment presented in the present disclosure, a non-transitory computer-readable storage medium is provided. The computer-readable storage medium has a computer-readable program code embodied therein, and the computer-readable program code can be executed by one or more computer processors to perform an operation. The operation includes receiving a resource provisioning code for provisioning resources in a network, and generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration. The operation also includes receiving a configuration tree of the network, and generating a candidate set for the network based at least in part on the configuration tree. In addition, when it is determined that the first candidate in the candidate set does not fail any constraint in the constraint set, the operation includes recording the first candidate as a first manual intent. Finally, the operation includes integrating the first manual intent into an automatic configuration system of the network.

[0016] According to a third embodiment presented in the present disclosure, a system is provided. The system includes one or more computer processors, and a memory containing a program that performs an operation when executed by the one or more computer processors. The operation includes receiving a resource provisioning code for provisioning resources in a network, and generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration. The operation also includes receiving a configuration tree of the network, and generating a candidate set for the network based at least in part on the configuration tree. In addition, when it is determined that the first candidate in the candidate set does not fail any constraint in the constraint set, the operation includes recording the first candidate as a first manual intent. Finally, the operation includes integrating the first manual intent into the automatic configuration system of the network.

[0017] Example Embodiments

[0018] Embodiments of the present disclosure enable identification of manual configuration changes and intent in a manner that allows an automated configuration system to take ownership of those configurations. In an embodiment, if a configuration change is implemented consistently with a resource provisioning system or program, the change can be identified as a "valid" configuration that should be ingested and implemented / controlled by an automated system. In contrast, if the configuration is implemented without using an established provisioning system (e.g., as a one-time adjustment), some embodiments of the present disclosure may mark the change as suspicious, unverified, invalid, or otherwise requiring additional review. That is, because the change was not made using an established program or process, the automated system cannot ingest and take ownership of it because there is no understanding of the inputs used or the intended intent. In addition, because the changes are made without defined provisioning software, the changes may violate specifications or preferences that define how the network should be configured.

[0019] In one embodiment, the system described herein applies constraint solving to the configuration tree to effectively execute the provisioning code in reverse order to identify the inputs originally applied by the administrator to reach the current configuration. Although service provisioning code (in fact, most software) is generally irreversible, given typical network configurations and software, this problem is highly tractable, and embodiments of the present disclosure can reliably handle actual use cases. In some embodiments of the present disclosure, the configuration of a computer network is modeled as a tree, such as using extensible markup language (XML). In addition, in embodiments of the present disclosure, service provisioning and / or intent-based networking are implemented as domain-specific languages ​​(DSLs) on these trees. In an embodiment, the configuration tree is recursively matched against a template (e.g., a constraint) so that if the match fails at any point in the tree, the match will reliably fail at the first (e.g., highest) level that violates the constraint in the tree. That is, the system can analyze each node of the configuration tree separately (starting from the highest level of the tree) without having to analyze the entire tree at the same time. If the match will fail at a given node, the system may identify this failure at a relatively high level of the tree. Furthermore, in some embodiments, if a match fails at a node, the system need not analyze any child nodes of the failed node, further improving the efficiency and resource usage of the presently described system.

[0020] In an embodiment, the configuration tree may be described by a pattern, where each pattern node in the pattern has zero or more instances in the configuration tree, and each configuration node in the configuration tree corresponds to at least one node in the pattern. In an embodiment, the pattern describes the structure of the provisioned software (e.g., hierarchy, inheritance, data types, etc.). For example, a pattern tree may have a "device" node with child nodes corresponding to flags, interfaces, descriptions, etc. In an embodiment, the service provisioning code is a pattern-aware program P, such that for a given pattern node S, the program P can be specialized as P S , so that given input I, P S (I) Generate N, where N is a valid node in the configuration tree of the network. In some embodiments of the present disclosure, an algorithm is recursively applied to each node in the pattern, a dedicated program, and / or a corresponding node in the configuration to identify potential inputs that represent previous configuration intent. In some embodiments of the present disclosure, an intent-based system is used to configure the network. In such an embodiment, an administrator can define desired results (e.g., what they want the network to do), and the resource provisioning program can implement these intents by precisely determining how to achieve the desired goals.

[0021] In some embodiments, candidates are created based in part on a configuration tree, where each candidate is a set of potential inputs to a service provider. In addition, constraints are generated based in part on a service provider, where each constraint represents a restriction or requirement that the input / configuration should comply with, as defined in the provider. If a candidate is incompatible with a constraint, it is excluded from further consideration. In one embodiment, these excluded candidate representatives cannot use configuration changes made by the provider. That is, if such an invalid candidate is found in the actual configuration, it must be made informally (e.g., without using the provisioning system), making the nature of the configuration uncertain and unexplained. In one embodiment, these failed candidates are referred to as "invalid" candidates. Although referred to as "invalid," these candidates can certainly represent desired configuration nodes in the network. These candidates or nodes are referred to as "invalid" only to indicate that they were not created using the defined provisioning software and therefore cannot be verified, interpreted, or ingested into the automation system.

[0022] In an embodiment, if a candidate is compatible with the constraints, it is a valid input to the program, meaning that it can be provided to the provisioning system to generate an output configuration that actually exists in the network. In an embodiment, these valid candidates are identified as manual configuration intentions that are "correctly" executed (e.g., using provisioning software). These configuration changes can then be ingested into the automated configuration system and implemented in the network as needed. In addition, in some embodiments, if a candidate does not clearly satisfy the constraints, it is split to generate new candidates. For example, if there are two (or more) values ​​(e.g., input sets) that cause a candidate to satisfy the constraints (and produce a configuration that actually exists in the network), two (or more) candidates are generated to reflect these potential inputs.

[0023] Figure 1 A workflow 100 for identifying an intended manual configuration that can be ingested into an automatic resource provisioning system is illustrated. In the illustrated workflow 100, an administrator 105 interacts with one or more service providers 110 to generate a configuration for one or more networks. As shown, the configuration can be represented as a configuration tree 115. In addition, in the illustrated embodiment, the configuration can also be modified externally (e.g., manually and without using a defined service provider 110), as indicated by other inputs 112. In some embodiments, it is preferred to use a service provider 110 to make configuration changes because these programs typically ensure that the configuration is consistent and adheres to preferred guidelines, definitions, etc. However, as is common in existing networks, administrators can also modify the configuration directly, such as correcting a one-off problem unique to a specific context. Although this manual configuration is not preferred, it is still common.

[0024] In an embodiment of the present disclosure, the configuration analysis application 120 analyzes the configuration tree 115 to classify each portion of the configuration as "valid" or "legal," indicating that it is implemented using the provisioning software, or "invalid" or "illegal," indicating that it is implemented external to these programs. In the illustrated embodiment, the configuration analysis application 120 receives code for the service provisioning program 110 and the configuration tree 115. In some embodiments, the configuration analysis application 120 also receives a schema that describes the configuration. In one embodiment, if a schema is not available (or does not exist), the configuration analysis application 120 analyzes the service provisioning program 110 and / or the configuration tree 115 to infer and generate a corresponding schema.

[0025] In the illustrated embodiment, based on the input, the configuration analysis application 120 separates valid input 125 from invalid nodes 130. In one embodiment, the valid input 125 corresponds to a candidate that satisfies each generated constraint, so that given the input, the service provider 110 will generate one or more nodes that actually exist in the configuration tree 115. Similarly, in an embodiment, the invalid node 130 corresponds to a portion of the configuration tree 115 that cannot be generated using the service provider 110, and is therefore created or modified using other means. As in the illustrated embodiment, in some embodiments, the valid input 125 is ingested into the automatic provisioning system 135 so that the underlying configuration can be automatically implemented. In one embodiment, the automatic provisioning system 135 allows the network configuration to be automated while coexisting with human administrators. For example, the automatic provisioning system 135 can be deployed to learn the intent of previous configurations, and thus these intents can be recreated when needed without the administrator manually configuring them again.

[0026] Instead, invalid nodes 130 are marked for additional processing 140. In various embodiments, additional processing 140 may include, for example, a review by a human to determine underlying intent, or to make a decision about how the configuration should be implemented in the automatic provisioning system 135. In other embodiments, additional processing 140 may include the use of one or more other algorithms, heuristics, etc. In existing systems, all configuration changes must go through this tedious and error-prone process. However, embodiments of the present disclosure enable automatic identification and implementation of "valid" configurations.

[0027] Figure 2A workflow 200 is shown according to one embodiment disclosed herein, which illustrates the operation of the automatic configuration analysis application 120 in identifying manual changes in a network configuration. In the illustrated embodiment, the service provider 110 and the provider pattern 215 are provided as input to a constraint generator 220 included in the configuration analysis application 120. In an embodiment, the constraint generator 220 identifies each pattern node in the provider pattern 215 and identifies the corresponding portion of the service provider 110 associated with the pattern node. In this way, the constraint generator 220 can generate a set of one or more constraints 225 for each pattern node. In an embodiment, each constraint 225 generally indicates a restriction or limitation on a valid configuration node (e.g., an input that produces a valid configuration node as an output). The nodes in the configuration tree 115 can then be analyzed according to these constraints 225 to identify valid and invalid nodes.

[0028] As an example, assume that a "flag" node exists in the provider schema 215, and the service provider 110 includes a line of code that sets this flag to a constant value. In such an embodiment, the constraint generator 220 can generate a "constant" constraint indicating that the only valid value for this "flag" node in the configuration tree 115 is the identified constant value. In other words, for each instance of the "flag" node in the configuration tree 115, the value must be equal to the constant specified in the service provider 110. If a given node is different, the node was not generated (or subsequently modified) using the service provider 110. Instead, it was manually created or modified by a user without the use of a defined procedure. Therefore, the automation system may not be able to absorb or ingest this particular node or configuration. In an embodiment, the faulty node may subsequently be reviewed by a system administrator or using one or more heuristics or other algorithms.

[0029] In the illustrated embodiment, the supply program pattern 215 is also provided to a candidate evaluator 240 along with the configuration tree 115. In the illustrated embodiment, the candidate evaluator 240 iteratively and recursively applies the constraints 225 generated for each pattern node to the configuration tree 115 to generate (and modify, narrow, or exclude) candidates 235. For example, continuing with the example above, if the pattern node being analyzed is "flag", the candidate evaluator 240 identifies all instances of this particular "flag" node in the configuration tree 115. In the illustrated embodiment, the configuration analysis application 120 can generate a set of one or more candidates 235 based on the values ​​observed in the configuration tree 115. For example, if the configuration tree 115 includes three different values ​​for the "flag" node, the candidate evaluator 240 can generate three separate candidates 235, one for each value discovered.

[0030] As shown, these candidates 235 are recursively and iteratively fed back to the candidate evaluator 240 to continue to apply constraints 225 to the candidates 235. In an embodiment, as described above, if a given candidate 235 does not meet at least one constraint 225, it is excluded from further consideration and is classified as an invalid node 130. In some embodiments, the remainder of the branches in the configuration tree 115 (e.g., all child nodes of the invalid node 130) are similarly classified as invalid. For example, if the "interface" node is found to be invalid, all child nodes (e.g., the "description" node of the interface) are also invalid. In one embodiment, if a given candidate 235 explicitly satisfies all applicable constraints 225, it is classified as a valid input 125, indicating that the corresponding configuration node covered by the candidate 235 is a "valid" node in the tree. In addition, if a given candidate 235 does not explicitly meet the constraints 225 (e.g., because there are two or more ways that the candidate can meet the constraints), it is divided into multiple candidates 235 for further analysis.

[0031] In some embodiments, the candidates 235 are modified in the process so that each candidate 235 can potentially accumulate information each time it passes through the evaluator. That is, in an embodiment, when additional constraints 225 are applied, the candidates 235 can be narrowed or constrained based on the requirements imposed by the constraints 225 and / or the configuration tree 115. For example, if a particular constraint 225 requires a specific value together with the configuration tree 115, the candidate 235 can be modified to include the value. In one embodiment, the candidate evaluator 240 analyzes all pattern nodes in the supply program pattern 215 and then analyzes each candidate 235. In some embodiments, the configuration analysis application 120 does not analyze the entire tree at the same time, but iteratively and recursively analyzes each pattern node in turn. In an embodiment, if a configuration node is found to be invalid, the configuration analysis application 120 stops considering the corresponding branch of the configuration tree 115. For example, if the highest level node in the supply program pattern 215 is a "device" node, the configuration analysis application 120 first generates a candidate and analyzes each identified device node in the configuration tree 115. If any nodes are found to be invalid at this level of the schema, they are discarded and their child nodes (eg, interfaces) are ignored.

[0032] Conversely, for each device node found to be valid in the configuration (e.g., if the corresponding candidate covering the device node satisfies the relevant constraints), the configuration analysis application 120 can proceed to the next level of the provider pattern 215 (e.g., the "interface" node) and similarly generate candidates for analysis. In an embodiment, depending on the specific implementation, a breadth-first search and / or a depth-first search can be used to perform this operation. For example, in a depth-first system, the configuration analysis application 120 can completely analyze each "device" node (iterate through all its child nodes, the child nodes of these child nodes, etc.) until the "device" node is found to be valid or invalid (e.g., a valid input 125 or a valid node, or an invalid node 130 or an invalid input). The configuration analysis application 120 then iterates through each such device node. In contrast, using a breadth-first search, the configuration analysis application 120 analyzes each "device" node, then the child nodes of the first level of the hierarchy of each device node, and so on, progressively iterating through deeper levels of the tree.

[0033] Figure 3 An example service provider 110, a provider pattern 215, and a configuration tree 115 are illustrated according to one embodiment disclosed herein. In the illustrated embodiment, the service provider 110, the provider pattern 215, and the configuration tree 115 are used as a simple example to aid understanding. Of course, in practice, the service provider 110, the provider pattern 215, and the configuration tree 115 may be much more complex. As shown, the example service provider 110 receives two inputs, "device" and "interface", and generates a configuration of the device (e.g., in SDN).

[0034] As shown in the figure, the supply program pattern 215 defines the structure of the service supply program 110 and the configuration tree 115, and the possible nodes in the final configuration. Specifically, there can be zero or more "device" nodes, and each node can have zero or more child nodes. As shown in the figure, each "device" node should specify "device", which is provided as the input of the program. In addition, any child node of each device node can be a "FlagA" node or an "interface" node. In one embodiment, the "FlagA" node has an integer value and has no child nodes. Similarly, as shown in the figure, each "interface" node includes an interface list, and each such node in the configuration tree 115 can have zero or more child nodes, wherein each child node is an instance of a "description" node. The description node includes a string. In some embodiments, the configuration tree 115 cannot include nodes that are not defined in the supply program pattern 215. In another embodiment, if a node is identified in the configuration tree 115 and there is no corresponding node in the supply program pattern 215, the system can determine that the identified node is "invalid" because it cannot be generated using the service supply program 110.

[0035] In some embodiments, if a provider schema 215 is not available, the configuration analysis application 120 generates one based on the service provider 110 and / or the configuration tree 115. For example, in one embodiment, the configuration analysis application 120 identifies all nodes in the configuration tree 115, groups nodes with a shared structure (e.g., "device" nodes, "interface" nodes, etc.) and generates a schema. In another embodiment, the configuration analysis application 120 reviews the service provider 110 to identify outputs (e.g., nodes in the tree) that it can create.

[0036] In the illustrated embodiment, the service provider 110 and the provider pattern 215 can be used to generate constraints for valid inputs to the network configuration. In some embodiments, constraints are generated on the basis of each pattern node. For example, for a device pattern node, the constraint generator 220 can identify the corresponding part of the service provider 110. That is, the constraint generator 220 identifies all parts of the service provider 110 that create or modify the "device" node. In the illustrated embodiment, the only applicable constraint for the "device" node (as defined in the service provider 110) is an equality constraint, specifying that the value must be a list of one or more "devices" entered by the user. That is, the equality constraint forces the existing candidate to adopt the value found in the configuration tree 115. Similarly, for an "interface" pattern node, the constraint generator 220 can refer to the service provider 110 to generate an equality constraint, stating that the node (if present) must contain a list of one or more "interfaces" provided by the user.

[0037] Turning to the "flagA" mode node, in an embodiment, the constraint generator 220 may determine based on the service provider 110 that the only valid value is the constant "1". In addition, the "description" node (if present) should contain a string stating "interface, used for", followed by the same "device" used in the corresponding device node (e.g., parent node) of the interface. In this way, the constraint generator 220 can generate a series of constraints that are applied to each node and each candidate in the configuration tree 115 in order to determine whether the node is a valid output of the service provider 110.

[0038] As shown, the configuration tree 115 has three device nodes. In an embodiment, the candidate evaluator 240 starts at the highest level of the pattern and analyzes the subsequent deeper levels iteratively and / or recursively. In such an embodiment, the candidate evaluator 240 starts the analysis with the "device" node in the provider pattern 215. As described above, the corresponding constraint of the "device" node in the pattern is an equality constraint, which forces the remaining candidates to have a value equal to the value found in the configuration tree 115. Based on the configuration tree 115 shown, which includes three different values ​​of "device", the candidate evaluator 240 can generate three candidates: {device = "X"}, {device = "Y"} and {device = "Z"}. In other words, in one embodiment, it is conceivable that the initial candidate includes all nodes in the configuration (e.g., no defined input values). Because the first constraint is an equality constraint, which forces the candidate to take a value equal to the value in the configuration, the application of this constraint divides the initial candidate into three candidates: one for each identified value. These candidates then collectively cover the entire configuration tree 115 (because candidates have not yet been excluded).

[0039] Therefore, at this first level, three candidates are generated, and each remains "valid". Then continue to analyze the next pattern node. In an embodiment, the candidate evaluator 240 then selects the child node of the "device" node in the pattern (e.g., the "flagA" node) and identifies the corresponding constraint. In the illustrated embodiment, the constraint is a constant constraint. In one embodiment, the constant constraint does not modify the candidate (e.g., by adopting the value specified in the configuration tree 115), but forces them to have a defined constant value. All candidates that cover nodes that do not have this value are excluded. In another embodiment, the constant constraint narrows the scope of the candidate by adding the specified value to the definition of the candidate. In the illustrated embodiment, the candidates {device = "Y"} and {device = "Z"} corresponding to the devices Y and Z in the configuration tree 115 meet the constraint and are therefore considered to be "constrained" and remain valid. On the contrary, the candidate {device = "X"} corresponding to device X fails because the corresponding value of the flagA node belonging to device X in the configuration tree 115 is "2".

[0040] Thus, in an embodiment, candidate evaluator 240 may determine that the first candidate {device="X"} is invalid, as is the corresponding branch of configuration tree 115. In one embodiment, the candidate is thereby exempted from further processing. In some embodiments, the candidate is flagged for human review or for other additional processing.

[0041] Continuing with the illustrated example, candidate evaluator 240 may then turn to the next node in provider schema 215: the "Interface" node. As described above, the corresponding constraint for this schema node is another equality constraint that narrows down each remaining candidate based on the value found in configuration tree 115. In the illustrated embodiment, for the {device="Y"} candidate, candidate evaluator 240 identifies the value "If0" and therefore limits or narrows down the candidates to {device="Y"; interface="If0"}. For candidate {device="Z"}, the constraint does not explicitly apply. That is, because configuration tree 115 includes two interface nodes with different values ​​for the interface schema node for candidate {device="Y"}, candidate evaluator 240 divides the candidate into two new ones: {device="Y"; interface="If0"} and {device="Y"; interface="If1"}.

[0042] Continuing to the "Description" pattern node, the candidate evaluator 240 again identifies a corresponding constraint, which is another equality constraint that requires the candidate to have a string that matches the string found in the configuration tree 115. As a reminder, based on the service provider 110, this constraint further requires that the string value in the configuration node be "Interface, For" followed by the "Device" listed in the candidate. If the strings do not match, the candidate is eliminated. In the illustrated embodiment, the candidate {Device="Y"; Interface="If0"} therefore fails and is eliminated. That is, the candidate specifies {Device="Y"} and the Description node specifies {Description="Interface, For X"}. Because this does not meet the constraint, the candidate is eliminated and / or marked for further review.

[0043] Similarly, the candidate {device="Z"; interface="If1"} fails because the corresponding string does not match the requirements imposed by the service provider 110. In contrast, the candidate {device="Z"; interface="If0"} satisfies this constraint and remains valid. Since there are no remaining pattern nodes to evaluate, the candidate evaluator 240 can thus mark this candidate as valid and absorb the corresponding input into the automatic provisioning system.

[0044] Figure 44 is a block diagram showing a configuration analysis device 405 configured to automatically identify manual intent in a network according to one embodiment disclosed herein. As shown, the configuration analysis device 405 includes a processor 410, a memory 415, a storage device 420, and a network interface 425. In the illustrated embodiment, the processor 410 retrieves and executes programming instructions stored in the memory 415 and stores and retrieves application data residing in the storage device 420. The processor 410 represents a single CPU, multiple CPUs, a single CPU with multiple processing cores, etc. The memory 415 is generally included to represent a random access memory. The storage device 420 can be a disk drive or a flash-based storage device, and can include fixed and / or removable storage devices, such as a fixed disk drive, a removable memory card, or an optical storage device, a network attached storage device (NAS) or a storage area network (SAN). Via the network interface 425, the configuration analysis device 405 can be communicatively coupled with one or more other devices (including devices used by administrators, network devices, etc.).

[0045] In the illustrated embodiment, the storage device 420 includes source code for one or more service providers 110, corresponding provider schemas 215 for one or more service providers 110, and a configuration tree 115. Although illustrated as residing in the memory 420, in an embodiment, the service providers 110, provider schemas 215, and configuration trees 115 may reside in any suitable location. In an embodiment, the service provider 110 is software used by a network administrator to configure and modify network configurations. In one embodiment, the service provider 110 is used to configure a software defined network (SDN), such as by creating and modifying physical and virtual devices, ports, interfaces, forwarding tables, etc. Typically, the service provider 110 is configured to receive user input (e.g., the name of an interface or an endpoint of a connection) and modify the configuration of the network based on the input (e.g., by creating a new interface or establishing a connection).

[0046] In an embodiment, there may be any number of service providers 110 for configuring the network and provisioning services and resources. In an embodiment, in order to analyze the configuration tree 115, a user may provide access to the service providers 110 and / or their source code to the configuration analysis application 120. In the illustrated embodiment, each provider schema 215 indicates the structure (e.g., objects, data types, etc.) of the corresponding service provider 110. In an embodiment, each node in a given provider schema 215 may have zero or more instances in the configuration tree 115. That is, a given schema node (e.g., an "interface" node) may or may not be found in an actual configuration and may have multiple instances in a configuration. In an embodiment, each corresponding configuration node for a given schema node may be associated with one or more specific values ​​(e.g., a name, a description, etc.).

[0047] In one embodiment, there is a provider pattern 215 for each relevant service provider 110. In some embodiments, one or more service providers 110 may not be associated with a defined pattern. In one embodiment, a user or administrator may define a pattern based on code. In another embodiment, the configuration analysis application 120 may analyze the code and / or configuration to infer the pattern. In the illustrated embodiment, the configuration tree 115 is a tree structure that represents the current configuration of a given network at a given moment. In one embodiment, the configuration tree 115 includes each element of the network configuration that is of interest to the automation system. In some embodiments, for each configuration node in the configuration tree 115, there is a corresponding pattern node in one or more provider patterns 215. In another embodiment, if a configuration node is not found in any relevant pattern, the configuration analysis application 120 may determine that the configuration node is "invalid" or otherwise uninterpretable. That is, the node could not have been created using an available service provider 110. In this case, the node was either manually created or modified without such software, or there is at least one service provider 110 that the configuration analysis application 120 is not aware of.

[0048] In the illustrated embodiment, the memory 415 includes the configuration analysis application 120. Although illustrated as software resident in the memory, in an embodiment, the functions of the configuration analysis application 120 can be implemented using hardware, software, or a combination of hardware and software. As shown, the configuration analysis application 120 includes a constraint generator 220 and a candidate evaluator 240. Although depicted as discrete components for illustration, in an embodiment, the operations of the constraint generator 220 and the candidate evaluator 240 can be combined or divided into any number of components. In an embodiment, the constraint generator 220 analyzes the service provider 110 and / or the provider pattern 215 to determine the relevant constraints on the configuration tree 115. For example, these constraints can include that a given node must have a specific value. Of course, in practice, the constraints may be much more complex.

[0049] In an embodiment, the candidate evaluator 240 generates candidates iteratively and recursively, applies constraints to each candidate, and eliminates or modifies the candidate based on the results of the analysis. Once each relevant constraint has been applied, the candidate evaluator 240 can determine whether there are any candidates. If so, these are valid candidates that reflect the legal configuration in the network. In one embodiment, each candidate corresponds to a specific node and / or branch in the configuration tree 115. In some embodiments, each candidate includes a set of input values ​​that can be applied to one or more service providers 110 to create corresponding nodes and / or branches in the configuration tree 115. In one embodiment, the excluded (e.g., determined to be invalid) candidate / node corresponds to a node and / or branch in the configuration tree 115 that is not created using the service provider 110 (or modified without the use of the program).

[0050] Figure 5 is a flow chart illustrating a method 500 of analyzing service providers and patterns to generate constraints on network configuration nodes for valid configurations according to one embodiment disclosed herein. In the illustrated embodiment, the method 500 begins at block 505, where the constraint generator 220 receives code for one or more resource providers for configuring a network. At block 510, the constraint generator 220 similarly receives (or generates) one or more patterns for each of the one or more providers. The method 500 then proceeds to block 515, where the constraint generator 220 selects a pattern node in the received pattern. The method 500 then continues to block 520.

[0051] At block 520, constraint generator 220 identifies the corresponding program node in the received supply program. In one embodiment, identifying the corresponding program node includes identifying any part of the value that can modify or establish the pattern node in the program. For example, for the "device" node, the corresponding program part will be any part of the program that creates or modifies the "device". Similarly, for the "interface" pattern node, constraint generator 220 identifies the part that creates or modifies the "interface" in the program. Method 500 then proceeds to block 525, where constraint generator 220 generates one or more constraints applicable to the selected pattern node based on the identified program part.

[0052] For example, if the program specifies that the value of a particular flag is always a constant value, the constraint generator 220 can generate a constraint that forces the value. In various embodiments, any number of constraints can be generated for a particular pattern node. In an embodiment, these constraints can include, for example, equality constraints, constant constraints, etc. Another example of a constraint is an inequality constraint, which forces the candidate to have a value that is not equal to the value specified in the constraint. Similarly, in some embodiments, comparator constraints (e.g., greater than, greater than or equal to, less than, less than or equal to) can be utilized. In one embodiment, applying the "greater than" constraint can cause each candidate to be divided into two candidates: one is a value "greater than" a specified value, and the other is a value "less than or equal to" a specified value. In an embodiment, the constraint can include any programming requirements (making the value a prime number, making a specific character in a string must match a defined value, etc.). The method 500 then continues to block 530, where the constraint generator 220 determines whether there is at least one additional pattern node to be analyzed. If so, the method 500 returns to block 515. Otherwise, the method 500 terminates at block 535, where the generated constraints are stored for subsequent use.

[0053] Figure 6 6 is a flow chart illustrating a method 600 for automatically identifying manually configured intent in a network configuration according to one embodiment disclosed herein. In one embodiment, the method 600 utilizes constraints generated by the constraint generator 220 (e.g., using the method 500) to iteratively and recursively evaluate the configuration tree 115. The method 600 begins at block 605, where the candidate evaluator 240 selects a pattern node for analysis. As described above, in one embodiment, the candidate evaluator 240 begins at the highest level node in the pattern (e.g., the "device" node), and recursively iterates through subsequent levels of the pattern until all nodes have been considered.

[0054] At block 610, the candidate evaluator 240 retrieves the constraints applicable to the selected pattern node. The method 600 then proceeds to block 615, where the candidate evaluator 240 selects one of the candidates currently considered valid. In one embodiment, the candidate evaluator 240 generates an initial set of candidates by identifying the relevant configuration nodes of the top-level pattern node, and generates a candidate for each such configuration node (or for each unique value in the configuration node). In another embodiment, the candidate evaluator 240 initially uses a generic candidate that covers the entire configuration tree and applies the initial constraints to determine whether it should be constrained or otherwise modified. For example, if the top-level pattern node is "device", the candidate evaluator 240 may first use a candidate corresponding to {device="*"}, where * is a wildcard indicating that the candidate covers all device nodes in the configuration. As described above, the application of the equality constraint then divides this candidate into a number of candidates equal to the number of unique values ​​of "device" found in the configuration.

[0055] At block 620, the candidate evaluator 240 applies relevant constraints to the selected candidate. In an embodiment, the application of constraints can vary depending on what the potential constraints are and / or the current content of the candidate. For example, a "constant" constraint can enforce a constant value for the node in the configuration tree, thus excluding candidates that overwrite nodes with different values. As another example, assume the constraint requires that parameter P be less than 5. If the candidate does not yet have a value for P, the candidate evaluator 240 can simply record P < 5 in the candidate. Alternatively, assume the candidate includes P = 1 (e.g., due to a previously evaluated constraint). In an embodiment, the candidate can remain unchanged because it already satisfies the constraint (and is more specific than the constraint). Alternatively, if the candidate includes P = 10, the candidate will be excluded because it is incompatible with the constraint.

[0056] In addition, in an embodiment, there may be multiple constraints for a given parameter. For example, in addition to P < 5, there may also be a P > 2 constraint, further narrowing the allowable candidates to those where 2 < P < 5. In this way, candidates accumulate information as they are processed. Note that in some embodiments, a clear result is not guaranteed. However, in practice, a clear result is typically expected because actual configurations are being processed (as opposed to hypothetical extreme cases), and because simpler constraints similar to equations are very common. Returning to Figure 3 For example, assume the currently selected candidate is {device = "X"}. In the illustrated embodiment, this candidate covers the "device X" node in the configuration tree 115, as well as all child nodes of that device node. Thus, when applying a constant constraint (indicating that flagA must be "1"), the candidate evaluator 240 will determine that the candidate {device = "X"} does not meet the constraint because its corresponding flagA node has an incorrect value.

[0057] Continuing to block 625, if the candidate evaluator 240 determines that a constraint has been violated, method 600 proceeds to block 630, where the candidate is removed and marked as invalid. Continuing with the above example, the candidate {device = "X"} is excluded, and the corresponding portion of the configuration tree 115 (the "device X" block, and its child elements) is removed from further consideration. In some embodiments, these excluded configuration nodes are marked for review by a human or other algorithms. For example, a human may need to view internal documentation or other available data to determine why this part of the network is configured in a way that conflicts with the resource provisioning code. In some embodiments, the system uses fuzzy matching and machine learning techniques to identify seemingly incorrect configurations. For example, if a device has hundreds of parameters set according to a template and one incompatible parameter, then this node may be due to human error. Method 600 then proceeds to block 645.

[0058] Returning to block 625, if the candidate evaluator 240 determines that the constraint is not violated, the method 600 proceeds to block 635, where the candidate evaluator 240 determines whether the constraint is explicitly satisfied. Figure 3 In the example discussed, for the candidate {device = "Z"}, the candidate does not explicitly satisfy the equality constraint associated with the "interface" mode node. As described above, in an embodiment, the equality constraint forces the candidate to take the value specified in the configuration node included in the candidate. Therefore, for the candidate {device = "Z"}, this constraint will force the candidate to be narrowed down to include {interface = "If0"} and {interface = "If1"}. However, because there are two valid options, the candidate {device = "Z"} vaguely satisfies the constraint, but does not explicitly satisfy the constraint.

[0059] At block 635, if the candidate evaluator 240 determines that the constraint is ambiguously satisfied, the method 600 proceeds to block 640, where the candidate evaluator 240 separates the selected candidate into valid options. In this example, the candidate {device="Z"} is separated into {device="Z"; interface="If0"} and {device="Z"; interface="If1"}. The method 600 then proceeds to block 645. Returning to block 635, if the constraint is clearly satisfied, the method 600 also continues to block 645.

[0060] At block 645, the candidate evaluator 240 determines whether there is at least one additional candidate to which the current constraints have not yet been applied. If so, the method 600 returns to block 615 to iteratively consider each candidate. If there are no such candidates to be analyzed, the method 600 proceeds to block 650. At block 650, the candidate evaluator 240 determines whether there is at least one additional pattern node that has not yet been applied or considered. If so, the method 600 returns to block 605. In this way, the candidate evaluator 240 recursively analyzes each pattern node, starting at the highest level and moving toward the leaves of the pattern tree.

[0061] If no such pattern nodes remain, the method 600 terminates at block 655, where the candidate evaluator 240 marks any remaining candidates as valid. That is, if any candidates that have not yet been eliminated remain, and no additional constraints must be applied, then the remaining candidates represent the portion of the configuration tree 115 that is "valid" for configuration using the resource provisioning software. In an embodiment, each remaining candidate indicates the input that produced these nodes. For example, returning to the Figure 3In the example discussed, the candidate {Device="Z"; Interface="If0"} is valid and indicates that the corresponding inputs of "Device" and "Interface" produce the configuration found in the configuration tree 115. In an embodiment, these valid inputs can be ingested into the automation system so that the system can automatically implement this configuration. However, in an embodiment, "invalid" configurations cannot be included in the automation system because it is unclear why or how they were created.

[0062] Figure 7 7 is a flow chart illustrating a method 700 for automatically identifying manual intent and ingesting manual intent into an automatic configuration system according to one embodiment disclosed herein. The method 700 begins at block 705, where the configuration analysis application 120 receives a resource provisioning code for provisioning resources in a network. The method 700 then proceeds to block 710, where the configuration analysis application 120 generates a constraint set based on the resource provisioning code, where the constraint set defines a valid network configuration. At block 715, the configuration analysis application 120 receives a configuration tree of the network, where the configuration tree defines a hierarchical arrangement of configuration elements in the network. In addition, at block 720, the configuration analysis application 120 generates a candidate set for the network based at least in part on the configuration tree, where each candidate in the candidate set corresponds to one or more nodes in the configuration tree. At block 725, when it is determined that a first candidate in the candidate set satisfies the constraint set, the configuration analysis application 120 records the first candidate as a first manual intent. Finally, the method 700 proceeds to block 730, where the configuration analysis application 120 integrates the first manual intent into the automatic configuration system of the network.

[0063] In summary, techniques for automatic analysis and classification of network configurations are provided. Resource provisioning code for provisioning resources in a network is received, and a constraint set is generated based on the resource provisioning code, wherein the constraint set defines a valid network configuration. A configuration tree for the network is received, and a candidate set is generated for the network based at least in part on the configuration tree. Upon determining that a first candidate in the candidate set does not fail any constraint in the constraint set, the first candidate is recorded as a manual intent. The manual intent is integrated into an automatic configuration system for the network.

[0064] In the present disclosure, various embodiments are referred to. However, the scope of the present disclosure is not limited to the specifically described embodiments. On the contrary, any combination of the described features and elements, whether or not related to different embodiments, is expected to realize and practice the expected embodiments. In addition, when the elements of the embodiments are described in the form of "at least one of A and B", it will be understood that the embodiments including element A exclusively, element B exclusively, and elements A and B are all considered. In addition, although some embodiments disclosed herein can achieve advantages that are superior to other possible solutions or superior to the prior art, whether a given embodiment achieves a specific advantage does not limit the scope of the present disclosure. Therefore, the aspects, features, embodiments, and advantages disclosed herein are only illustrative and are not considered as elements or limitations of the appended claims unless explicitly stated in the claims. Similarly, reference to "the present invention" should not be interpreted as a generalization of any inventive subject matter disclosed herein, and should not be considered as elements or limitations of the appended claims unless explicitly stated in the claims.

[0065] As will be appreciated by those skilled in the art, the embodiments disclosed herein may be embodied as systems, methods, or computer program products. Therefore, the embodiments may take the form of complete hardware embodiments, complete software embodiments (including firmware, resident software, microcode, etc.), or embodiments combining software and hardware aspects, which may be collectively referred to herein as "circuits," "modules," or "systems." In addition, the embodiments may take the form of a computer program product embodied in one or more computer-readable media having a computer-readable program code embodied thereon.

[0066] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0067] The computer program code for performing the operation of the embodiments of the present disclosure can be written in any combination of one or more programming languages, which include object-oriented programming languages, such as Java, Smalltalk, C++, etc., and traditional process programming languages, such as "C" programming language or similar programming languages. The program code can be executed completely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet).

[0068] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems) and computer program products according to the embodiments presented in the present disclosure. It should be understood that each block of the flowchart illustration and / or block diagram, and the combination of blocks in the flowchart illustration and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the function / action specified in the block of the flowchart illustration and / or block diagram.

[0069] These computer program instructions may also be stored in a computer-readable medium, which may direct a computer, other programmable data processing apparatus, or other device to operate in a particular manner so that the instructions stored in the computer-readable medium produce an article of manufacture, including instructions for implementing the functions / actions specified in the blocks of the flowchart illustrations and / or block diagrams.

[0070] The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, such that the instructions executed on the computer, other programmable data processing apparatus, or other device provide a process for implementing the functions / actions specified in the blocks of the flowchart illustrations and / or block diagrams.

[0071] The flowchart illustration and block diagram in the figure show the possible architecture, function and operation of the system, method and computer program product according to various embodiments. In this regard, each block in the flowchart illustration or block diagram may represent a module, segment or code portion, which includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the block may not occur in the order marked in the figure. For example, depending on the functions involved, the two blocks shown in succession can actually be executed substantially simultaneously, or sometimes the two blocks can be executed in reverse order. It will also be noted that each block of the block diagram and / or flowchart illustration, and the combination of the blocks in the block diagram and / or flowchart illustration can be implemented by a combination of a dedicated hardware-based system or dedicated hardware and computer instructions that performs a specified function or action.

[0072] In view of the foregoing, the scope of the present disclosure is determined by the following claims.

Claims

1. A method for automatically identifying manually configured intent in a network configuration, comprising: receiving a resource provisioning code for provisioning a resource in a network; generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration; receiving a configuration tree for the network, wherein the configuration tree defines a hierarchical arrangement of configuration elements in the network; generating a candidate set for the network based at least in part on the configuration tree, wherein each candidate in the candidate set corresponds to one or more nodes in the configuration tree; as well as When it is determined through operation of one or more computer processors that a first candidate in the candidate set satisfies the constraint set, recording the first candidate as a first manual intent; as well as The first manual intent is integrated into an automatic configuration system of the network.

2. A method according to claim 1, wherein each corresponding candidate in the candidate set includes a corresponding set of one or more inputs of the resource supply code, wherein the corresponding set of one or more inputs, when provided to the resource supply code, causes the resource supply code to output a corresponding configuration corresponding to the corresponding candidate.

3. The method according to claim 1 or 2, further comprising: When it is determined that a second candidate in the candidate set does not satisfy at least one constraint in the constraint set, the second candidate is marked for manual review.

4. The method according to any one of claims 1 to 3, further comprising: When it is determined that a second candidate has a plurality of groups of inputs that can be used to satisfy a first constraint in the constraint set, the second candidate is divided into at least two new candidates.

5. The method according to any one of claims 1 to 4, further comprising: A pattern associated with the resource provisioning code is received, wherein each node in the pattern has zero or more instances in the configuration tree, and wherein each node in the configuration corresponds to at least one node in the pattern.

6. The method according to any one of claims 1 to 5, further comprising: One or more constraints from the set of constraints are recursively applied to each node in the configuration tree to identify a node in the configuration tree that corresponds to a manual user intent.

7. The method according to any one of claims 1 to 6, wherein generating the constraint set comprises determining a valid node set of the network based on the resource provisioning code, wherein each node in the valid node set corresponds to a configuration node that can be generated using the resource provisioning code.

8. A non-transitory computer readable storage medium having computer readable program code embodied therein, the computer readable program code being executable by one or more computer processors to perform operations comprising: receiving a resource provisioning code for provisioning a resource in a network; generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration; receiving a configuration tree for the network, wherein the configuration tree defines a hierarchical arrangement of configuration elements in the network; generating a candidate set for the network based at least in part on the configuration tree, wherein each candidate in the candidate set corresponds to one or more nodes in the configuration tree; as well as When it is determined that a first candidate in the candidate set satisfies the constraint set, recording the first candidate as a first manual intention; as well as The first manual intent is integrated into an automatic configuration system of the network.

9. A non-transitory computer-readable storage medium according to claim 8, wherein each corresponding candidate in the candidate set includes a corresponding set of one or more inputs to the resource supply code, wherein the corresponding set of one or more inputs, when provided to the resource supply code, causes the resource supply code to output a corresponding configuration corresponding to the corresponding candidate.

10. The non-transitory computer-readable storage medium of claim 8 or 9, the operations further comprising: When it is determined that a second candidate in the candidate set does not satisfy at least one constraint in the constraint set, the second candidate is marked for manual review.

11. The non-transitory computer-readable storage medium of any one of claims 8 to 10, the operations further comprising: When it is determined that a second candidate has a plurality of groups of inputs that can be used to satisfy a first constraint in the constraint set, the second candidate is divided into at least two new candidates.

12. The non-transitory computer-readable storage medium of any one of claims 8 to 11, the operations further comprising: A pattern associated with the resource provisioning code is received, wherein each node in the pattern has zero or more instances in the configuration tree, and wherein each node in the configuration corresponds to at least one node in the pattern.

13. The non-transitory computer-readable storage medium of any one of claims 8 to 12, the operations further comprising: One or more constraints from the set of constraints are recursively applied to each node in the configuration tree to identify a node in the configuration tree that corresponds to a manual user intent.

14. The non-transitory computer-readable storage medium of any one of claims 8 to 13, wherein generating the constraint set comprises determining a valid node set of the network based on the resource provisioning code, wherein each node in the valid node set corresponds to a configuration node that can be generated using the resource provisioning code.

15. A system for automatically identifying manually configured intent in a network configuration, comprising: one or more computer processors; as well as A memory containing a program that, when executed by the one or more computer processors, performs operations comprising: receiving a resource provisioning code for provisioning a resource in a network; generating a constraint set based on the resource provisioning code, wherein the constraint set defines a valid network configuration; receiving a configuration tree for the network, wherein the configuration tree defines a hierarchical arrangement of configuration elements in the network; generating a candidate set for the network based at least in part on the configuration tree, wherein each candidate in the candidate set corresponds to one or more nodes in the configuration tree; and When it is determined that a first candidate in the candidate set satisfies the constraint set, recording the first candidate as a first manual intention; and The first manual intent is integrated into an automatic configuration system of the network.

16. A system according to claim 15, wherein each corresponding candidate in the candidate set includes a corresponding set of one or more inputs to the resource supply code, wherein the corresponding set of one or more inputs, when provided to the resource supply code, causes the resource supply code to output a corresponding configuration corresponding to the corresponding candidate.

17. The system according to claim 15 or 16, wherein the operations further comprise: When it is determined that a second candidate in the candidate set does not satisfy at least one constraint in the constraint set, the second candidate is marked for manual review.

18. The system according to any one of claims 15 to 17, wherein the operations further comprise: When it is determined that a second candidate has a plurality of groups of inputs that can be used to satisfy a first constraint in the constraint set, the second candidate is divided into at least two new candidates.

19. The system according to any one of claims 15 to 18, wherein the operations further comprise: A pattern associated with the resource provisioning code is received, wherein each node in the pattern has zero or more instances in the configuration tree, and wherein each node in the configuration corresponds to at least one node in the pattern.

20. The system of any one of claims 15 to 19, wherein generating the set of constraints comprises determining a valid node set of the network based on the resource provisioning code, wherein each node in the valid node set corresponds to a configuration node that can be generated using the resource provisioning code.

21. An apparatus for automatically identifying a manually configured intention in a network configuration, comprising: means for receiving a resource provisioning code for provisioning resources in a network; means for generating a set of constraints based on the resource provisioning code, wherein the set of constraints defines a valid network configuration; means for receiving a configuration tree for the network, wherein the configuration tree defines a hierarchical arrangement of configuration elements in the network; means for generating a candidate set for the network based at least in part on the configuration tree, wherein each candidate in the candidate set corresponds to one or more nodes in the configuration tree; as well as means for recording a first candidate in the candidate set as a first manual intent when it is determined through operation of one or more computer processors that the first candidate satisfies the constraint set; as well as Means for integrating the first manual intent into an automatic configuration system of the network.

22. The apparatus of claim 21, further comprising means for carrying out the method of any one of claims 2 to 7.

23. A computer program product comprising instructions which, when executed by a computer, cause the computer to perform the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method of configuring network infrastructure using functional building blocks

    CN101183978A

  • Method For Content Folding

    CN102812456A