ip service-set

Function

The ip service-set command creates a service or service group and accesses its view.

The undo ip service-set command deletes a user-defined service or service group.

Format

ip service-set service-set-name [ type { object | group } | vpn-instance vpn-instance-name ] *

undo ip service-set service-set-name [ vpn-instance vpn-instance-name ]

Parameters

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 (?), or hyphens (-). 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 object Specifies the service of object type. You can add only services as its members. -
type group Specifies the service of group type. You can add both services and service groups as its members. -
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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Create service set1.

<sysname> system-view
[sysname] ip service-set set1 type object

# Create service group set2 and add set1 as its member.

<sysname> system-view
[sysname] ip service-set set2 type group

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.