The ip service-set command creates a service object or service group and accesses its view.
The undo ip service-set command deletes a user-defined service or service group.
ip service-set service-set-name [ type { object | group } [ service-set-id ] | vpn-instance vpn-instance-name ] *
undo ip service-set { service-set-name | unreferenced { object | group | all } } [ vpn-instance vpn-instance-name ]
| Parameter | Description | Value |
|---|---|---|
service-set-name |
Specifies the name of a service or service group. |
The name is a string of case-sensitive characters. If the name does not contain any space, the length ranges from 1 to 63 characters. If the name contains spaces, the length ranges from 3 to 65 characters, and you must use double quotation marks ("") to enclose it (for example, service for test"). The name cannot contain question marks (?). If the name does not contain any space, it also cannot have any double quotation marks ("). In addition, the name cannot be any or all. |
type |
Indicates the type of the service object or service group. |
- |
unreferenced |
Indicates an unreferenced service object or service group. |
- |
object |
Indicates a service object. You can add only services as its members. |
- |
group |
Indicates a service group. You can add both services and service groups as its members. |
- |
service-set-id |
Specifies the ID of a service set. If you do not specify service-set-id, the system automatically allocates an ID. |
The value is an integer and the value range varies with the device model.
|
all |
Indicates all unreferenced service objects and service groups. |
- |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 characters without spaces. If you set this parameter, the service or service group can be used for only this VPN instance. |
You need to specify the type when you create a service or service group. To access the view of a created service or service group, you do not need to specify its type.
Referenced service or service groups cannot be deleted.
In the hot standby scenario, if the service-set-id parameter is used during service or service group configuration, ensure consistent service-set-id parameter settings. Otherwise, the consistency check between the active and standby devices fails.
# Create service group set2 and add set1 as its member.
<sysname> system-view [sysname] ip service-set set2 type group
# Delete all unreferenced service objects and service groups.
<sysname> system-view [sysname] undo ip service-set unreferenced all Warning: This command will delete all unreferenced service-set. Continue?[Y/N]