You can define membership criteria to add members dynamically in an NSX group based on one or more criteria.
A criterion can have one or more conditions. The conditions can use the same member type or a mix of different member types. However, some restrictions apply to adding multiple conditions with mixed member types in a membership criterion. See the Restrictions for Criteria with Mixed Member Types section later in this topic.
By default, NSX uses the logical AND operator after each condition in a membership criterion. Other logical operators are not supported to join the conditions in a membership criterion.
- Both criteria use the same member type.
- Both criteria use a single condition.
- A maximum of five conditions with the same member type is supported in a single membership criterion. For example, in a criterion, you can add a maximum of five conditions with the Virtual Machine member type.
- A maximum of 15 conditions with mixed member types are supported in a single membership criterion. For example, in a criterion, you can add a maximum of 15 conditions with a mix of NSX Segment and Segment Port member types.
- A maximum of 35 conditions with mixed member types are supported in a group.
- Example 1
-
A group with three membership criteria and a total of 35 conditions:
- Criterion 1 has 15 conditions with mixed member types.
- Criterion 2 has 15 conditions with mixed member types.
- Criterion 3 has 5 conditions with the same member type.
- Example 2
-
A group with four membership criteria and a total of 35 conditions:
- Criterion 1 has 15 conditions with mixed member types.
- Criterion 2 has 14 conditions with mixed member types.
- Criterion 3 has four conditions with the same member type.
- Criterion 4 has two conditions with the same member type.
- Example 3
-
A group with five membership criteria and a total of 22 conditions:
- Criterion 1 has 10 conditions with mixed member types.
- Criterion 2 has three conditions with the same member type.
- Criterion 3 has four conditions with the same member type.
- Criterion 4 has three conditions with the same member type.
- Criterion 5 has two conditions with mixed member types.
Because this group has reached the limit of five criteria, you cannot add another membership criterion. However, you can add more conditions, if required, in any of the five criteria until you don't exceed the following upper limits mentioned earlier:- A maximum of five conditions with the same member type in a single criterion.
- A maximum of 15 conditions with mixed member types in a single criterion.
- A total of 35 conditions in the group.
Restrictions for Criteria with Mixed Member Types
Member Type | Criterion With Mixed Member Types | Tag Operator | Scope Operator |
---|---|---|---|
Virtual Machine | Not Supported |
|
|
NSX Segment | Supported Conditions based on NSX Segment can be mixed with conditions based on Segment Port |
|
|
Segment Port | Supported Conditions based on Segment Port can be mixed with conditions based on NSX Segment |
|
|
Distributed Port Groups | Supported Conditions based on Distributed Port Group can be mixed with conditions based on Distributed Port |
|
|
Distributed Ports | Supported Conditions based on Distributed Port can be mixed with conditions based on Distributed Port Group |
|
|
IP Set - This member type will be deprecated in the future. It is currently available to achieve backward compatibility with preexisting NSGroups or Groups based on IP Set tag-based criterion. We recommend you to use Group as the member type and add tag-based groups of type 'IP Addresses Only' in a membership criterion. | Not Supported |
|
|
Group - Use this member type to add tag-based groups of type 'IP Addresses Only' in a membership criterion. | Not Supported |
Equals - one tag can be selected. | Equals |