ns-servicePath

Last published : Nov 01, 2026
The following operations can be performed on "ns-servicePath":

rm ns servicePath

Removes a ServicePath.

Synopsis

rm 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

rm servicepath SP1

show ns servicePath

Displays ServicePath.

Synopsis

show ns servicePath

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.

Output

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

add ns servicePath

Creates a Servicepath.

Synopsis

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

bind ns servicePath

Bind service functions to path to define the path.

Synopsis

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.

Synopsis

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