CN110061917B - Interface group creating method and device, network equipment and storage medium - Google Patents

Interface group creating method and device, network equipment and storage medium Download PDF

Info

Publication number
CN110061917B
CN110061917B CN201910276594.1A CN201910276594A CN110061917B CN 110061917 B CN110061917 B CN 110061917B CN 201910276594 A CN201910276594 A CN 201910276594A CN 110061917 B CN110061917 B CN 110061917B
Authority
CN
China
Prior art keywords
interface
group
target
target binding
binding group
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.)
Active
Application number
CN201910276594.1A
Other languages
Chinese (zh)
Other versions
CN110061917A (en
Inventor
代起锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201910276594.1A priority Critical patent/CN110061917B/en
Publication of CN110061917A publication Critical patent/CN110061917A/en
Application granted granted Critical
Publication of CN110061917B publication Critical patent/CN110061917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of network communication, and provides a method, a device, network equipment and a storage medium for creating an interface group, wherein the method comprises the following steps: receiving an interface group creation command, wherein the interface group creation command comprises an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group which the network device has; acquiring a member interface of the target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group; and adding the member interfaces of the target binding group meeting the preset conditions into the interface group to be created. When the interface group is created, the invention greatly simplifies the creation operation of the interface group by automatically screening the member interfaces of the binding group which meet the preset conditions and automatically adding the member interfaces into the interface group.

Description

Interface group creating method and device, network equipment and storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for creating an interface group, a network device, and a storage medium.
Background
In network communication, in order to increase the bandwidth of a network link and improve the reliability of the network link, a plurality of physical interfaces on a network device are usually bound to form a binding group, each member interface in the binding group corresponds to one network link, the plurality of network links in the binding group are mutually backed up and bound together to form a same logical link, and the bandwidth externally provided by the logical link is the sum of the bandwidths of the plurality of network links in the binding group, so that the bandwidth of the network link is increased and the reliability of the network link is improved.
Along with the improvement of the requirements of the bandwidth and the reliability of a network link, the number of the member interfaces in the binding group is increased, time and labor are wasted when a large number of member interfaces in the binding group are repeatedly operated, omission easily occurs, and the efficiency of the operation of the member interfaces in the binding group is reduced.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a network device, and a storage medium for automatically generating an interface group, where member interfaces of a bundle group are automatically added to the interface group, and the operation efficiency of the member interfaces of the bundle group is improved by performing unified operation on the member interfaces of the bundle group in the interface group.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for creating an interface group, which is applied to a network device, and the method includes: receiving an interface group creation command, wherein the interface group creation command comprises an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group which the network device has; acquiring a member interface of the target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group; and adding the member interfaces of the target binding group meeting the preset conditions into the interface group to be created.
In a second aspect, an embodiment of the present invention further provides an interface group creation apparatus, which is applied to a network device, and the apparatus includes a receiving module, an obtaining module, and a joining module, where the receiving module is configured to receive an interface group creation command, where the interface group creation command includes an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group which the network device has; the acquisition module is used for acquiring a member interface of the target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group; and the joining module is used for joining the member interfaces of the target binding group meeting the preset conditions into the interface group to be created.
In a third aspect, an embodiment of the present invention further provides a network device, where the network device includes: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of creating an interface group described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for creating the interface group.
Compared with the prior art, the method, the device, the network device and the storage medium for creating the interface group provided by the embodiments of the present invention first execute an interface group creation command on the network device when a user needs to create the interface group, and after receiving the interface group creation command, the network device obtains a member interface of a target binding group corresponding to an identifier of the target binding group according to the identifier of the target binding group in the interface group creation command; and finally, adding the member interfaces of the target binding group meeting the preset conditions into the interface group to be created, thereby completing the creation of the interface group required by the user. Compared with the prior art, when the interface group is created, the creation operation of the interface group is greatly simplified by automatically screening the member interfaces of the binding group which meet the preset conditions and automatically adding the member interfaces into the interface group, and the efficiency of uniformly operating the member interfaces of the binding group through the interface group is improved because the interface group can be efficiently created.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram illustrating a network device according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for creating an interface group according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating sub-steps of step S103 shown in fig. 2.
Fig. 4 is a block diagram illustrating an interface group creation apparatus according to an embodiment of the present invention.
Icon: 100-a network device; 101-a memory; 102-a communication interface; 103-a processor; 104-a bus; 200-means for creating an interface group; 201-a receiving module; 202-an obtaining module; 203-joining module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
In order to achieve simultaneous operation of multiple member interfaces of a binding group and improve the operation efficiency of the member interfaces of the binding group, the method generally adopted is as follows: firstly, an interface group is created, then a plurality of member interfaces of a binding group are added into the interface group manually, and the simultaneous operation of the plurality of member interfaces of the binding group in the interface group is realized by carrying out unified operation on the interface group. However, the plurality of member interfaces of the binding group are manually added into the interface group, which is tedious in operation, prone to missing the addition of the member interfaces, and prone to adding wrong member interfaces, so that the efficiency of performing unified operation on the member interfaces of the binding group through the interface group is not high.
In view of the above problems, the present invention provides a method and an apparatus for creating an interface group, a network device, and a storage medium, wherein when creating an interface group, the creation operation of the interface group is greatly simplified by automatically screening member interfaces of a binding group that meet preset conditions and automatically joining the interface group, so as to improve the efficiency of uniformly operating the member interfaces of the binding group through the interface group, which is described in detail below.
Referring to fig. 1, fig. 1 is a block diagram illustrating a network device 100 according to an embodiment of the present invention. The network device 100 may be, but is not limited to, a physical forwarding device such as a switch, a router, etc., and further includes a virtual machine that can implement the same functions as the physical switch, the physical router, etc. The operating system of network device 100 may be, but is not limited to, a Windows system, a Linux system, and the like. The network device 100 includes a memory 101, a communication interface 102, a processor 103, and a bus 104, the memory 101, the communication interface 102, and the processor 103 are connected by the bus 104, and the processor 103 is configured to execute machine executable instructions stored in the memory 101, and when the machine executable instructions are called or executed by the processor 103, the machine executable instructions cause the processor 103 to execute the method for creating an interface group in the following embodiments.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 101 is used for storing a program, and the processor 103 executes the program after receiving the execution instruction to implement the method for creating the interface group disclosed in the above embodiment of the present invention.
The communication interfaces 102 may be multiple, and multiple communication interfaces 102 may be configured in the same bundled group to ensure the bandwidth and reliability of the network link provided by the network device 100.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for creating an interface group according to an embodiment of the present invention. The interface group creating method comprises the following steps:
step S101, receiving an interface group creation command.
In the embodiment of the present invention, the interface group creation command includes an identifier of the target binding group and a preset condition, where the target binding group corresponds to the interface group to be created, that is, an interface to be added to the interface group to be created must be a member interface in the target binding group and meet the preset condition. In the embodiment of the present invention, the network device 100 has at least one binding group, each binding group has a unique identifier, and according to the identifier of the target binding group, the target binding group corresponding to the interface to be created may be determined from the at least one binding group of the network device 100, for example, the network device 100 has 3 binding groups: the number 1 binding group, the number 2 binding group and the number 3 binding group, the corresponding identifications of the binding groups are respectively: 1. 2 and 3. And if the identifier of the target binding group included in the interface group creation command is 2, the 2# binding group is the target binding group corresponding to the interface group.
It should be noted that, in the embodiment of the present invention, in an application scenario of an ethernet, a binding group is also generally referred to as an aggregation group, an interface in the aggregation group is an ethernet interface, and in an application scenario of a metropolitan area network, a wide area network, or a serial port, a binding group is also generally referred to as a binding group, an interface in the binding group is a POS (Packet Over SONET/SDH) port or a serial port, and the purpose of the binding group, whether the binding group or the aggregation group, is to ensure bandwidth and reliability of a network link by using multiple interfaces or ports or serial ports.
Step S102, according to the identification of the target binding group, acquiring the member interface of the target binding group corresponding to the identification of the target binding group.
In this embodiment of the present invention, for example, a bundle group is taken as an aggregation group, a plurality of interfaces are preconfigured as one aggregation group, an interface in the aggregation group is referred to as a member interface of the aggregation group, for example, the identifier of # 1 aggregation group is 1, and # 1 aggregation group includes 3 member interfaces: the interface group creation command comprises a 1# interface, a 2# interface and a 3# interface, wherein the identifier of a target aggregation group in the interface group creation command is 1, the 1# aggregation group is the target aggregation group, and the member interfaces of the target aggregation group are as follows: interface # 1, interface # 2 and interface # 3.
And step S103, adding the member interfaces of the target binding group meeting the preset conditions into an interface group to be created.
In the embodiment of the present invention, the network device 100 stores the state of each member interface of the target binding group in advance, the preset condition represents a condition that the state of the member interface that can join the interface group to be created needs to satisfy, and only the member interface of the target binding group that satisfies the preset condition can join the interface group to be created.
Referring to fig. 3, step S103 includes the following sub-steps:
and a substep S1031, obtaining the state of the member interface of the target binding group.
In this embodiment of the present invention, the state of the member interface includes a logical state and a physical state, where the logical state may be used to characterize a logical attribute of the member interface, and the logical state may be a member state of the member interface, and the member state includes: the method comprises a Selected state, an Unselected state and an independent state, wherein the member interface in the Selected state can participate in data forwarding, the member interface in the Unselected state can not participate in data forwarding, and the member interface in the independent state can participate in data forwarding as a common physical interface. The logic state may also be an operating mode state of the interface, the operating mode state including: open state, Closed state, Filtered state, and Unfiltered state.
In this embodiment of the present invention, the physical state may be used to characterize a physical connection state of the member interface, where the physical state includes: the UP state represents that the physical link state of the member interface is in a connected state, the DOWN state represents that the physical link state of the member interface is in a non-connected state, and the ADM state represents that the physical link state of the member interface is in a manual closed state.
And a substep S1032 of determining a target member interface according to the states of the member interfaces of the target binding group, wherein the target member interface is a member interface in the target binding group, and the states of the member interfaces meet preset conditions.
In the embodiment of the present invention, the preset condition may be any one of the following cases: (1) the preset condition is full selection, all member interfaces in the representation target binding group are target member interfaces, and all the member interfaces need to be added into the interface to be created; (2) the preset condition is a logic state keyword, a member interface which represents that the logic state of a member interface in the target binding group is matched with the logic state keyword can be used as a target member interface, and only the target member interface can be added into an interface to be created; (3) the preset condition is a physical state keyword, a member interface which represents that the physical state of a member interface in the target binding group is matched with the physical state keyword can be used as a target member interface, and only the target member interface can be added into an interface to be created; (4) when the preset condition is a logic state keyword or a physical state keyword, all member interfaces which represent that the physical state of the member interface in the target binding group is matched with the physical state keyword or the logic state of the member interface in the target binding group is matched with the logic state keyword can be used as target member interfaces, and only the target member interfaces can be added into the interface to be created; (5) when the preset conditions are the logical state keywords and the physical state keywords, the member interfaces which represent that the physical states of the member interfaces in the target binding group are matched with the physical state keywords and the logical states of the member interfaces in the target binding group are matched with the logical state keywords can be used as target member interfaces, and only the target member interfaces can be added into the interfaces to be created.
As an embodiment, the method for determining the target member interface according to the state of the member interface of the target binding group may be:
firstly, when the preset condition is full selection, all member interfaces of the target binding group are used as target member interfaces.
In the embodiment of the present invention, the preset condition is that the full selection may be replaced by a special identifier, or may be represented by not having any status keyword, for example, an identifier of "ALL" may be added to the interface group creation command to represent that the preset condition is the full selection, that is, when "ALL" exists in the interface group creation command, ALL member interfaces of the target binding group are used as target member interfaces; or, the interface group creation command may not include any status key, and represents that the preset condition is full selection, that is, when neither a logical status key nor a physical status key exists in the interface group creation command, all member interfaces of the target binding group are used as target member interfaces.
Secondly, when the preset condition is a logic state key word, determining a target member interface according to the logic state key word.
In the embodiment of the present invention, the logic state key is any one of the logic states of the target member interface, and the target member interface is a member interface whose logic state in the target binding group matches with the logic state key. For example, an aggregation port has 3 member interfaces: the interface comprises a 1# interface, a 2# interface and a 3# interface, wherein the logic state of the 1# interface is a Selected state, the logic state of the 2# interface is an Unselected state, the logic state of the 3# interface is a Selected state, a logic state key word is 'Selected', member interfaces matched with 'Selected' are the 1# interface and the 3# interface, and therefore the 1# interface and the 3# interface are target member interfaces.
Thirdly, when the preset condition is the physical state keyword, determining the target member interface according to the physical state keyword.
The method for determining the target member interface according to the physical state keyword is similar to the method for determining the target member interface according to the logical state keyword, and is not described herein again.
It should be noted that, when the preset condition is a logical state key or a physical state key, at this time, for each member interface, as long as the logical state of the member interface matches with the logical state key, or the physical state of the member interface matches with the physical state key, one of the two matches may determine that the member interface is the target member interface. For example, an aggregation port has 3 member interfaces: the interface comprises a 1# interface, a 2# interface and a 3# interface, wherein the logic state of the 1# interface is a Selected state, and the physical state of the 1# interface is an UP state; the logic state of the 2# interface is an Unselected state, and the physical state is a DOWN state; the logic state of the 3# interface is Selected state, the physical state is DOWN state, the key word of the logic state is "unexelected", the key word of the physical state is "UP", when the preset condition is: when "unused" or "UP", the physical state of the interface # 1 matches the physical state key, so the interface # 1 is the target member interface, and the logical state of the interface # 2 matches the logical state key, so the interface # 2 is the target member interface, and the logical state of the interface # 3 does not match the logical state key, and the physical state does not match the physical state key, so the interface # 3 is not the target member interface, and therefore, when the preset condition is: when the "unused" or "UP" is used, the target member interfaces are the 1# interface and the 2# interface.
Fourthly, when the preset conditions are the logic state key words and the physical state key words, determining the target member interface according to the logic state key words and the physical state key words.
In the embodiment of the present invention, when the preset condition is the logical state keyword and the physical state keyword, the physical state of the member interface in the target binding group matches the physical state keyword, and the member interface whose logical state matches the logical state keyword in the target binding group can be used as the target member interface. For example, an aggregation port has 3 member interfaces: the interface comprises a 1# interface, a 2# interface and a 3# interface, wherein the logic state of the 1# interface is a Selected state, and the physical state of the 1# interface is an UP state; the logic state of the 2# interface is an Unselected state, and the physical state is a DOWN state; the logic state of the 3# interface is Selected, the physical state is DOWN, the key word of the logic state is Selected, the key word of the physical state is UP, and when the preset condition is: "Selected" and "UP," only the logical state of the 1# interface matches the logical state key and the physical state of the 1# interface matches the physical state key, so the 1# interface is the target member interface.
And a substep S1033 of adding the target member interface to the interface group to be created.
In the embodiment of the invention, the member interfaces needing to be added into the interface group to be created are screened out from all the member interfaces of the binding group through preset conditions, the interface group is successfully created after the target member interface is added into the interface group to be created, and at the moment, the member interfaces in the interface group can be uniformly operated through the successfully created interface group, so that the operation efficiency is improved.
It should be noted that, in the embodiment of the present invention, a keyword capable of characterizing a type of an interface group may also be carried in an interface group creation command, so that the created interface group meets a required type, where the type of the interface group includes: a dynamic interface group and a static interface group, where the dynamic interface group is also called a temporary interface group and is only stored in a volatile storage medium such as a memory of the network device 100, and when the network device 100 is powered on again, the dynamic interface group is not stored; the static interface group may be stored in a non-volatile storage medium of the network device 100 in a configuration form, such as a hard disk, and after the network device 100 is powered on again, the static interface group may not be lost, and the corresponding static interface group may be found according to an identifier of the specified static interface when the interface group is created.
It should be noted that, a specific implementation manner of carrying a keyword capable of characterizing the type of the interface group in the interface group creation command may be that "static" is included in the interface group creation command, which indicates that the interface group to be created is a static interface group, or that the interface group creation command includes an identifier of the interface group, when the identifier of the interface group exists in the interface group creation command, the interface group to be created is indicated as the static interface group, when the identifier of the interface group does not exist in the interface group creation command, the interface group to be created is indicated as a dynamic interface group, and as for an implementation manner of characterizing the type of the interface group in the interface group creation command, the implementation of the present invention is not limited.
In the embodiment of the invention, when the interface group is created, the member interfaces of the binding group which meet the preset conditions are automatically screened and automatically added into the interface group, compared with the prior art, the method has the following beneficial effects:
firstly, member interfaces of a binding group which accord with preset conditions are automatically screened and automatically added into an interface group, on one hand, the creation operation of the interface group is simplified, on the other hand, the error probability of the creation interface group is reduced, the efficient and accurate creation of the interface group is realized, and finally, the efficiency of unified operation of a plurality of member interfaces through the interface group is improved.
Secondly, the method for creating the interface group is accurate and fast, so that a static interface group does not need to be created under most conditions, and when the state of the member interface in the interface group changes, only the interface group meeting the preset condition needs to be created again, so that the maintenance workload of the static interface group is reduced.
Second embodiment
Referring to fig. 4, fig. 4 is a block diagram illustrating an interface group creation apparatus 200 according to an embodiment of the present invention. The interface group creation apparatus 200 is applied to the network device 100, and includes at least one software functional module which may be stored in the memory 101 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the network device 100. The interface group creation apparatus 200 includes a reception module 201; an acquisition module 202; a join block 203.
A receiving module 201, configured to receive an interface group creation command, where the interface group creation command includes an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group that the network device has.
In this embodiment of the present invention, the receiving module 201 is configured to execute step S101.
An obtaining module 202, configured to obtain, according to the identifier of the target binding group, a member interface of the target binding group corresponding to the identifier of the target binding group.
In this embodiment of the present invention, the obtaining module 202 is configured to execute step S102.
A joining module 203, configured to join the member interface of the target binding group meeting the preset condition into the interface group to be created.
As an embodiment, the adding module 203 is specifically configured to:
acquiring the state of a member interface of a target binding group;
determining a target member interface according to the state of the member interface of the target binding group, wherein the target member interface is the member interface of which the state meets the preset condition in the target binding group;
and adding the target member interface into the interface group to be created.
In the embodiment of the present invention, the adding module 203 is configured to execute step S103 and sub-steps S1031 to S1033 thereof.
In this embodiment of the present invention, the adding module 203 is further specifically configured to:
all member interfaces of the target binding group are used as target member interfaces;
determining a target member interface according to the logic state key word, wherein the target member interface is a member interface of which the logic state is matched with the logic state key word in the target binding group, and the logic state key word is any one of the logic states of the target member interface;
determining a target member interface according to the physical state key word, wherein the target member interface is a member interface of which the physical state is matched with the physical state key word in the target binding group, and the physical state key word is any one of the physical states of the target member interface;
and determining a target member interface according to the logic state key words and/or the physical state key words, wherein the target member interface is a member interface of which the logic state and/or the physical state in the target binding group are respectively matched with the logic state key words and/or the physical state key words, the logic state key words are any one of the logic states of the target member interface, and the physical state key words are any one of the physical states of the target member interface.
An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 103, implements the method for creating the interface group disclosed in the foregoing embodiment of the present invention.
In summary, the method, apparatus, network device and storage medium for creating an interface group provided by the present invention include: receiving an interface group creation command, wherein the interface group creation command comprises an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group which the network device has; acquiring a member interface of the target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group; compared with the prior art, the method and the device have the advantages that when the interface group is created, the member interfaces of the binding group meeting the preset conditions are automatically screened and automatically added into the interface group, so that the creation operation of the interface group is greatly simplified, and the efficiency of uniformly operating the member interfaces of the binding group through the interface group is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (10)

1. A method for creating an interface group, applied to a network device, the method comprising:
receiving an interface group creation command, wherein the interface group creation command comprises an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group that the network device has;
acquiring a member interface of a target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group;
and adding the member interfaces of the target binding group meeting the preset conditions into the interface group to be created.
2. The method for creating an interface group according to claim 1, wherein the step of adding the member interfaces of the target bundle group that satisfy the preset condition to the interface group to be created comprises:
acquiring the state of a member interface of the target binding group;
determining a target member interface according to the state of the member interface of the target binding group, wherein the target member interface is the member interface of which the state meets the preset condition in the target binding group;
and adding the target member interface into the interface group to be created.
3. The method for creating an interface group according to claim 2, wherein the predetermined condition is full selection, and the step of determining a target member interface according to the states of the member interfaces of the target binding group comprises:
and taking all member interfaces of the target binding group as target member interfaces.
4. The method for creating an interface group according to claim 2, wherein the preset condition is a logical status key, the status of the member interface of the target binding group includes a logical status, and the step of determining the target member interface according to the status of the member interface of the target binding group includes:
and determining the target member interface according to the logic state key, wherein the target member interface is a member interface of which the logic state is matched with the logic state key in the target binding group, and the logic state key is any one of the logic states of the target member interface.
5. The method for creating an interface group according to claim 2 or 4, wherein the preset condition is a physical status key, the status of the member interface of the target binding group further includes a physical status, and the step of determining the target member interface according to the status of the member interface of the target binding group includes:
and determining the target member interface according to the physical state keyword, wherein the target member interface is a member interface of which the physical state is matched with the physical state keyword in the target binding group, and the physical state keyword is any one of the physical states of the target member interface.
6. An apparatus for creating an interface group, applied to a network device, the apparatus comprising:
the device comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving an interface group creation command, and the interface group creation command comprises an identifier of a target binding group and a preset condition; the target binding group corresponds to an interface group to be created; the target bonding group is one of at least one bonding group that the network device has;
the acquisition module is used for acquiring a member interface of a target binding group corresponding to the identifier of the target binding group according to the identifier of the target binding group;
and the joining module is used for joining the member interfaces of the target binding group meeting the preset conditions into the interface group to be created.
7. The interface group creation apparatus of claim 6, wherein the joining module is specifically configured to:
acquiring the state of a member interface of the target binding group;
determining a target member interface according to the state of the member interface of the target binding group, wherein the target member interface is the member interface of which the state meets the preset condition in the target binding group;
and adding the target member interface into the interface group to be created.
8. The interface group creation apparatus of claim 6, wherein the preset condition is a logical state key and/or a physical state key, the states of the member interfaces of the target bundle group include a logical state and/or a physical state, and the joining module is specifically configured to:
and determining a target member interface according to the logic state key and/or the physical state key, wherein the target member interface is a member interface of which the logic state and/or the physical state in the target binding group are respectively matched with the logic state key and/or the physical state key, the logic state key is any one of the logic states of the target member interface, and the physical state key is any one of the physical states of the target member interface.
9. A network device, characterized in that the network device comprises:
one or more processors;
memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201910276594.1A 2019-04-08 2019-04-08 Interface group creating method and device, network equipment and storage medium Active CN110061917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910276594.1A CN110061917B (en) 2019-04-08 2019-04-08 Interface group creating method and device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910276594.1A CN110061917B (en) 2019-04-08 2019-04-08 Interface group creating method and device, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110061917A CN110061917A (en) 2019-07-26
CN110061917B true CN110061917B (en) 2021-07-06

Family

ID=67318433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910276594.1A Active CN110061917B (en) 2019-04-08 2019-04-08 Interface group creating method and device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110061917B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661663B (en) * 2019-09-27 2022-06-28 杭州迪普科技股份有限公司 Interface state synchronization method and device
CN112751790B (en) * 2020-12-29 2022-12-20 苏州浪潮智能科技有限公司 Vlan interface state determining method, vlan interface state determining device, network device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401797A (en) * 2013-07-24 2013-11-20 杭州华三通信技术有限公司 Message processing method and equipment
CN106059791A (en) * 2016-05-13 2016-10-26 华为技术有限公司 Business link switching method and storage device in storage system
CN107295038A (en) * 2016-03-31 2017-10-24 华为技术有限公司 A kind of method and device for setting up interface group

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123006A1 (en) * 2012-10-25 2014-05-01 Apple Inc. User interface for streaming media stations with flexible station creation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401797A (en) * 2013-07-24 2013-11-20 杭州华三通信技术有限公司 Message processing method and equipment
CN107295038A (en) * 2016-03-31 2017-10-24 华为技术有限公司 A kind of method and device for setting up interface group
CN106059791A (en) * 2016-05-13 2016-10-26 华为技术有限公司 Business link switching method and storage device in storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《An Interface Group for Process Components》;Jan A.Bergstra等;《Fundamenta Infomation》;20200706;全文 *

Also Published As

Publication number Publication date
CN110061917A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
US20190286510A1 (en) Automatic correlation of dynamic system events within computing devices
US8869111B2 (en) Method and system for generating test cases for a software application
CN110061917B (en) Interface group creating method and device, network equipment and storage medium
EP3101842B1 (en) Method, system and computer readable medium for network management automation
CN103490941A (en) Real-time monitoring on-line configuration method in cloud computing environment
EP3101841B1 (en) Method, system and computer readable medium for network management automation
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
US10496510B2 (en) Generating combined event logs in an information handling system
CN114780080A (en) Micro front end integration method, device and monitoring method
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN109189403B (en) Operating system OS batch installation method and device and network equipment
US20200304383A1 (en) Generation of templates for cloud computing platforms
CN106021359A (en) CAD file modification method and device
US20190028372A1 (en) Programmatically diagnosing a software defined network
JP2010072876A (en) Rule creation program, rule creation method, and rule creation device
CN105824741A (en) IT system operation data acquisition method and system capable of being flexibly extended
CN108259228B (en) Network equipment virtualization system and equipment configuration method and device thereof
CN110442604B (en) Data flow direction query method, data flow direction extraction method, data flow direction processing method and related devices
WO2016090768A1 (en) Port attribute inheritance method and device
CN112003726A (en) High-availability configuration method for rapidly deploying Beegfs management service nodes
CN111142927A (en) Configuration file merging and splitting processing method and device
US20150269207A1 (en) Simple and efficient method for recycling device identifiers
CN111885159A (en) Data acquisition method and device, electronic equipment and storage medium
US11494272B2 (en) Method, device, and computer program product for data protection
CN109218129A (en) A kind of upgrade detection method based on log, device, memory and equipment

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