CN113031944A - Template-based service opening device and method - Google Patents
Template-based service opening device and method Download PDFInfo
- Publication number
- CN113031944A CN113031944A CN201911248574.XA CN201911248574A CN113031944A CN 113031944 A CN113031944 A CN 113031944A CN 201911248574 A CN201911248574 A CN 201911248574A CN 113031944 A CN113031944 A CN 113031944A
- Authority
- CN
- China
- Prior art keywords
- service
- template
- opening
- task
- provisioning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000002452 interceptive effect Effects 0.000 claims abstract description 27
- 238000007689 inspection Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 13
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 238000005096 rolling process Methods 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 238000000605 extraction Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000003542 behavioural effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a service opening device and method based on a template, wherein the device comprises: the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template; the template checking module is used for checking the service template; the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task; and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data. The invention can flexibly realize service opening through the template and has high efficiency.
Description
Technical Field
The invention relates to the field of internet, in particular to a service opening device and method based on a template.
Background
Generally, when a service is opened, the service can be quickly opened through a service opening template built in a service opening system, but the current service opening template is not flexible enough and needs to be modified frequently, and the degree of the covered service opening requirement is not enough, so that the service opening efficiency is not enough.
Disclosure of Invention
The embodiment of the invention provides a template-based service opening device, which is used for flexibly realizing service opening through a template and has high efficiency, and the device comprises:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the service template;
the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task;
and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data.
The embodiment of the invention provides a template-based service opening method, which is used for flexibly realizing service opening through a template and has high efficiency, and comprises the following steps:
receiving a service opening logic command input by a user based on a template type, and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
checking the service template;
after receiving a service opening task, determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task;
and inputting the service parameters in the service fulfillment task into a service template required to be used to generate service fulfillment data, and performing service fulfillment on the equipment to be provisioned in the service fulfillment task according to the service fulfillment data.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the template-based service opening method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the template-based service provisioning method.
In the embodiment of the invention, the template definition module is used for receiving a service opening logic command input by a user based on template types and generating a service template, wherein the template types comprise a command template, a Perl template and an interactive template; the template checking module is used for checking the service template; the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task; and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data. In the process, a service opening logic command input by a user based on the template type can be received through the module definition module, so that three types of service templates are generated, the accuracy of the service templates is ensured by checking the template checking module, the service templates required to be used are determined according to the service types, service parameters in the service opening task are input into the service templates required to be used, service opening data are generated, and service opening is performed on equipment to be opened in the service opening task according to the service opening data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic diagram of a template-based service provisioning apparatus according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an opening template of an interactive template according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an example of a command template for opening a logic command;
fig. 4 is a detailed flowchart of service provisioning using a template-based service provisioning apparatus according to an embodiment of the present invention;
fig. 5 is a flowchart of a template-based service provisioning method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
Fig. 1 is a schematic diagram of a template-based service provisioning apparatus in an embodiment of the present invention, and as shown in fig. 1, the apparatus includes:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the service template;
the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task;
and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data.
In the embodiment of the invention, a service opening logic command input by a user based on the template type can be received through the module definition module, so that three types of service templates are generated, the accuracy of the service templates is ensured by checking the template checking module, the service templates required to be used are determined according to the service types, service parameters in the service opening task are input into the service templates required to be used, service opening data are generated, and the service opening of equipment to be opened in the service opening task is performed according to the service opening data, so that the flexible definition and use of the service templates are integrally realized, the existing templates do not need to be repeatedly modified, and the service opening efficiency is improved.
In specific implementation, the template-based service provisioning device can provide an interface interaction mode, the template definition module displays each template type in an interface mode, so that a user can input a service provisioning logic command based on the template type in an interaction mode, the provisioning logic command is also called a script, the template types comprise a command template, a Perl template and an interactive template, the command template is a simple basic template, and the user can directly write commands on the basic template and is suitable for a simple and direct provisioning scene; the Perl template is actually a Perl script template, and a user edits the Perl script template on the basic template and then directly uses a Perl program compiler to compile and then perform escape, so that the requirement on the user is high; the interactive template is a template which is independently researched and developed based on the Perl template, encapsulates functions, grammars, variables and the like, and is more flexible, simpler and faster in editing compared with the Perl template. After the template definition module generates the service template, the functions of template addition, deletion, modification and viewing can be provided in the form of an interface, so that the maintenance of the service template is facilitated.
Taking an interactive template as an example, when receiving a service provisioning logic command input by a user based on a template type, a template definition module needs to receive some attribute information of the service template input by the user, including a service type, a service operation type, a device model, a template type, a template description, a template number, a template name and the like, where the attribute information of the service type, the service operation type, the device model, and the template type can be selected in an interface in a form of a drop-down list, the template number can be automatically generated by a template-based service provisioning apparatus for uniquely identifying the template, the template name and the template description can directly receive text input of the user, the service type can be ADSL provisioning and the like, the service operation type can be active service, new provisioning service, the device type can be router, and the like, The switch and the equipment model can be BAS, SE800 BAS, MA5300DSLAM, and interact with the user through the interface, so that when the user inputs the attribute information, the generated service template can be viewed in a list form.
In an embodiment, the service template includes one or any combination of a configuration check template, an opening template, a post-deployment check module and a rollback template.
In the foregoing embodiment, after determining the attribute information of the service template, the template definition module receives a service opening logic command input by a user based on a template type, where an interactive template is taken as an example and may include a function, a syntax, and variables, where the variables include common variables and user-defined variables. Fig. 2 is a schematic diagram of an opening template of an interactive template in an embodiment of the present invention, where syntax of the interactive template is similar to a perl script. The opening logic command of the interactive template is mainly the equipment command, and the logic judgment can be added. And carrying out different branches or exception processing on the result of the execution of the opening logic command, wherein grammar prompt of an interactive template is provided in the process of editing by a user. The detailed syntax description of the interactive template (including encapsulated functions and variables) is as follows:
lines are annotated with// beginning behavior, rather than lines of behavioral statements beginning with "//", each line of statements ending with a semicolon, and the pure configuration command block portion may not end;
global variables in the template: $ CMD _ ERROR: command execution error information; $ CMD _ RESULT: command execution device return information
Business work order attribute variables: $ Attribute name } custom parameter: $ variable name
The turn-on platform built-in function is as follows:
execute single instruction cmd _ cfg (): when the configuration is previewed, the instruction related to the cmd _ cfg cannot be actually executed on the equipment, and when the configuration is checked and opened, a command is executed on the equipment, and the equipment interaction log is automatically recorded. cmd _ cfg (cmd trig [, timeout, prompt ]);
executing a single instruction cmd _ show (): when configuration preview, configuration check and opening are carried out, relevant commands are executed on the equipment, an equipment interaction log is recorded, and the function grammar is as follows: cmd _ show (cmd _ ding [, timeout, prompt ]);
output log writelog (): output string into task log function syntax: writelog (logstring);
output log to file logfile (): output string to system-specific file. logfile (logstring [, logeve ]); loglevel, log level, default "info"
Regular expression matches regmatch (): and (3) detecting whether the matching is performed according to the regular expression, returning to 0 when the matching is not performed, and returning to 1 when the matching is performed: $ result ═ regmatch (source _ string, reg _ string);
string extraction regextract (): intercepting substrings according to the regular expression, if matching is successful, returning substrings in the regular expression (), if the expression does not contain (), returning empty strings, and if not matching is successful, returning empty strings, wherein the function grammar is as follows: $ str ═ regextract (source _ string, reg _ string);
multiple line string extraction regextractarr (): extracting each line of a multi-line character string according to a regular expression, and returning an array of a group of elements, calling grammar @ list ═ regextractarr (pattern, string);
string segmentation extraction split (): call syntax @ list ═ split (pattern, string);
string formatting sprintf (): call syntax $ result ═ sprintf (fmtstring, var1, var2 …);
task parameter assignment setasppara (): function syntax: settask kappa (parame, paraveraue)
Task parameter read gettastparam (): function syntax: paraveraue ═ gettaskappa (parame)
Acquisition time systme (): acquiring system time in a character string format, and function grammar: $ result ═ sysrime ()
The following gives a case of opening a template in an interactive template:
(a)cmd_show("sh configuration context e8manager.gd|be'dhcp server policy'",”,'>|\]|#$','More');
the command executes the function, and the result is returned by the pure acquisition command, so that the command is not actually effective on the equipment.
(b) sh configuration context 8manager. gd | be 'dhcp server policy' is a command to be executed.
"\ ] | # $ is the terminal of the wait-this sentence means waiting for a character ending with either > or #.
More is a character string waiting when a page is turned over.
cmd_cfg("sa conf",”,'>|#$','More');
And the command execution function is used for configuring the command on the equipment and enabling the command to be effective.
(c)writelog("$CMDOUT");
And outputting the parameter result to a page for testing and checking whether the configured command is correct.
(d)<CMDBEG><CMDEND>
The use method comprises the following steps:
<CMDBEG>
$tmparray[$i]
<CMDEND>
the batch configure command is typically invoked in parallel with the loop.
An explanation of commonly used statements in interactive templates is given below:
(a) the device executes the query command and maintains the query result
my$log=$TMP_RESULT;
cmd_show("shvir",”,'#\s*$','More');
$TMP_RESULT=$log;
The execution RESULT is saved in the inherent variable $ CMD _ RESULT, and the intermediate log saved variable $ TMP _ RESULT value is cleared.
(b) Matching and intercepting the command result
my@tmpstr=$CMD_RESULT=~/permit\s+(\d+\.\d+\.\d+\.\d+\/\d+)/mg;
All the results (possibly more than one) that are needed are saved into the array @ tmpstr by a regular expression (described later).
(c) Divide the results by return line
my@tmparray=split(/\n/,$CMDOUT);
The results are separated by the carriage return line and the separated results are saved to the array @ tmpraray.
(d) Each value in the cyclic array
foreach my$tmpvalue(@tmpstr)
Each value in the loop array @ tmpstr is assigned to a variable $ tmpvalue.
(e) Starting from the first value of the array and looping to the last value
for(my$i=0;$i<=$#tmparray;$i++)
The @ tmpraray array has an initial value of 0 subscript, starts with the 0 subscript, loops from the first value of the array, and loops to the final value of the data, each value in the array being represented as $ tmpraray [ $ i ].
(f) Placing the value of a variable at the back of an array
push(@IPPoolArray,$tmpippoolname);
The value of the variable $ tmppipoolname is added to the last value of the array @ ippoolaray.
(g) Concatenating values
$CMDOUT=$CMDOUT."no$Prefixlinevalue\n";
The value of the string, which may be accompanied by a variable, is concatenated to the variable $ CMDOUT.
The above logic command is opened for the service of the interactive template input by the user through the interactive interface, the command template and the Perl template also include one or any combination of a configuration check template, an opening template, a post-deployment check module and a rollback template, the customizing process is similar and is not repeated here, fig. 3 is an exemplary diagram of the logic command opened for the command template in the embodiment of the present invention, and a statement description of the logic command opened for the command template is simply given below:
each line corresponds to a command based on the command line of the device.
And does not contain any judgment, loop and jump logic.
The initial behavioral annotation line. Will not be issued to the device
The command may contain parameters. Format is $ parameter name (note), note: () Must be present. To separate the parameter from subsequent commands.
The command template content is essentially a device command, contains no logic, but may reference parameters. The command template can only refer to self-defined parameters of the command template, and the format of the parameters is as follows: $ abc ().
The Perl template and the interactive template may support both business parameters and custom parameters.
The Perl template custom parameter format is $ para { 'UDFDEVICEID' _ abc }, and the service parameter format is $ para { abc }.
The format of the self-defined parameter of the interactive template is $ _ { abc }, and the format of the service parameter is $ { abc }.
When the three model types are used for customizing parameters, the attribute information of the parameters can comprise parameter codes, parameter names, parameter descriptions, parameter definitions and parameter previews, wherein the parameter codes can be automatically generated by a template-based service opening device and are used for uniquely identifying one parameter. Table 1 is an example of custom parameters for a command template.
TABLE 1 custom parameters for command templates
Parameter coding | Parameter name | Description of parameters | Parameter definition | Parameter preview | |
description | description | description | PingAn-Peer | PingAn-Peer | |
max_route | max_route | max_route | 20 | 20 | |
| threshold | threshold | 80|90 | 80 |
The opening logic command of the Perl template is consistent with the Perl script grammar, and the description is omitted here.
After the service template is generated again, the template checking module can check the service template, and the service template passing the check can be used subsequently.
The following presents a common problem after interactive template verification:
(a) wait for symbol problem: ' s $ # \ s $
(b) Invisible character replacement problem
$CMD_RESULT=~s/\x1B\x5B\x3F\x31\x68\x1B\x3D//g;
$CMD_RESULT=~s/\x1B\x5B\x4B\x20//g;
$CMD_RESULT=~s/\x1B\x5B\x4B\x1B\x5B\x3F\x31\x6C\x1B\x3E//g;
$CMD_RESULT=~s/\x1B\x5B\x4B//g;
In specific implementation, the template determining module is configured to determine a service template to be used from the successfully verified service provisioning template according to the service type in the service provisioning task after receiving the service provisioning task, where after receiving the service provisioning task, the service template may be displayed to a user in an interface form, and service parameters in the service provisioning task are specific to a device, may also allow the user to input through the interface, may be batch assignment, may also fill in a certain service parameter of a certain device, may also be batch assignment and then independently adjusted, and may be flexibly used.
In an embodiment, the provisioning module is specifically configured to:
inputting the service parameters in the service fulfillment task into a configuration inspection template to generate service fulfillment inspection data;
according to the service fulfillment check data, checking whether the equipment to be provisioned in the service fulfillment task meets preset provisioning requirements;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and according to the actual opening data, opening the service of the equipment to be opened.
In the above embodiment, the service parameters in the service provisioning task are input into the configuration check template, the service parameters are automatically injected into the configuration check module to generate service provisioning check data, and then according to the service provisioning check data, whether the device to be provisioned in the service provisioning task meets the preset provisioning requirement is checked, in the checking process, the service provisioning check data is not sent to each device, but is only used to check whether each device can be provisioned, and if one device does not meet the preset provisioning requirement, the device is not provisioned, for example, whether the port of the device is normal is checked. And according to the actual opening data, service opening is carried out on the equipment to be opened, so that the actual opening data is really issued to each equipment, namely, relevant parameters of each equipment are modified, the service opening can be carried out on batch equipment, and the opening efficiency is improved.
In an embodiment, the provisioning module is further configured to:
after all the devices in the service provisioning task are successfully provisioned, inputting the service data in the service provisioning task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment check data.
In the above embodiment, even if the service provisioning is successful, the provisioning may be abnormal, and at this time, the device has already been deployed, and the success rate of the service provisioning can be improved by performing the inspection after the one-time deployment.
In an embodiment, the provisioning module is further configured to:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task into a rollback template to generate rollback data;
and rolling back all the equipment in the service opening task according to the rollback data.
In the above embodiment, the rollback is performed for two cases, the first case is that after provisioning, there is a device with failed provisioning, that is, all provisioned devices need to be rolled back as long as one device is not successfully provisioned, and when rolling back, the original service parameters of all devices, that is, the service parameters before provisioning and modification, are refilled into the roll back template for rolling back, and all devices are rolled back, so as to ensure the consistency of all devices in one service provisioning task. In the second case, after post-deployment inspection, an abnormal device is found, and at this time, rollback is also performed, in principle.
In one embodiment, the apparatus includes a rights management module to:
setting the use authority of each type of users for opening the template of the service;
the template determination module is specifically configured to:
determining a service opening template which can be used by a user executing service opening according to the use permission of each type of user on the service opening template;
and determining a service opening template to be used from the service opening template which can be used by the user executing the service opening and is successfully verified according to the service type in the service opening task.
In the above embodiment, the three types of models need to be controlled in terms of usage rights, so as to prevent important devices from being opened by ordinary personnel at will, the setting rights can also be performed by selecting a plurality of service templates for batch setting, and the service templates can be authorized to all users, designated users, or users with designated roles (such as a system administrator), where table 2 is an example of the rights setting in the embodiment of the present invention, where a node refers to a node where a device is located, and a creator refers to a creator of a service template.
Table 2 example of rights settings
Based on the foregoing embodiment, the present invention provides the following embodiment to explain a detailed flow of service provisioning using a template-based service provisioning apparatus, and fig. 4 is a detailed flow chart of service provisioning using a template-based service provisioning apparatus according to the embodiment of the present invention, as shown in fig. 4, in an embodiment, the detailed flow of service provisioning using a template-based service provisioning apparatus includes:
step 411, checking whether the states of all devices in the service provisioning task are abnormal according to the post-deployment check data; if the device in the abnormal state exists, the process proceeds to step 412, otherwise, the process is ended.
and 413, rolling back all the devices in the service provisioning task according to the rollback data, and ending the process.
Of course, it can be understood that there may be other variations in the above detailed flow of service provisioning by using the template-based service provisioning apparatus, and all the relevant variations should fall within the scope of the present invention.
In summary, in the apparatus provided in the embodiment of the present invention, the template definition module is configured to receive a service opening logic command input by a user based on a template type, and generate a service template, where the template type includes a command template, a Perl template, and an interactive template; the template checking module is used for checking the service template; the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task; and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data. In the process, a service opening logic command input by a user based on the template type can be received through the module definition module, so that three types of service templates are generated, the accuracy of the service templates is ensured by checking the template checking module, the service templates required to be used are determined according to the service types, service parameters in the service opening task are input into the service templates required to be used, service opening data are generated, and service opening is performed on equipment to be opened in the service opening task according to the service opening data.
Based on the same inventive concept, the embodiment of the present invention further provides a service provisioning method based on the template, as described in the following embodiments. Because the principles for solving the problems are similar to those of the template-based service provisioning device, the implementation of the method can be referred to the implementation of the device, and repeated parts are not described in detail.
Fig. 5 is a flowchart of a template-based service provisioning method in an embodiment of the present invention, and as shown in fig. 5, the method includes:
In an embodiment, the service template includes one or any combination of a configuration check template, an opening template, a post-deployment check module and a rollback template.
In an embodiment, inputting a service parameter in a service provisioning task to a service template to be used, generating service provisioning data, and provisioning a service to a device to be provisioned in the service provisioning task according to the service provisioning data, includes:
inputting the service parameters in the service fulfillment task into a configuration inspection template to generate service fulfillment inspection data;
according to the service fulfillment check data, checking whether the equipment to be provisioned in the service fulfillment task meets preset provisioning requirements;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and according to the actual opening data, opening the service of the equipment to be opened.
In an embodiment, after the service provisioning is performed on the device to be provisioned according to the actual provisioning data, the method further includes:
after all the devices in the service provisioning task are successfully provisioned, inputting the service data in the service provisioning task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment check data.
In an embodiment, the method further comprises:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task into a rollback template to generate rollback data;
and rolling back all the equipment in the service opening task according to the rollback data.
In an embodiment, the method further comprises:
setting the use authority of each type of users for opening the template of the service;
determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task, wherein the method comprises the following steps:
determining a service opening template which can be used by a user executing service opening according to the use permission of each type of user on the service opening template;
and determining a service opening template to be used from the service opening template which can be used by the user executing the service opening and is successfully verified according to the service type in the service opening task.
In summary, in the method provided in the embodiment of the present invention, a service opening logic command input by a user based on a template type is received, and a service template is generated, where the template type includes a command template, a Perl template, and an interactive template; checking the service template; after receiving a service opening task, determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task; and inputting the service parameters in the service fulfillment task into a service template required to be used to generate service fulfillment data, and performing service fulfillment on the equipment to be provisioned in the service fulfillment task according to the service fulfillment data. In the process, a service opening logic command input by a user based on the template type can be received through the module definition module, so that three types of service templates are generated, the accuracy of the service templates is ensured by checking the template checking module, the service templates required to be used are determined according to the service types, service parameters in the service opening task are input into the service templates required to be used, service opening data are generated, and service opening is performed on equipment to be opened in the service opening task according to the service opening data.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (14)
1. A service provisioning apparatus based on a template is characterized by comprising:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the service template;
the template determining module is used for determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task after receiving the service opening task;
and the opening module is used for inputting the service parameters in the service opening task into the service template required to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data.
2. The template-based service provisioning apparatus of claim 1 wherein the service template comprises one or any combination of a configuration check template, a provisioning template, a post-deployment check module and a rollback template.
3. The template-based service provisioning apparatus of claim 2, wherein the provisioning module is specifically configured to:
inputting the service parameters in the service fulfillment task into a configuration inspection template to generate service fulfillment inspection data;
according to the service fulfillment check data, checking whether the equipment to be provisioned in the service fulfillment task meets preset provisioning requirements;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and according to the actual opening data, opening the service of the equipment to be opened.
4. The template-based service provisioning apparatus of claim 3, wherein the provisioning module is further configured to:
after all the devices in the service provisioning task are successfully provisioned, inputting the service data in the service provisioning task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment check data.
5. The template-based service provisioning apparatus of claim 4, wherein the provisioning module is further configured to:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task into a rollback template to generate rollback data;
and rolling back all the equipment in the service opening task according to the rollback data.
6. The template-based service provisioning apparatus of claim 1, further comprising an authority management module configured to:
setting the use authority of each type of users for opening the template of the service;
the template determination module is specifically configured to:
determining a service opening template which can be used by a user executing service opening according to the use permission of each type of user on the service opening template;
and determining a service opening template to be used from the service opening template which can be used by the user executing the service opening and is successfully verified according to the service type in the service opening task.
7. A service opening method based on a template is characterized by comprising the following steps:
receiving a service opening logic command input by a user based on a template type, and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
checking the service template;
after receiving a service opening task, determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task;
and inputting the service parameters in the service fulfillment task into a service template required to be used to generate service fulfillment data, and performing service fulfillment on the equipment to be provisioned in the service fulfillment task according to the service fulfillment data.
8. The template-based service provisioning method of claim 7 wherein the service template comprises one or any combination of a configuration check template, a provisioning template, a post-deployment check module and a rollback template.
9. The template-based service provisioning method according to claim 8, wherein the step of inputting service parameters in a service provisioning task to a service template to be used to generate service provisioning data, and performing service provisioning on a device to be provisioned in the service provisioning task according to the service provisioning data comprises:
inputting the service parameters in the service fulfillment task into a configuration inspection template to generate service fulfillment inspection data;
according to the service fulfillment check data, checking whether the equipment to be provisioned in the service fulfillment task meets preset provisioning requirements;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and according to the actual opening data, opening the service of the equipment to be opened.
10. The template-based service provisioning method according to claim 9, wherein after provisioning the service for the device to be provisioned according to the actual provisioning data, the method further comprises:
after all the devices in the service provisioning task are successfully provisioned, inputting the service data in the service provisioning task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment check data.
11. The template-based service provisioning method of claim 10, further comprising:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task into a rollback template to generate rollback data;
and rolling back all the equipment in the service opening task according to the rollback data.
12. The template-based service provisioning method of claim 7, further comprising:
setting the use authority of each type of users for opening the template of the service;
determining a service template to be used from the successfully verified service opening template according to the service type in the service opening task, wherein the method comprises the following steps:
determining a service opening template which can be used by a user executing service opening according to the use permission of each type of user on the service opening template;
and determining a service opening template to be used from the service opening template which can be used by the user executing the service opening and is successfully verified according to the service type in the service opening task.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 7 to 12 when executing the computer program.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 7 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248574.XA CN113031944B (en) | 2019-12-09 | 2019-12-09 | Business opening device and method based on template |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248574.XA CN113031944B (en) | 2019-12-09 | 2019-12-09 | Business opening device and method based on template |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113031944A true CN113031944A (en) | 2021-06-25 |
CN113031944B CN113031944B (en) | 2023-12-05 |
Family
ID=76450865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911248574.XA Active CN113031944B (en) | 2019-12-09 | 2019-12-09 | Business opening device and method based on template |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113031944B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113723910A (en) * | 2021-08-05 | 2021-11-30 | 中核武汉核电运行技术股份有限公司 | Nuclear power plant parameter configuration method, device, equipment and computer readable storage medium |
CN114095360A (en) * | 2021-11-12 | 2022-02-25 | 中国联合网络通信集团有限公司 | Communication service opening method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094100A (en) * | 2007-06-01 | 2007-12-26 | 中兴通讯股份有限公司 | Method and device for processing 'put into operation' command for service of electronical work sheet |
US20100100526A1 (en) * | 2005-11-03 | 2010-04-22 | Kt Corporation | Business logic device and processing method |
CN105007589A (en) * | 2014-04-18 | 2015-10-28 | 中兴通讯股份有限公司 | Parameter configuration method, machine-card integrated terminal device and server |
CN105208031A (en) * | 2015-09-30 | 2015-12-30 | 成都汇合乾元科技有限公司 | Method for authenticating terminal |
CN105530123A (en) * | 2015-12-07 | 2016-04-27 | 厦门雅迅网络股份有限公司 | Intelligent configuring method of GPS terminal parameters |
CN106961529A (en) * | 2016-01-08 | 2017-07-18 | 中国联合网络通信集团有限公司 | Worksheet method and communication service equipment |
CN109756885A (en) * | 2017-11-07 | 2019-05-14 | 中兴通讯股份有限公司 | A kind of automatic activating method of 5G business, device, equipment and storage medium |
-
2019
- 2019-12-09 CN CN201911248574.XA patent/CN113031944B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100100526A1 (en) * | 2005-11-03 | 2010-04-22 | Kt Corporation | Business logic device and processing method |
CN101094100A (en) * | 2007-06-01 | 2007-12-26 | 中兴通讯股份有限公司 | Method and device for processing 'put into operation' command for service of electronical work sheet |
CN105007589A (en) * | 2014-04-18 | 2015-10-28 | 中兴通讯股份有限公司 | Parameter configuration method, machine-card integrated terminal device and server |
CN105208031A (en) * | 2015-09-30 | 2015-12-30 | 成都汇合乾元科技有限公司 | Method for authenticating terminal |
CN105530123A (en) * | 2015-12-07 | 2016-04-27 | 厦门雅迅网络股份有限公司 | Intelligent configuring method of GPS terminal parameters |
CN106961529A (en) * | 2016-01-08 | 2017-07-18 | 中国联合网络通信集团有限公司 | Worksheet method and communication service equipment |
CN109756885A (en) * | 2017-11-07 | 2019-05-14 | 中兴通讯股份有限公司 | A kind of automatic activating method of 5G business, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
刘平丽: ""电信行业专线业务自动开通管理系统分析与设计"", 《中国优秀硕士学位论文全文数据库信息科技辑》, pages 138 - 167 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113723910A (en) * | 2021-08-05 | 2021-11-30 | 中核武汉核电运行技术股份有限公司 | Nuclear power plant parameter configuration method, device, equipment and computer readable storage medium |
CN114095360A (en) * | 2021-11-12 | 2022-02-25 | 中国联合网络通信集团有限公司 | Communication service opening method and device |
CN114095360B (en) * | 2021-11-12 | 2024-02-13 | 中国联合网络通信集团有限公司 | Communication service opening method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113031944B (en) | 2023-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190342450A1 (en) | Interactive voice response system crawler | |
CN110147240B (en) | Cloud storage-based application program installation method, system and storage medium | |
CN109542556B (en) | Method and system for interaction between process and form based on Activiti | |
US9218269B2 (en) | Testing multiple target platforms | |
CN102222012B (en) | For the static type checking of external data source | |
CN111061643B (en) | SDK cluster compatibility detection method and device, electronic equipment and storage medium | |
CN104615466B (en) | A kind of cloud platform dispositions method and system | |
CN111142903A (en) | Configuration file interactive updating method and device based on file comparison | |
CN109460279A (en) | Forms pages development approach, device, equipment and storage medium based on small routine | |
US20140237443A1 (en) | System and method for supporting intelligent design pattern automation | |
US20030028856A1 (en) | Method and apparatus for testing a software component using an abstraction matrix | |
CN106293664A (en) | Code generating method and device | |
US8302087B2 (en) | Quality assurance in software systems through autonomic reliability, availability and serviceability code generation | |
CN111090433A (en) | Data processing method, device and storage medium | |
CN109324799A (en) | A kind of code compiling method, computer installation and computer readable storage medium | |
CN104794048A (en) | Automatic UI testing method and system | |
US10338910B2 (en) | Multi-tenant upgrading | |
CN113031944B (en) | Business opening device and method based on template | |
CN111722873A (en) | Code reconstruction method, device, equipment and medium | |
CN113330419A (en) | Equipment application installation method and device | |
CN113535141A (en) | Database operation code generation method and device | |
CN110888648A (en) | Method for generating custom linux image through interactive interface | |
CN108153745B (en) | Application data calling method and application development system | |
CN108279905A (en) | The method and device of library file is introduced in a kind of component | |
US10146529B2 (en) | Monitoring rules declaration and automatic configuration of the monitoring rules |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |