Skip to main content

network interface service-policy rename

Rename an existing network service policy

Availability: This command is available to cluster administrators at the advanced privilege level.

Description

The network interface service-policy rename command assigns a new name to an existing service policy without disrupting the LIFs using the policy.

Parameters

-vserver <vserver name> - Vserver
Use this parameter to specify the name of the Vserver of the service policy to be renamed.
-policy <text> - Policy Name
Use this parameter to specify the name of the service policy to be renamed.
-new-name <text> - New Service Policy Name
Use this parameter to specify the new name for the service policy.

Examples

The following example shows the renaming of a service policy.

cluster1::> network interface service-policy show
Vserver Policy Service: Allowed Addresses
--------- ---------------------- ------------------------------------------
cluster1
empty -

net-intercluster intercluster-core: 0.0.0.0/0

2 entries were displayed.

cluster1::> network interface service-policy rename -vserver cluster1 -policy empty -new-name still-empty

cluster1::> network interface service-policy show
Vserver Policy Service: Allowed Addresses
--------- ---------------------- ------------------------------------------
cluster1
still-empty -

net-intercluster intercluster-core: 0.0.0.0/0

2 entries were displayed.