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 ma-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

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 ma-name: Configures an MA to be identified by an ICC. The ma-name argument is a string of 1 to 13 characters.

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

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

vlan-based [ vlan-id ]: Configures an MA to be identified by a VLAN ID, where the vlan-id argument 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 grave accent (`), tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), colon (:), semicolon (;), quotation mark ('), comma (,), period (.), and slash (/).

vlan vlan-id: Specifies the VLAN that the MA serves, in the range of 1 to 4094.

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 the 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.

With the vlan-based [ vlan-id ] or vlan vlan-id option, the command creates an MA carrying the VLAN attribute. If you do not specify the option, the command creates an MA carrying no VLAN attribute.

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