Skip to content

ns servicePath

The following operations can be performed on "ns servicePath":

add| rm| bind| unbind| show

add ns servicePath

Creates a Servicepath.

Synopsys

add ns servicePath <servicePathName>

Arguments

servicePathName

Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must

contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-)

characters.

Example

add servicepath SP1

rm ns servicePath

Removes a ServicePath.

Synopsys

rm ns servicePath <servicePathName>

Arguments

servicePathName

. Must begin with an ASCII alphanumeric or underscore (_) character, and must

contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-)

characters.

Example

rm servicepath SP1

bind ns servicePath

Bind service functions to path to define the path.

Synopsys

bind ns servicePath <servicePathName> -serviceFunction <string> -index <positive_integer>

Arguments

servicePathName

Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must

contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-)

characters.

serviceFunction

Name of the service function to bind to path.

index

Integer to specify the order, lower the number denotes further down in service chain.

Minimum value: 1

Example

bind servicepath SP1 -servicefunction SF1 -index 255

unbind ns servicePath

unbind servicefunctions from servicepath.

Synopsys

unbind ns servicePath <servicePathName> -serviceFunction <string>

Arguments

servicePathName

Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must

contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-)

characters.

serviceFunction

Name of the ServiceFunction to bind to ServicePath.

Example

unbind servicepath SP1 -servicefunction SF1

show ns servicePath

Displays ServicePath.

Synopsys

show ns servicePath [<servicePathName>]

Arguments

servicePathName

Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must

contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-)

characters.

Outputs

serviceFunction

List of service functions constituting the chain.

index

The serviceindex of each servicefunction in path.

stateflag

the field for stateflags.

devno

count

Example

show servicepath SC1

Was this article helpful?