cfd service-instance

Use cfd service-instance to create a service instance with the MD name.

Use undo cfd service-instance to remove the service instance.

Syntax

cfd service-instance instance-id ma-id { icc-based icc-name | integer ma-num | string ma-name | vlan-based [ vlan-id ] } [ ma-index index-value ] md md-name vlan vlan-id

undo cfd service-instance instance-id

Default

No service instance exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

ma-id: Creates an MA.

icc-based icc-name: Specifies that an MA is identified by an ICC. The icc-name argument is a string of 1 to 13 characters.

integer ma-num: Specifies that an MA is identified by an integer, where ma-num is in the range of 0 to 65535.

string ma-name: Specifies that an MA is identified by a string, where ma-name is string of 1 to 45 characters that can contain letters, numbers, and special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/).

vlan-based [ vlan-id ]: Specifies that an MA is identified by a VLAN ID, where vlan-id is in the range of 1 to 4094. If you do not provide the vlan-id argument, the VLAN ID specified by vlan vlan-id is used. If the vlan vlan-id option is not provided, you must specify the vlan-id argument for the vlan-based [ vlan-id ] option.

ma-index index-value: Specifies an MA index in the range of 1 to 4294967295. If this option is not specified, the system automatically assigns the smallest index number that is not in use. As a best practice, use the index automatically assigned by the system.

md md-name: Specifies the name of an MD. The md-name argument is a string of 1 to 43 characters that can contain letters, numbers, and special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", ’), comma (,), period (.), and slash (/).

vlan vlan-id: Specifies the VLAN that the MA serves, in the range of 1 to 4094. If this option is not provided, the MA does not serve any VLAN.

Usage guidelines

A service instance is indicated by an integer to represent an MA in an MD. The MD and MA define the level attribute and VLAN attribute of the messages handled by the MPs in a service instance. An MA index uniquely identifies a specific MA in an MD. An MA index can be used in different MDs.

An MD name must be in compliant with the specifications in table 21-19 in IEEE802.1ag-2007.

You must create the relevant MD and MA prior to creating a service instance with the MD name.

When you delete a service instance, you are deleting the configurations related to that service instance as well.

Deleting a service instance not only breaks up the connection between the service instance and the relevant MA, but also deletes the MA itself.

Examples

# Create a level-3 MD named test_md and create service instance 5, in which the MA is identified by a VLAN and serves VLAN 100.

<Sysname> system-view
[Sysname] cfd md test_md level 3
[Sysname] cfd service-instance 5 ma-id vlan-based md test_md vlan 100

Related commands

cfd md